| # | @foreach($cols as $col) @if($col != 'store_id') @if($col == 'id')ID | @elseif(str_contains($col, 'leaf_')){{App\Language::trans(ucwords(str_replace('leaf_', ' ', str_replace('_id', '', $col))))}} | @elseif(str_contains($col, '_id')){{App\Language::trans(ucwords(str_replace('_', ' ', str_replace('_id', '', $col))))}} | @else{{App\Language::trans(ucwords(str_replace('_', ' ', $col)))}} | @endif @if($col == 'ip_address'){{App\Language::trans('Unit No.')}} | @endif @endif @php $priority_counter ++ ; @endphp @endforeach{{App\Language::trans('Action')}} | |
|---|---|---|---|---|---|---|---|
| {{$index+1}} | @foreach($row->toArray() as $key => $value) @if($key == 'id'){{$value}} | @elseif($key == 'is_power_supply_on'){{App\Language::trans(($row->is_power_supply_on == '1' ? 'On' : 'Off'))}} | @elseif($key == 'status'){{$row->display_status_string($key)}} | @elseif(str_contains($key, 'leaf_room_id')){{$row->convert_room_no($value, $rooms)}} | @elseif(str_contains($key, '_id') && $key != 'meter_id'){{$row->display_relationed($key, 'name')}} | @elseif($key != 'id'){{$value}} | @endif @if($key == 'ip_address'){{$row->convert_house_no($row->leaf_room_id, $rooms)}} | @endif @endforeach @include('_version_02.commons.layouts.partials._table_action_column')
| {{ $col }} | @endforeach|||
|---|---|---|---|
| {{$index+1}} | @foreach($no_meter_columns as $col) @if($col == 'leaf_room_id'){{$row->convert_house_no($meter[$col], $rooms)}} | {{$row->convert_room_no($meter[$col], $rooms)}} | @else{{ $meter[$col] }} | @endif @php $index ++; @endphp @endforeach