@extends('layout.default') @section('title', $__t('Meal plan')) @section('activeNav', 'mealplan') @section('viewJsName', 'mealplan') @push('pageScripts') @if(!empty($__t('fullcalendar_locale') && $__t('fullcalendar_locale') != 'x'))@endif @endpush @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 @stop