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; file_exists('storage/images/generated/' . $current_image_uuid . '.png') ? $file_extension = 'png' : $file_extension = 'bmp'; $current_image_path = 'storage/images/generated/' . $current_image_uuid . '.' . $file_extension; @endphp

{{ $device->name }}

{{$device->mac_address}}

@if($current_image_uuid) 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--}}