@extends('backend.app') @section('content')

Contact Messages

Message Details

Reply
{{-- Name --}}

{{ $contactMessage->name ?? 'N/A' }}

{{-- Surname --}}

{{ $contactMessage->surname ?? 'N/A' }}

{{-- Email --}} {{-- Nation --}}

{{ $contactMessage->nation ?? 'N/A' }}

{{-- Activity --}}

{{ $contactMessage->activity ?? 'N/A' }}

{{-- Telephone --}} {{-- Status --}}

@php $status = trim($contactMessage->status); if (empty($status)) $status = 'pending'; $badgeClass = match (strtolower($status)) { 'pending' => 'bg-danger', 'replied' => 'bg-warning', 'closed' => 'bg-success', default => 'bg-secondary', }; @endphp {{ ucfirst($status) }}

{{-- Message --}}

{!! nl2br(e($contactMessage->message ?? 'N/A')) !!}

{{-- Date --}}

{{ $contactMessage->created_at->format('d M Y, H:i A') ?? 'N/A' }}

{{-- Status Update Form --}}
@csrf @method('PATCH')
{{-- Back Button --}}
Back to Messages
@csrf @method('DELETE')
@endsection