

<?php $__env->startSection('title', 'Messages'); ?>
<?php $__env->startSection('heading', 'Contact messages'); ?>

<?php $__env->startSection('content'); ?>
<div class="panel" style="padding:0;">
    <table>
        <thead>
            <tr><th>From</th><th>Subject</th><th>Received</th><th>Status</th></tr>
        </thead>
        <tbody>
            <?php $__empty_1 = true; $__currentLoopData = $messages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $message): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                <tr>
                    <td><a href="<?php echo e(route('admin.messages.show', $message)); ?>"><?php echo e($message->name); ?></a><br><small><?php echo e($message->email); ?></small></td>
                    <td><?php echo e($message->subject ?: '—'); ?></td>
                    <td><?php echo e($message->created_at->format('d M Y H:i')); ?></td>
                    <td><?php echo e($message->is_read ? 'Read' : 'Unread'); ?></td>
                </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                <tr><td colspan="4">No messages yet.</td></tr>
            <?php endif; ?>
        </tbody>
    </table>
</div>
<div style="margin-top:1rem;"><?php echo e($messages->links()); ?></div>
<?php $__env->stopSection(); ?>

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