Viewing file: cdae440b71a40596b092da2aebfcd6d72c73b59c.php (8.88 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title',trans('layout.call_waiter')); ?>
<?php $__env->startSection('css'); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('main-content'); ?> <div class="row page-titles mx-0"> <div class="col-sm-6 p-md-0"> <div class="welcome-text"> <h4><?php echo e(trans('layout.call_waiter')); ?></h4> <p class="mb-0"></p> </div> </div> <div class="col-sm-6 p-md-0 justify-content-sm-end mt-2 mt-sm-0 d-flex"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="#"><?php echo e(trans('layout.home')); ?></a></li> <li class="breadcrumb-item active"><a href="javascript:void(0)"><?php echo e(trans('layout.call_waiter')); ?></a></li> </ol> </div> </div> <!-- row -->
<div class="row"> <div class="col-lg-12"> <div class="card"> <div class="card-header"> <h4 class="card-title"><?php echo e(trans('layout.list')); ?></h4> <div class="pull-right"> </div> <?php if(auth()->user()->type=='restaurant_owner'): ?> <div class="restaurant_selection_card"> <form action="<?php echo e(route('call.waiter')); ?>" method="get"> <div class="row"> <div class="col-9"> <select name="restaurant_id" id="restaurant_id" class="form-control" title="<?php echo e(trans('layout.search_by_restaurant')); ?>"> <option <?php echo e(request()->get('restaurant_id')=='all'?'selected':''); ?> value="all"><?php echo e(trans('layout.all')); ?></option> <?php $__currentLoopData = $restaurants; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $restaurant): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($restaurant->id); ?>"><?php echo e($restaurant->name); ?>
</option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="col-3"> <button type="submit" class="btn btn-sm btn-primary"><?php echo e(trans('layout.submit')); ?></button> </div> </div> </form> </div> <?php endif; ?> </div> <div class="card-body"> <div class="table-responsive"> <table class="table table-responsive-md"> <thead class="text-center"> <tr> <th><strong><?php echo e(trans('layout.customer_name')); ?></strong></th> <th><strong><?php echo e(trans('layout.restaurant_name')); ?></strong></th> <th><strong><?php echo e(trans('layout.table')); ?>(position)</strong></th> <th><strong><?php echo e(trans('layout.status')); ?></strong></th> <th><strong><?php echo e(trans('layout.action')); ?></strong></th> </tr> </thead> <tbody class="text-center"> <?php if($call_waiters->isNotEmpty()): ?> <?php $__currentLoopData = $call_waiters; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $call_waiter): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td> <?php if(!$call_waiter->user_id): ?> <?php echo e(trans('layout.unknown_user')); ?>
<?php else: ?> <?php echo e($call_waiter->user->name); ?>
<?php endif; ?> </td> <td><?php echo e($call_waiter->restaurant->name); ?></td> <td><?php echo e($call_waiter->table->name.'('.$call_waiter->table->position.')'); ?></td> <td> <?php if($call_waiter->status=='pending'): ?> <button type="button" class="btn light badge-danger btn-sm dropdown-toggle " data-toggle="dropdown" aria-expanded="false"> Pending </button> <?php else: ?> <button type="button" class="btn light badge-success btn-sm dropdown-toggle " data-toggle="dropdown" aria-expanded="false"> Solved </button> <?php endif; ?>
<div class="dropdown-menu" x-placement="bottom-start" style="position: absolute; will-change: transform; top: 0px; left: 0px; transform: translate3d(0px, 38px, 0px);"> <?php if($call_waiter->status=='pending'): ?> <button class="dropdown-item" type="button" data-message="<?php echo e(trans('Are you sure to solve this request ?')); ?>" data-action='<?php echo e(route('call.waiter.status',['restaurant'=>$call_waiter->restaurant_id,'id'=>$call_waiter->id])); ?>' data-input={"_method":"get"} data-toggle="modal" data-target="#modal-confirm"><?php echo e(trans('Solved')); ?></button> <?php else: ?> <button disabled="disabled" class="btn btn-default disabled"><?php echo e($call_waiter->status); ?></button> <?php endif; ?> </div>
</td> <td> <button class="btn badge-danger light" type="button" data-message="<?php echo e(trans(trans('layout.message.call_waiter_request_delete_warn'))); ?>" data-action='<?php echo e(route('call.waiter.delete',['id'=>$call_waiter->id])); ?>' data-input={"_method":"get"} data-toggle="modal" data-target="#modal-confirm"><?php echo e(trans('delete')); ?></button> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php else: ?> <tr class="text-center"> <td colspan="4">No Data Available</td> </tr> <?php endif; ?> </tbody> </table> </div> </div> </div> </div> </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.dashboard', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/qr.picotech.app/public_html/resources/views/restaurant/call_waiter.blade.php ENDPATH**/ ?>
|