@if($commands->isEmpty())

No immobilization commands found for this vehicle.

@else
@foreach($commands as $command)
{{ strtoupper(str_replace('_', ' ', $command->command_type)) }} {{ ucfirst($command->command_status) }}
@if($command->reason)

Reason: {{ $command->reason }}

@endif
Initiated: {{ $command->created_at->format('d M Y, H:i') }}
By: {{ $command->initiatedBy->name ?? 'System' }}
@if($command->executed_at)
Executed: {{ $command->executed_at->format('d M Y, H:i') }}
@endif @if($command->failed_at)
Failed: {{ $command->failed_at->format('d M Y, H:i') }}
@endif
@if($command->failure_reason)
Failure Reason: {{ $command->failure_reason }}
@endif
@endforeach
@endif