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

<?php $__env->startSection('content'); ?>
    <p><a href="<?php echo e(route('admin.contact-messages.index')); ?>">← Retour aux messages</a></p>
    <h1>Message de <?php echo e($message->name); ?></h1>
    <p class="muted">Recu le <?php echo e($message->created_at->format('d/m/Y à H:i')); ?> <?php if($message->ip_address): ?> · IP <?php echo e($message->ip_address); ?> <?php endif; ?></p>

    <div class="card" style="margin-bottom:20px;">
        <p style="margin-bottom:8px;"><strong>Email :</strong> <a href="mailto:<?php echo e($message->email); ?>"><?php echo e($message->email); ?></a></p>
        <p style="margin-bottom:8px;"><strong>Besoin :</strong> <span class="pill"><?php echo e($message->besoin); ?></span></p>
        <p style="margin-bottom:0;white-space:pre-wrap;color:#334155;"><?php echo e($message->message); ?></p>
    </div>

    <form method="post" action="<?php echo e(route('admin.contact-messages.destroy', $message)); ?>" onsubmit="return confirm('Supprimer ce message ?');">
        <?php echo csrf_field(); ?>
        <?php echo method_field('DELETE'); ?>
        <button type="submit" class="btn secondary" style="background:#fef2f2;color:#b91c1c;">Supprimer</button>
    </form>
<?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/show.blade.php ENDPATH**/ ?>