<?php $__env->startSection('title', __('nav.billing')); ?>
<?php $__env->startSection('content'); ?>
<h1 class="h4 mb-2"><?php echo e(__('nav.billing')); ?></h1>
<p class="text-muted"><?php echo e(__('messages.collect_hint')); ?></p>
<form class="row g-2 mb-4">
<div class="col-md-8"><input class="form-control form-control-lg" name="q" value="<?php echo e(request('q')); ?>" placeholder="<?php echo e(__('messages.search_line_or_customer')); ?>" autofocus></div>
<div class="col-md-2"><button class="btn btn-success btn-lg w-100"><?php echo e(__('messages.search')); ?></button></div>
</form>
<?php if($snapshot): ?>
    <?php echo $__env->make('billing.partials.snapshot', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php elseif($matches->count() > 1): ?>
<div class="card"><div class="table-responsive"><table class="table compact-table mb-0">
<thead><tr><th><?php echo e(__('messages.phone')); ?></th><th><?php echo e(__('messages.customer')); ?></th><th><?php echo e(__('messages.national_id')); ?></th><th><?php echo e(__('messages.plan')); ?></th><th><?php echo e(__('messages.paid_through')); ?></th><th></th></tr></thead>
<tbody>
<?php $__currentLoopData = $matches; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $line): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
    <td><strong><?php echo e($line->phone_number); ?></strong></td>
    <td><?php echo e($line->customer?->name); ?></td>
    <td><?php echo e($line->customer?->national_id); ?></td>
    <td><?php echo e($line->currentPlan?->name); ?></td>
    <td><?php echo e($line->paidThroughPeriod()?->label()); ?></td>
    <td><a class="btn btn-sm btn-success" href="<?php echo e(route('billing.show', $line)); ?>"><?php echo e(__('messages.collect')); ?></a></td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table></div></div>
<?php elseif(request('q')): ?>
    <p><?php echo e(__('messages.no_results')); ?></p>
<?php endif; ?>
<?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/billing/index.blade.php ENDPATH**/ ?>