<?php $__env->startSection('title', __('nav.invoices')); ?>
<?php $__env->startSection('content'); ?>
<div class="page-head">
    <h1><?php echo e(__('nav.invoices')); ?></h1>
</div>
<form class="filter-bar mb-3">
    <input class="form-control" name="q" value="<?php echo e(request('q')); ?>" placeholder="<?php echo e(__('messages.search')); ?>">
</form>
<div class="card">
    <div class="table-responsive">
        <table class="table compact-table mb-0">
            <thead>
                <tr>
                    <th>#</th>
                    <th><?php echo e(__('messages.customer')); ?></th>
                    <th><?php echo e(__('messages.total')); ?></th>
                    <th><?php echo e(__('messages.status')); ?></th>
                    <th><?php echo e(__('messages.date')); ?></th>
                    <th><?php echo e(__('messages.actions')); ?></th>
                </tr>
            </thead>
            <tbody>
            <?php $__empty_1 = true; $__currentLoopData = $invoices; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                <tr>
                    <td><a href="<?php echo e(route('invoices.show',$i)); ?>"><?php echo e($i->invoice_number); ?></a></td>
                    <td><?php echo e($i->customer?->name); ?></td>
                    <td><?php echo e(money($i->total)); ?></td>
                    <td><span class="badge text-bg-light"><?php echo e($i->status->label()); ?></span></td>
                    <td><?php echo e($i->date?->toDateString()); ?></td>
                    <td><?php echo $__env->make('invoices.partials.actions', ['invoice' => $i, 'shareText' => $shareTexts[$i->id] ?? '', 'compact' => true], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?></td>
                </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                <tr><td colspan="6"><?php echo e(__('messages.no_results')); ?></td></tr>
            <?php endif; ?>
            </tbody>
        </table>
    </div>
    <?php echo $__env->make('partials.pagination', ['paginator' => $invoices], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\laragon\www\esim\resources\views/invoices/index.blade.php ENDPATH**/ ?>