{{-- Header --}}
Command Center Send and monitor device commands
Send Command
{{-- Command Stats --}}
{{ $this->stats['total_commands'] }}
Total Commands
{{ $this->stats['successful_commands'] }}
Successful
{{ $this->stats['pending_commands'] }}
Pending
{{ $this->stats['failed_commands'] }}
Failed
{{-- Filters --}}
{{-- Commands Table --}}
@forelse($commands as $command) @empty @endforelse
Command Device Status Sent By Timing Actions
{{ $command->type }}
{{ $command->description }}
@if($command->parameters)
Parameters: {{ json_encode($command->parameters) }}
@endif
{{ $command->device_id }}
@if($command->device_name)
{{ $command->device_name }}
@endif
{{ ucfirst($command->status) }} @if($command->response_message)
{{ $command->response_message }}
@endif
{{ $command->user->name ?? 'System' }}
{{ $command->user->email ?? 'system@auto' }}
Sent: {{ $command->created_at->format('M j, Y H:i') }}
@if($command->sent_at)
Delivered: {{ $command->sent_at->format('M j, H:i') }}
@endif @if($command->acknowledged_at)
ACK: {{ $command->acknowledged_at->format('M j, H:i') }}
@endif @if($command->expires_at && $command->expires_at->isFuture())
Expires: {{ $command->expires_at->diffForHumans() }}
@endif
Details @if($command->status === 'pending' || $command->status === 'sent') Cancel @endif @if($command->status === 'failed') Retry @endif
No commands found matching your criteria.
{{-- Pagination --}}
{{ $commands->links() }}
{{-- Send Command Modal --}}
Send Device Command Execute a command on selected device(s)
@if($commandForm['type'] === 'custom') @endif @if(in_array($commandForm['type'], ['engine_stop', 'alarm_arm', 'reboot'])) @endif

Command Warning

Some commands like engine stop can affect vehicle operation. Use with caution.

Cancel Send Command
{{-- Command Details Modal --}} @if($selectedCommand)
Command Details {{ $selectedCommand->type }}
Device ID
{{ $selectedCommand->device_id }}
Status
{{ ucfirst($selectedCommand->status) }}
Description
{{ $selectedCommand->description ?? 'No description' }}
@if($selectedCommand->parameters)
Parameters
{{ json_encode($selectedCommand->parameters, JSON_PRETTY_PRINT) }}
@endif @if($selectedCommand->response_message)
Response
{{ $selectedCommand->response_message }}
@endif
Created
{{ $selectedCommand->created_at->format('M j, Y H:i:s') }}
@if($selectedCommand->sent_at)
Sent
{{ $selectedCommand->sent_at->format('M j, Y H:i:s') }}
@endif
Close
@endif