@section('title', __('Incidents'))
{{ $message }}
@enderror@if ($o->order) {{ __('Ride') }}: {{ $o->order->code }} · @endif @if ($o->driver) {{ __('Driver') }}: {{ $o->driver->name }} · @endif @if ($o->customer) {{ __('Passenger') }}: {{ $o->customer->name }} @endif
@if ($o->handled_by){{ __('Responsável') }}: {{ optional(\App\Models\User::find($o->handled_by))->name }} @if ($o->assumed_at) · {{ __('assumiu em') }} {{ $o->assumed_at->format('d/m H:i') }} · {{ __('resposta em') }} {{ \App\Models\SupportTicket::duracao((int) $o->created_at->diffInSeconds($o->assumed_at)) }} @endif
@elseif ($o->type === 'sos'){{ __('SEM RESPONSÁVEL: assuma para iniciar o protocolo') }}
@endif @if ($o->type === 'sos' && !in_array($o->status, ['resolvida', 'sem_procedencia'])){{ $o->description }}
@endif @if ($o->resolution){{ __('Decision') }} ({{ \App\Models\Incident::ACOES[$o->action_taken] ?? $o->action_taken }}): {{ $o->resolution }}
@endif @if (!in_array($o->status, ['resolvida', 'sem_procedencia']))