@extends('layouts/contentNavbarLayout') @section('title', 'Contact Message Details') @section('content')

Contact Message Details

Edit/Respond Back to List
Message Information
@php $statusClasses = [ 'pending' => 'bg-warning', 'in_progress' => 'bg-info', 'resolved' => 'bg-success', 'closed' => 'bg-secondary' ]; @endphp {{ ucfirst(str_replace('_', ' ', $contact->status)) }}
From
{{ strtoupper(substr($contact->name, 0, 1)) }}
{{ $contact->name }}
{{ $contact->email }} @if($contact->phone)
{{ $contact->phone }} @endif
Received

{{ $contact->created_at->format('F d, Y \a\t h:i A') }}

{{ $contact->created_at->diffForHumans() }}
Subject
{{ $contact->subject }}
Message

{{ $contact->message }}

@if($contact->admin_response)
Admin Response

{{ $contact->admin_response }}

Responded by: {{ $contact->respondedBy->name ?? 'Unknown Admin' }} {{ $contact->responded_at ? $contact->responded_at->format('F d, Y \a\t h:i A') : '' }}
@endif
Quick Actions
Update Status
@csrf @method('PUT')
Message Information
Message ID #{{ $contact->id }}
Created {{ $contact->created_at->format('M d, Y h:i A') }}
Last Updated {{ $contact->updated_at->format('M d, Y h:i A') }}
@if($contact->responded_at)
Responded {{ $contact->responded_at->format('M d, Y h:i A') }}
@endif
@endsection