<?php $__env->startSection('title', 'Messages contact'); ?>

<?php $__env->startSection('content'); ?>
    <h1>Messages contact</h1>
    <p class="muted">Demandes envoyees depuis le formulaire du site.</p>

    <div class="card" style="padding:0;overflow:hidden;">
        <table>
            <thead>
                <tr>
                    <th>Date</th>
                    <th>Nom</th>
                    <th>Email</th>
                    <th>Besoin</th>
                    <th>Lu</th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                <?php $__empty_1 = true; $__currentLoopData = $messages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $msg): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                    <tr>
                        <td><?php echo e($msg->created_at->format('d/m/Y H:i')); ?></td>
                        <td><?php echo e($msg->name); ?></td>
                        <td><?php echo e($msg->email); ?></td>
                        <td><span class="pill"><?php echo e($msg->besoin); ?></span></td>
                        <td><?php echo e($msg->read_at ? $msg->read_at->format('d/m/Y') : '—'); ?></td>
                        <td><a href="<?php echo e(route('admin.contact-messages.show', $msg)); ?>">Ouvrir</a></td>
                    </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                    <tr>
                        <td colspan="6" style="color:#5f6b76;">Aucun message.</td>
                    </tr>
                <?php endif; ?>
            </tbody>
        </table>
    </div>

    <div style="margin-top:20px;"><?php echo e($messages->links()); ?></div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layout', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\Softsys\new_pirras\resources\views/admin/contact-messages/index.blade.php ENDPATH**/ ?>