@extends('layouts.app') @section('center')
Devices list
@php function renderDeviceRows($device, $level = 0) { static $counter = 1; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; if ($device->children && $device->children->count()) { foreach ($device->children as $child) { renderDeviceRows($child, $level + 1); } } } @endphp @foreach ($devices as $device) @php renderDeviceRows($device); @endphp @endforeach
# Global Device ID Mode Meter Type Meter Category installed On
'.$counter++ .'' . $device->global_device_id . ''; if($device->dmdt_bidirectional_device) echo 'Gross Meter'; else echo 'Net Meter'; echo '' . $device->dmdt_phase .'Phase' . $device->category . '' . $device->installed_on . '
@push('scripts') @endpush @endsection()