@if(!empty($meal['banner_url']))
![{{ $meal['name'] ?? __('Unnamed Meal') }}]({!! (str_contains($meal['banner_url'], 'drive.google.com') ? drive_direct_link($meal['banner_url']) : $meal['banner_url']) ?? asset('images/meals/' . $meal['sub_name'] . '.png') !!})
@endif
{{ $meal['name'] ?? __('Unnamed Meal') }}
@if(!empty($meal['sub_name']))
({{ $meal['sub_name'] instanceof \App\Enums\MealSlot
? $meal['sub_name']->getLabel()
: \App\Enums\MealSlot::tryFrom($meal['sub_name'])?->getLabel() ?? $meal['sub_name'] ?? '-' }})
@endif
@if(!empty($meal['items']))
{{ __('Items') }}:
@foreach($meal['items'] as $item)
-
{{ $item['name'] ?? __('Unnamed Item') }}
@if(!empty($item['comment']))
{{ $item['comment'] }}
@endif
@endforeach
@endif
@if(!empty($meal['instructions']))
{{ __('Instructions') }}:
@foreach($meal['instructions'] as $instruction)
-
{{ $instruction['name'] ?? __('Unnamed Instruction') }}
@if(!empty($instruction['content']))
{{ $instruction['content'] }}
@endif
@endforeach
@endif
@if(!empty($meal['directions']))
{{ __('Directions') }}:
@foreach($meal['directions'] as $direction)
- {{ $direction }}
@endforeach
@endif