@props([ 'data' => null ]) @php /** * Cards of the current division only. * * The static /partners page chose between six hand-written lists with a * `switch ($division->name)` (partners.blade.php:37). Here each card names the divisions that * represent that partner, so the same page serves all eight — which is the only option, since * `slugs` has UNIQUE(path) and only one page can live at `partners`. * * A card with no divisions set is shown everywhere: that is what every card saved before the * field existed looks like, and it keeps them visible instead of silently emptying the grid. */ $division = currentDivision()?->name; $items = collect($data['gallery_items'] ?? [])->filter(function (array $item) use ($division): bool { $only = array_filter((array) ($item['divisions'] ?? [])); return $only === [] || ($division !== null && in_array($division, $only, true)); }); @endphp @if ($items->isNotEmpty())
@foreach ($items as $item)
{{ translate_label($item, 'title') }}
{{ translate_label($item, 'title') }}

{{ translate_label($item, 'title') }}

{{ translate_label($item, 'subtitle') }}
{{ translate_label($item, 'title') }}

{{ translate_label($item, 'title_back') }}

{{ translate_label($item, 'description_back') }}
@endforeach
@endif