@extends('admin.layouts.app') @section('title', 'Contact from '.$contact->name) @section('content')
{{-- Message + Reply --}}
{{ $contact->subject ?: 'No subject' }}
{{ ucfirst($contact->status) }}
{{ $contact->message }}
Reply by email
@if(session('success'))
{{ session('success') }}
@endif
@csrf @method('PUT')
@error('reply_body')
{{ $message }}
@enderror
{{-- Sidebar --}}
Sender details
Name
{{ $contact->name }}
Email
{{ $contact->email }}
@if($contact->phone)
Phone
{{ $contact->phone }}
@endif
Received
{{ $contact->created_at->format('d M Y, g:i A') }}
{{ $contact->created_at->diffForHumans() }}
@if($contact->read_at)
Read at
{{ $contact->read_at->format('d M Y, g:i A') }}
@endif @if($contact->replied_at)
Replied at
{{ $contact->replied_at->format('d M Y, g:i A') }}
@endif @php $waNumber = \App\Models\Setting::get('whatsapp_number'); @endphp @if($contact->phone && $waNumber) WhatsApp @endif
@endsection