@extends('layouts/contentNavbarLayout') @section('title', 'Contact Us Messages') @section('content')

Contact Us Messages

Manage and respond to customer inquiries

Total Messages: {{ $contacts->total() }}

{{ $stats['pending'] }}

Pending

{{ $stats['in_progress'] }}

In Progress

{{ $stats['resolved'] }}

Resolved

{{ $stats['closed'] }}

Closed
Reset
Contact Messages
@csrf
@forelse ($contacts as $contact) @empty @endforelse
Name Email Subject Status Date Actions
{{ strtoupper(substr($contact->name, 0, 1)) }}
{{ $contact->name }}
@if($contact->phone) {{ $contact->phone }} @endif
{{ $contact->email }} {{ $contact->subject }} @php $statusClasses = [ 'pending' => 'bg-warning', 'in_progress' => 'bg-info', 'resolved' => 'bg-success', 'closed' => 'bg-secondary' ]; @endphp {{ ucfirst(str_replace('_', ' ', $contact->status)) }} {{ $contact->created_at->format('M d, Y') }}
{{ $contact->created_at->format('h:i A') }}
No contact messages found

There are no contact messages matching your criteria.

@if($contacts->hasPages())
{{ $contacts->appends(request()->query())->links() }}
@endif
@endsection @section('page-script') @endsection