 <?php $__env->startSection('page_title','Customers'); ?> <?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('customers.create')); ?>" class="btn btn-success">New Customer</a></div><table class="table"><thead><tr><th>Name</th><th>Company</th><th>Phone</th><th>Currency</th><th>Balance</th><th></th></tr></thead><tbody><?php $__currentLoopData = $customers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $customer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><tr><td><?php echo e($customer->name); ?></td><td><?php echo e($customer->company_name); ?></td><td><?php echo e($customer->phone); ?></td><td><?php echo e($customer->currency?->code); ?></td><td><?php echo e(number_format($customer->balance(),2)); ?></td><td><a class="btn btn-sm btn-outline-primary" href="<?php echo e(route('customers.edit',$customer)); ?>">Edit</a></td></tr><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></tbody></table><?php echo e($customers->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/customers/index.blade.php ENDPATH**/ ?>