@extends('layouts.admin') @section('title', 'Contact Messages — Admin DaisyRisk') @section('page-title', 'Contact Messages') @section('content')

Contact Messages

Manage contact form submissions and inquiries

Unread ({{ $messages->where('status', 'new')->count() }})
{{-- Filter Cards --}}
Total Messages
{{ $totalMessages ?? 0 }}
Unread
{{ $unreadCount ?? 0 }}
Replied
{{ $repliedCount ?? 0 }}
Today
{{ $todayCount ?? 0 }}
{{-- Search & Filter Form --}}
Search & Filter Messages
{{-- Messages Table --}}
Contact Messages
@if($messages && $messages->count() > 0)
@foreach($messages as $message) @endforeach
Sender Subject Message Preview Category Status Date Actions
{{ strtoupper(substr($message->name, 0, 1)) }}
{{ $message->name }}
{{ $message->email }}
@if($message->company)
{{ $message->company }}
@endif
{{ Str::limit($message->subject, 40) }}
{{ Str::limit($message->message, 80) }}
@if($message->category) {{ ucfirst($message->category) }} @else - @endif @switch($message->status) @case('new') New @break @case('read') Read @break @case('replied') Replied @break @endswitch
{{ $message->created_at->format('M d, Y') }}
{{ $message->created_at->format('H:i') }}
{{-- Pagination --}} @if(method_exists($messages, 'links'))
Showing {{ $messages->firstItem() }} to {{ $messages->lastItem() }} of {{ $messages->total() }} results
{{ $messages->withQueryString()->links() }}
@endif @else
No Contact Messages Found

No contact form submissions match your current filters.

@endif
{{-- Bulk Actions Modal --}} @endsection @push('styles') @endpush @push('scripts') @endpush