

<?php $__env->startSection('content'); ?>
<div class="card mp-20">
    <h2 class="title">Number Log</h2>
    <div class="table-header">
        <form method="GET" action="<?php echo e(route('user.log.numbers')); ?>" class="table-search-form">
            <div class="table-search">
                <input type="text" name="search" class="search-input" placeholder="Search numbers..." value="<?php echo e($search ?? ''); ?>">
                <i class="ti ti-search"></i>
            </div>
            <button type="submit" class="btn btn-secondary search-btn"><i class="ti ti-search"></i> Search</button>
            <?php if(!empty($search)): ?>
                <a href="<?php echo e(route('user.log.numbers')); ?>" class="btn btn-outline">Clear</a>
            <?php endif; ?>
        </form>
    </div>
    <div class="table-responsive">
        <table class="table">
            <thead>
                <tr>
                    <th>Service</th>
                    <th>Number</th>
                    <th>Amount</th>
                    <th>SMS</th>
                    <th>Date</th>
                </tr>
            </thead>
            <tbody>
                <?php $__empty_1 = true; $__currentLoopData = $numbers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $n): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                <tr>
                    <td><?php echo e($n->service_name); ?></td>
                    <td>+<?php echo e($n->number); ?></td>
                    <td><?php echo e($n->service_price); ?></td>
                    <td><?php echo e($n->sms_text ?: '-'); ?></td>
                    <td><?php echo e($n->buy_time->format('Y-m-d H:i')); ?></td>
                </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                <tr><td colspan="5">No numbers yet.</td></tr>
                <?php endif; ?>
            </tbody>
        </table>
    </div>
    <?php if($numbers->hasPages()): ?>
        <?php echo e($numbers->links('vendor.pagination.default')); ?>

    <?php endif; ?>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('frontend.layout.dash', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\Users\HP\Desktop\social\product\core\resources\views/frontend/user/log/numbers.blade.php ENDPATH**/ ?>