 <?php $__env->startSection('page_title','Daily Sales Report'); ?> <?php $__env->startSection('content'); ?><div class="card top-card"><div class="card-body"><form class="row g-2 mb-3"><div class="col-md-3"><input type="date" name="from" value="<?php echo e($from); ?>" class="form-control"></div><div class="col-md-3"><input type="date" name="to" value="<?php echo e($to); ?>" class="form-control"></div><div class="col-md-2"><button class="btn btn-success w-100">Filter</button></div></form><table class="table"><thead><tr><th>Invoice</th><th>Date</th><th>Customer</th><th>Total</th><th>Paid</th><th>Due</th></tr></thead><tbody><?php $__currentLoopData = $sales; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $sale): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><tr><td><?php echo e($sale->invoice_no); ?></td><td><?php echo e($sale->sale_date); ?></td><td><?php echo e($sale->customer?->name ?? 'Walk-in'); ?></td><td><?php echo e(number_format($sale->total,2)); ?></td><td><?php echo e(number_format($sale->paid_amount,2)); ?></td><td><?php echo e(number_format($sale->due_amount,2)); ?></td></tr><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></tbody><tfoot><tr><th colspan="3">Total</th><th><?php echo e(number_format($sales->sum('total'),2)); ?></th><th><?php echo e(number_format($sales->sum('paid_amount'),2)); ?></th><th><?php echo e(number_format($sales->sum('due_amount'),2)); ?></th></tr></tfoot></table></div></div><?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\petrolmump\resources\views/reports/daily_sales.blade.php ENDPATH**/ ?>