auth()->user()->devices()->paginate(10)]); } } ?>
@if($devices->isEmpty())

Add your first device

Add Device
@endif @foreach($devices as $device)
@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->mac_address}}

@if($device->mirror_device_id)
This device is mirrored from {{ $device->mirrorDevice->name }}
@elseif($current_image_path) Current Image @endif
@endforeach
{{-- @php--}} {{-- $current_image_uuid = auth()->user()?->devices()?->first()?->current_screen_image;--}} {{-- $current_image_path = 'images/generated/' . $current_image_uuid . '.png';--}} {{-- @endphp--}} {{-- @if($current_image_uuid)--}} {{--

TRMNL Giveaway

--}} {{--

D8:3B:DA:F3:C1:DC

--}} {{-- --}} {{-- Current Image--}} {{-- @else--}} {{--

Add your first device

--}} {{-- Add Device--}} {{-- @endif--}}