@extends('admin.layout.main') @section('admin')
Manage all incoming contact messages
Total Messages
{{ $totalContacts }}
All time messages
Unread
{{ $unreadContacts }}
Read
{{ $readContacts }}
Responded
{{ $respondedContacts }}
| 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 |
||||