@if($messages && $messages->count() > 0)
|
|
Sender |
Subject |
Message Preview |
Category |
Status |
Date |
Actions |
@foreach($messages as $message)
|
|
{{ 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') }}
|
|
@endforeach
{{-- 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