@php require_frontend_packages(['fullcalendar']); @endphp @extends('layout.default') @section('title', $__t('Meal plan')) @push('pageStyles') @endpush @section('content')

@foreach($usedMealplanSections as $mealplanSection)
last doesn't work however, is always null... --}} data-last-section="{{ BoolToString(array_values(array_slice($usedMealplanSections->fetchAll(), -1))[0]->id == $mealplanSection->id) }}">
@endforeach {{-- Default empty calendar/section when no single meal plan entry is in the given date range --}} @if($usedMealplanSections->count() === 0)
@endif @include('components.productcard', [ 'asModal' => true ]) @stop