@foreach ($meterReadings as $value) {{-- --}} @endforeach
ID Customer ID Meter Number Previous Reading New Reading Units Price Status Image Path Created At Updated At Actions
{{ $value->id }} {{ $value->meter->customer->name }} {{ $value->meter_number }} {{ $value->previous_reading }} {{ $value->new_reading }} {{ $value->units }} {{ $value->price }} {{ $value->status }} {{ $value->image_path }} {{ $value->created_at }} {{ $value->updated_at }} @php $actions = [ [ 'data-replace' => '#editMeterReading', 'url' => '#editMeterReadingModal', 'ajax-url' => url('/Backoffice/meter-readings/' . $value->id . '/edit'), 'name' => 'Edit Reading', 'icon' => 'pencil', ], // ['url' => '/Backoffice/meter-readings/' . $value->id . '/delete', 'name' => 'delete'] ]; @endphp @include('partials.actions', ['actions' => $actions])
@include('partials.pagination', [ 'items' => $meterReadings, 'index_route' => route('customers.meterreading'), ])