@foreach ($shiftTypes as $shiftType) @php $shiftTimeSlots = $timeSlots->get($shiftType->id, collect()); @endphp @endforeach