@include('filament.charity.booklet.partials.styles') {{ $charityOrg->name }} @include('filament.charity.booklet.partials.front-page') @include('filament.charity.booklet.partials.howto-enjoy-tour') @include('filament.charity.booklet.partials.food-bank-Items') @foreach($booklet ?? [] as $page) @if(in_array($page['data']['token'], $exludedPages)) @continue; @endif @switch($page['type']) @case('image') @php $fileExists = Storage::disk('public')->exists($page['data']['image']); @endphp @if(!$fileExists) @break @endif Image @break @default @php $showBackground = $page['data']['is_background_image']; @endphp
{!! Str::markdown($page['data']['content'] ?? '') !!} @if(isset($page['data']['image']) && !$showBackground)
Image
@endif
@endswitch @endforeach @include('filament.charity.booklet.partials.maps') @include('filament.charity.booklet.partials.thank-you')