@php /* | Activatable brochures section. Renders one card per downloadable PDF and | only when the section is enabled AND at least one configured file exists | on the public disk, so a missing file never leaves a dead link behind. */ $brochure = app(\App\Services\BrochureService::class); $items = $brochure->brochures(); // The legacy global title/description double as the section intro when more // than one brochure is listed; for a single card they live in the card. $showHeading = count($items) > 1 && (filled($brochure->title()) || filled($brochure->description())); @endphp @if ($brochure->shouldRender()) @if ($showHeading) @endif
@foreach ($items as $item)

{{ $item['title'] }}

@if ($item['description'])

{{ $item['description'] }}

@endif
{{ $item['cta_label'] }}
@endforeach
@endif