<?php $__env->startSection('page_title','Purchases'); ?>
<?php $__env->startSection('content'); ?><div class="card top-card"><div class="card-body"><div class="text-end mb-3"><a href="<?php echo e(route('purchases.create')); ?>" class="btn btn-success">New Purchase</a></div><div class="table-responsive"><table class="table"><thead><tr><th>No</th><th>Date</th><th>Supplier</th><th>Total</th><th>Paid</th><th>Due</th><th></th></tr></thead><tbody><?php $__currentLoopData = $purchases; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $purchase): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><tr><td><?php echo e($purchase->purchase_no); ?></td><td><?php echo e($purchase->purchase_date); ?></td><td><?php echo e($purchase->supplier->name); ?></td><td><?php echo e(number_format($purchase->subtotal,2)); ?></td><td><?php echo e(number_format($purchase->paid_amount,2)); ?></td><td><?php echo e(number_format($purchase->due_amount,2)); ?></td><td><a href="<?php echo e(route('purchases.show',$purchase)); ?>" class="btn btn-sm btn-outline-primary">View</a></td></tr><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></tbody></table></div><?php echo e($purchases->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/purchases/index.blade.php ENDPATH**/ ?>