Availability – Pivot View

Clear Standard View
@foreach($locations as $loc) @endforeach @forelse($dishes as $dish) @php $rowTotal = 0; @endphp @foreach($locations as $loc) @php $qty = (int)($matrix[$dish->id][$loc->id] ?? 0); $rowTotal += $qty; @endphp @endforeach @empty @endforelse
Dish{{ $loc->name }}Total
{{ $dish->name }}
ID: {{ $dish->id }}
{{ $qty }} {{ $rowTotal }}
No dishes
{{ $dishes->links() }}