| ID | Date | @foreach($waterTypes as $type){{ $type->wt_value }} | @endforeachTotal (ml) |
|---|---|---|---|
| {{ $loop->iteration }} | {{ \Carbon\Carbon::parse($date)->format('d-M-Y') }} | @foreach($waterTypes as $type) @php $record = $rows->firstWhere('water_type_id', $type->id); $amount = $record ? $record->amount_ml : 0; $total += $amount; @endphp{{ $amount }} | @endforeach{{ $total }} |