@extends('_version_02.commons.layouts.admin') @section('content') @include('_version_02.commons.layouts.partials._alert')
@if($cols == '') @include('_version_02.commons.layouts.partials._no_data_msg') @else
@php $priority_counter = 1 ; @endphp @foreach($cols as $col) @if(is_integer($col) == true) @else @endif @endforeach @php $index = 0; @endphp @foreach($data as $row) @php //$index = 0; //if(!isset($row['meter_register_id'])){continue;} //dd($row); @endphp @foreach($reading_cols as $col) @endforeach @php $index ++; @endphp @endforeach
{{App\Language::trans(date('h A', strtotime('- '.($interval-intval($col)).' hours', strtotime('now'))))}}{{App\Language::trans(ucwords(str_replace('_', ' ', $col)))}}
{{ $index + 1 }} {{ $row['house_room_no'] }} {{ $row['current_meter_reading'] }}{{isset($row['reading'][$col]) ? $row['reading'][$col]: '-'}}
@endif
@endsection @section('script') @endsection