@if ( $data['count'] == 0 )

No data for this device

@else @foreach ($data['data'] as $read) @endforeach
Date Time Watt Amp
{{ $read['entry_dt'] }} {{ $read['watt_val'] ?? 'NA' }} {{ $read['amp_val'] ?? 'NA' }}
{{ generateBSPagination('devices/ajax/show-reading/'.$data['data'][0]['device_id'], $data['page'], $data['total_pages'], 'swrpg') }} @endif