@php $items = config('site.media_showcase', []); $socials = config('site.socials'); @endphp

{{ __('home.video.note') }}

@php $orbitItems = collect($items) ->reject(fn ($item) => $item['type'] === 'corporate') ->take(5) ->values() ->all(); $linkItems = collect($items) ->reject(fn ($item) => $item['type'] === 'corporate') ->values() ->all(); $featuredItems = array_slice($linkItems, 0, 2); $railItems = array_slice($linkItems, 2); @endphp
{{ __('home.video.items.corporate') }}
@foreach ($orbitItems as $i => $item) @php $href = $item['url'] ?? null; if (! empty($item['route'])) { $href = site_route($item['route'], $item['route_params'] ?? []); } $external = in_array($item['type'], ['youtube', 'linkedin', 'youtube_channel'], true); @endphp @endforeach
{{ __('home.video.spotlight_label') }}

{{ __('home.video.spotlight_title') }}

{{ __('home.plant_note') }}

@if (count($railItems))
@foreach ($railItems as $item) @php $href = $item['url'] ?? null; if (! empty($item['route'])) { $href = site_route($item['route'], $item['route_params'] ?? []); } $external = in_array($item['type'], ['youtube', 'linkedin', 'youtube_channel'], true); $label = __('home.video.items.'.$item['key']); @endphp @if ($item['type'] === 'youtube' || $item['type'] === 'youtube_channel') YouTube @elseif ($item['type'] === 'linkedin') LinkedIn @else {{ __('home.video.work_label') }} @endif {{ $label }} {{ __('common.read_more') }} @endforeach
@endif