@php
$current_image_uuid =$device->current_screen_image;
if($current_image_uuid) {
$file_extension = file_exists(storage_path('app/public/images/generated/' . $current_image_uuid . '.png')) ? 'png' : 'bmp';
$current_image_path = 'storage/images/generated/' . $current_image_uuid . '.' . $file_extension;
} else {
$current_image_path = 'storage/images/setup-logo.bmp';
}
@endphp
{{ $device->name }}
{{$device->last_refreshed_at?->diffForHumans()}}
{{$device->mac_address}}
@if($device->last_firmware_version)
{{$device->last_firmware_version}}
@endif
@if($device->wifiStrength)
@endif
@if($device->batteryPercent)
@endif
View
Show Logs
@if($device->mirror_device_id)
@elseif($current_image_path)
@endif