

<?php $__env->startSection('content'); ?>
    <div class="bg-white shadow rounded p-6">
        <div class="flex justify-between items-center mb-4">
            <h2 class="text-2xl font-bold">Contact Submissions</h2>
        </div>
        <table class="min-w-full divide-y divide-gray-200">
            <thead class="bg-gray-100">
                <tr>
                    <th class="px-6 py-3 text-left text-sm font-medium">#</th>
                    <th class="px-6 py-3 text-left text-sm font-medium">Name</th>
                    <th class="px-6 py-3 text-left text-sm font-medium">Email</th>
                    <th class="px-6 py-3 text-left text-sm font-medium">Phone</th>
                    <th class="px-6 py-3 text-left text-sm font-medium">Purpose</th>
                    <th class="px-6 py-3 text-left text-sm font-medium">Message</th>
                </tr>
            </thead>
            <tbody class="divide-y divide-gray-100">
                <?php $__empty_1 = true; $__currentLoopData = $contacts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $contact): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                    <tr>
                        <td class="px-6 py-4"><?php echo e($loop->iteration + ($contacts->currentPage() - 1) * $contacts->perPage()); ?></td>
                        <td class="px-6 py-4"><?php echo e($contact->name); ?></td>
                        <td class="px-6 py-4"><?php echo e($contact->email); ?></td>
                        <td class="px-6 py-4"><?php echo e($contact->number); ?></td>
                        <td class="px-6 py-4"><?php echo e($contact->purpose); ?></td>
                        <td class="px-6 py-4"><?php echo e(\Illuminate\Support\Str::limit($contact->message, 40)); ?></td>
                    </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                    <tr>
                        <td colspan="6" class="px-6 py-4 text-center text-gray-500">No contact submissions found.</td>
                    </tr>
                <?php endif; ?>
            </tbody>
        </table>

        <!-- Tailwind Pagination -->
        <div class="mt-6">
            <?php echo e($contacts->links('vendor.pagination.tailwind')); ?>

        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\Sw_arif\realState\resources\views/backend/admin/lead.blade.php ENDPATH**/ ?>