@extends('layouts.admin') @section('title','Safety incident') @section('heading',$incident->number) @section('content')
Raised by: {{ $incident->customer?->name ?? $incident->driver?->user?->name ?? 'Unknown participant' }} · {{ $incident->customer_id ? 'Passenger' : 'Driver' }}
@if($incident->driver)Assigned driver: {{ $incident->driver?->user?->name }} · {{ $incident->driver?->user?->phone }}
@endifLocation: {{ $incident->latitude }}, {{ $incident->longitude }}
Message: {{ $incident->message ?? 'SOS raised without a message.' }}
Emergency contact: {{ $incident->emergency_contact_name ?? 'Not configured' }} @if($incident->emergency_contact_phone) · {{ $incident->emergency_contact_phone }} @endif
{{ $incident->status }}Queued delivery evidence contains hashed destinations only.
No external channel was configured when this SOS was raised. Configure the signed safety webhook and/or emergency-contact SMS before production.
@else| Channel | Provider | Status | Attempts | Provider evidence | Last attempt |
|---|---|---|---|---|---|
| {{ str_replace('_',' ',$escalation->channel) }} | {{ $escalation->provider }} | {{ $escalation->status }} | {{ $escalation->attempts }} | {{ $escalation->provider_reference ?? $escalation->response_excerpt ?? 'Pending' }} | {{ $escalation->last_attempted_at?->format('d M Y H:i') ?? 'Not attempted' }} |
| Time | Actor | Transition | Note |
|---|---|---|---|
| {{ $event->created_at->format('d M Y H:i') }} | {{ $event->actor?->name ?? 'System' }} | {{ $event->from_status ?? 'created' }} → {{ $event->to_status }} | {{ $event->note }} |