@extends('commons.layouts.admin') @section('content') @include('commons.layouts.partials._alert')

{{App\Language::trans('Listing Information')}}

@foreach($cols as $col) @if($col == 'id') @elseif(str_contains($col, 'leaf_')) @elseif(str_contains($col, '_id')) @else @endif @if($col == 'ip_address') @endif @endforeach @foreach($model as $index => $row) @foreach($row->toArray() as $key => $value) @if($key == 'status') @elseif(str_contains($key, 'leaf_room_id')) @elseif(str_contains($key, '_id') && $key != 'meter_id') @elseif($key != 'id') @endif @if($key == 'ip_address') @endif @endforeach @endforeach
#{{App\Language::trans(ucwords(str_replace('leaf_', ' ', str_replace('_id', '', $col))))}}{{App\Language::trans(ucwords(str_replace('_', ' ', str_replace('_id', '', $col))))}}{{App\Language::trans(ucwords(str_replace('_', ' ', $col)))}}{{App\Language::trans('House No.')}}{{App\Language::trans('Action')}}
{{$index+1}}{{$row->display_status_string($key)}}{{$row->convert_room_no($value, $rooms)}}{{$row->display_relationed($key, 'name')}}{{$value}}{{$row->convert_house_no($row->leaf_room_id, $rooms)}} {{App\Language::trans('Edit')}} | {{App\Language::trans('View')}} | {{App\Language::trans('Del')}}
@endsection @section('script') @endsection