@extends('commons.layouts.admin') @section('content') @include('commons.layouts.partials._alert')
| # | @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('House No.')}} | @endif @endforeach{{App\Language::trans('Action')}} | |
|---|---|---|---|---|---|---|
| {{$index+1}} | @foreach($row->toArray() as $key => $value) @if($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{{App\Language::trans('Edit')}} | {{App\Language::trans('View')}} | {{App\Language::trans('Del')}} |