@extends('_version_02.commons.layouts.admin') @section('content') @include('_version_02.commons.layouts.partials._alert')
@php $priority_counter = 1 ; @endphp @foreach($cols as $col) @if($col != 'store_id') @if($col == 'id') @elseif(str_contains($col, '_id')) @else @endif @endif @php $priority_counter ++ ; @endphp @endforeach @php $priority_counter = 1 ; @endphp @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') && $key !='implementation_date') @elseif(str_contains($key, 'room_type')) @elseif($key != 'id') @endif @endforeach @endforeach
#{{App\Language::trans(ucwords(str_replace('_id', '', $col)))}}{{App\Language::trans(ucwords(str_replace('_', ' ', $col)))}}{{App\Language::trans('Action')}}
{{$index+1}} @php //dd($row); @endphp {{ $row->display_status_string($value) }} {{$row->display_relationed($key, 'account_no')}}{{$row->display_relationed($key, 'name')}}{{$row->getDouble($value)}}{{$row->getDate($value)}}{{$row->display_room_type_string($key)}}{{$value}} {{App\Language::trans('Edit')}} | {{App\Language::trans('View')}}
@endsection @section('script') @endsection