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

<?php $__env->startSection('content'); ?>
<div class="row justify-content-center">
    <div class="col-lg-8">
        <div class="card">
            <div class="card-header bg-white d-flex justify-content-between align-items-center">
                <h6 class="mb-0"><i class="bi bi-envelope me-2"></i>Message from <?php echo e($contactMessage->name); ?></h6>
                <span class="badge <?php echo e($contactMessage->is_read ? 'bg-secondary' : 'bg-danger'); ?>"><?php echo e($contactMessage->is_read ? 'Read' : 'Unread'); ?></span>
            </div>
            <div class="card-body">
                <dl class="row mb-0">
                    <dt class="col-sm-3">Name</dt><dd class="col-sm-9"><?php echo e($contactMessage->name); ?></dd>
                    <dt class="col-sm-3">Email</dt><dd class="col-sm-9"><a href="mailto:<?php echo e($contactMessage->email); ?>"><?php echo e($contactMessage->email); ?></a></dd>
                    <dt class="col-sm-3">Phone</dt><dd class="col-sm-9"><?php echo e($contactMessage->phone ?: '—'); ?></dd>
                    <dt class="col-sm-3">Subject</dt><dd class="col-sm-9"><?php echo e($contactMessage->subject ?: '—'); ?></dd>
                    <dt class="col-sm-3">Received</dt><dd class="col-sm-9"><?php echo e($contactMessage->created_at->format('d M Y, H:i')); ?></dd>
                    <dt class="col-sm-3">Message</dt>
                    <dd class="col-sm-9"><?php echo e($contactMessage->message); ?></dd>
                </dl>
            </div>
            <div class="card-footer bg-white">
                <a href="mailto:<?php echo e($contactMessage->email); ?>?subject=Re: <?php echo e($contactMessage->subject); ?>" class="btn btn-primary btn-sm"><i class="bi bi-reply me-1"></i>Reply via Email</a>
                <a href="<?php echo e(route('admin.messages.index')); ?>" class="btn btn-outline-secondary btn-sm">Back</a>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

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