<?php $__env->startSection('content'); ?>
<div class="max-w-5xl mx-auto">
    <h2 class="text-2xl font-semibold text-gray-800 mb-6">User Messages</h2>

    <?php $__empty_1 = true; $__currentLoopData = $messages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $msg): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
    <div class="bg-white shadow-md rounded-lg p-5 mb-4 hover:shadow-lg transition-shadow duration-300">
        <div class="flex justify-between items-start">
            <div>
                <p class="text-lg font-medium text-gray-900"><?php echo e($msg->name); ?></p>
                <p class="text-gray-700 mt-1"><?php echo e($msg->message); ?></p>
            </div>
            <form method="POST" action="/admin/messages/<?php echo e($msg->id); ?>" class="ml-4">
                <?php echo csrf_field(); ?>
                <?php echo method_field('DELETE'); ?>
                <button type="submit" 
                    class="bg-red-600 text-white px-3 py-1 rounded hover:bg-red-700 transition-colors duration-200">
                    Delete
                </button>
            </form>
        </div>
    </div>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
    <p class="text-gray-500 text-center mt-10">No messages found.</p>
    <?php endif; ?>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layout', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/dawoodik/Documents/x/ahoj-admin/resources/views/admin/messages/index.blade.php ENDPATH**/ ?>