@extends('admin.layout.main') @section('admin')

Contact Messages

Manage all incoming contact messages

Total Messages

{{ $totalContacts }}

All time messages

Unread

{{ $unreadContacts }}

@php $unreadPercentage = $totalContacts > 0 ? ($unreadContacts / $totalContacts) * 100 : 0; @endphp
{{ number_format($unreadPercentage, 0) }}%

Read

{{ $readContacts }}

Reviewed messages

Responded

{{ $respondedContacts }}

Resolved messages
Clear Filters

All Contact Messages

Showing {{ $contacts->firstItem() ?? 0 }}-{{ $contacts->lastItem() ?? 0 }} of {{ $contacts->total() }}
@forelse($contacts as $contact) @empty @endforelse
Contact Message Status Actions
{{ strtoupper(substr($contact->name, 0, 1)) }}

{{ $contact->name }}

{{ $contact->email }}

@if($contact->phone)

{{ $contact->phone }}

@endif

{{ Str::limit($contact->message, 80) }}

@if($contact->service) {{ $contact->service }} @endif
@php $statusConfig = [ 'new' => [ 'color' => 'bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300', 'icon' => 'fa-envelope' ], 'read' => [ 'color' => 'bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300', 'icon' => 'fa-envelope-open' ], 'responded' => [ 'color' => 'bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300', 'icon' => 'fa-reply' ], 'archived' => [ 'color' => 'bg-gray-100 text-gray-800 dark:bg-gray-900/30 dark:text-gray-300', 'icon' => 'fa-archive' ] ]; $config = $statusConfig[$contact->status] ?? [ 'color' => 'bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-gray-300', 'icon' => 'fa-question-circle' ]; @endphp {{ ucfirst($contact->status) }}

No contact messages found

All contact messages will appear here

@if($contacts->hasPages())
Showing {{ $contacts->firstItem() }} to {{ $contacts->lastItem() }} of {{ $contacts->total() }} results
{{ $contacts->links() }}
@endif
@endsection