@php $status = $complaint->status->value; $statusColors = [ 'under_investigation' => 'bg-red-100 text-red-800', 'resolved' => 'bg-green-100 text-green-800', ]; $label = \App\Enums\Status::options()[$status]['name'] ?? ucfirst(str_replace('_', ' ', $status)); $color = $statusColors[$status] ?? 'bg-red-100 text-red-800'; @endphp
{{ $complaint->report_type }} {{ $label }}
@csrf @method('PUT')
{{ __('Requested Time : :type', ['type' => $complaint->created_at ? $complaint->created_at->format('n/j/y, g:i A') : '']) }} {{ __('Content : :type', ['type' => $complaint->note]) }} {{ __('Submitted by : :type', ['type' => $complaint->complaint_by === 1 ? 'Rider' : 'Driver']) }}
{{ __('Request Info') }}
(View)
@if ($complaint->complaint_by === 1)
{{ __('Rider Info (Sender)') }}
(View)
@else
{{ __('Driver Info (Sender)') }}
(View)
@endif