Viewing file: 27335c8af4ad12e317feb2beb4d612cd69bcb592.php (6.38 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title',trans('layout.report')); ?>
<?php $__env->startSection('css'); ?>
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.css"/>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('main-content'); ?>
<div class="row page-titles mx-0">
<div class="col-12">
<div class="card">
<div class="card-body">
<form action="">
<input type="hidden" name="earning" value="<?php echo e(request()->get('earning')); ?>">
<div class="row">
<div class="col-3">
<select name="restaurant_id" id="restaurant_id" class="form-control"
title="<?php echo e(trans('layout.restaurant_select')); ?>">
<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
<?php echo e(request()->get('restaurant_id')==$restaurant->id?'selected':''); ?> 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">
<select name="order_type" id="order_type" class="form-control" title="<?php echo e(trans('layout.select_type')); ?>">
<option <?php echo e(request()->get('order_type')=='all'?'selected':''); ?> value="all"><?php echo e(trans('layout.all')); ?></option>
<option <?php echo e(request()->get('order_type')=='pay_on_table'?'selected':''); ?> value="pay_on_table"><?php echo e(trans('layout.pay_on_table')); ?></option>
<option <?php echo e(request()->get('order_type')=='pay_now'?'selected':''); ?> value="pay_now"><?php echo e(trans('layout.pay_now')); ?></option>
<option <?php echo e(request()->get('order_type')=='takeaway'?'selected':''); ?> value="takeaway"><?php echo e(trans('layout.takeaway')); ?></option>
</select>
</div>
<div class="col-3">
<input value="<?php echo e(request()->get('from_to_dates')); ?>" type="text" class="form-control" name="from_to_dates">
</div>
<div class="col-3 pt-2">
<button type="submit" class="btn btn-sm btn-primary"><?php echo e(trans('layout.submit')); ?></button>
</div>
</div>
</form>
</div>
</div>
</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.report')); ?></h4>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-responsive-md">
<thead>
<tr>
<th><strong><?php echo e(trans('layout.restaurant')); ?></strong></th>
<th><strong><?php echo e(trans('layout.customer')); ?></strong></th>
<th><strong><?php echo e(trans('layout.created_at')); ?></strong></th>
<th><strong><?php echo e(trans('layout.cost')); ?></strong></th>
</tr>
</thead>
<tbody>
<?php $totalCost=0; ?>
<?php $__currentLoopData = $orders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $order): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($order->restaurant->name); ?> </td>
<td><?php echo e($order->name); ?></td>
<td><?php echo e(formatDate($order->created_at)); ?></td>
<?php $totalCost+=$order->total_price ?>
<td><?php echo e(formatNumberWithCurrSymbol($order->total_price)); ?></td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<tr>
<td colspan="2"></td>
<td class="text-right"><?php echo e(trans('layout.total')); ?>:</td>
<td class="font-weight-bold"><?php echo e(formatNumberWithCurrSymbol($totalCost)); ?></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>
<script type="text/javascript" src="https://cdn.jsdelivr.net/momentjs/latest/moment.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.min.js"></script>
<script>
$('input[name="from_to_dates"]').daterangepicker();
</script>
<?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/reports/restaurant_owner_earning.blade.php ENDPATH**/ ?>
|