| {{ __('SI#') }} | {{ __('Name') }} | {{ __('Email') }} | {{ __('Message') }} | {{ __('Date') }} | {{ __('Status') }} | {{ __('Action') }} |
|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $contact['name'] ?? '-' }} | {{ $contact['email'] ?? '-' }} | {{ Str::limit($contact['message'], 10) ?? '-' }} | {{ $contact['created_at'] ?? '-' }} |
@php
$statusClass = match ($contact['status']) {
'pending' => 'bg-yellow-100 text-yellow-800',
'in_progress' => 'bg-blue-100 text-blue-800',
'resolved' => 'bg-green-100 text-green-800',
'cancelled' => 'bg-red-100 text-red-800',
default => 'bg-gray-100 text-gray-800',
};
$statusLabel = match ($contact['status']) {
'pending' => 'Pending',
'in_progress' => 'In Progress',
'resolved' => 'Resolved',
'cancelled' => 'Cancelled',
default => $contact['status'] ?? '-',
};
@endphp
{{ __($statusLabel) }}
|
Details |
| {{ __('No contact messages found.') }} | ||||||