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

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

@foreach($cols as $col) @if($col == 'id') @elseif(str_contains($col, '_id')) @else @endif @endforeach @foreach($model as $index => $row) @foreach($row->toArray() as $key => $value) @if($key == 'status') @elseif(str_contains($key, 'meter_register_id')) @elseif(str_contains($key, '_id')) @elseif(str_contains($key, 'amount')) @elseif(str_contains($key, 'date')) @elseif($key != 'id') @endif @endforeach @endforeach
#{{App\Language::trans(ucwords(str_replace('_', ' ', str_replace('_id', '', $col))))}}{{App\Language::trans(ucwords(str_replace('_', ' ', $col)))}}{{App\Language::trans('Action')}}
{{$index+1}}{{$row->display_status_string($key)}}{{$row->display_relationed($key, 'account_no')}}{{$row->display_relationed($key, 'name')}}{{$row->getDouble($value)}}{{$row->getDate($value)}}{{$value}} {{App\Language::trans('Edit')}} | {{App\Language::trans('View')}}
@endsection @section('script') @endsection