<?php $__env->startSection('page_title','Sales List'); ?>
<?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(request('from')); ?>" class="form-control"></div><div class="col-md-3"><input type="date" name="to" value="<?php echo e(request('to')); ?>" class="form-control"></div><div class="col-md-2"><button class="btn btn-success w-100">Filter</button></div><div class="col-md-4 text-end"><a href="<?php echo e(route('fuel-sales.create')); ?>" class="btn btn-primary">New Sale</a></div></form><div class="table-responsive"><table class="table align-middle"><thead><tr><th>Invoice</th><th>Date</th><th>Customer</th><th>Total</th><th>Paid</th><th>Due</th><th>Action</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><td><a class="btn btn-sm btn-outline-success" href="<?php echo e(route('fuel-sales.print',$sale)); ?>">Print</a></td></tr><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></tbody></table></div><?php echo e($sales->links()); ?></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/fuel_sales/index.blade.php ENDPATH**/ ?>