@extends('frontend.layouts.app') @section('title', __t('home.meta_title', 'BrigataFolgore.net — Le notizie sui Paracadutisti militari italiani')) @section('content') {{-- 1. PRIMO PIANO --}} @if($primoPiano->isNotEmpty())
@if($primoPiano[0] ?? null)
@endif
@foreach($primoPiano->slice(1, 4) as $a) @endforeach
@endif {{-- 2. IN EVIDENZA + PIÙ LETTI --}}
@if($inEvidenza->isNotEmpty())
@foreach($inEvidenza as $a) @endforeach
@endif @if($mostRead->isNotEmpty())
@foreach($mostRead as $a) @endforeach
@endif
{{-- 3. SEZIONI ARTICOLI con World Monitor inserito dopo la 2ª riga --}} @foreach($articleSections as $row)
@foreach($row as $col)
@foreach($col['articles']->take(2) as $a) @endforeach
@if($col['articles']->count() > 2)
@foreach($col['articles']->slice(2, 3) as $a) @endforeach
@endif
@endforeach
{{-- World Monitor dopo Nazionali+Internazionali (iter 2) --}} @if($loop->iteration === 2) @include('frontend.partials.world-monitor') @endif @endforeach {{-- 4. YOUTUBE --}} @if(!empty($youtubeVideos) && count($youtubeVideos) > 0) @php $bigVideos = array_slice($youtubeVideos, 0, 3); $smallVideos = array_slice($youtubeVideos, 3, 5); @endphp

{{ __t('home.live_label', 'Dirette') }}

{{ __t('home.live_videos', 'Le Nostre Dirette Video') }}

{{ __t('home.youtube_subscribe', 'Iscriviti al canale') }}
@if(!empty($smallVideos)) @endif
@endif {{-- 5. WIKI --}} @if($wikiFolgore || $wikiForzeSpeciali)
@if($wikiFolgore)
@php $tiles = $wikiFolgore['tiles']->values(); @endphp
@foreach($tiles as $i => $tile) @php $pos = $i % 7; $classes = match($pos) { 0,1 => 'col-span-12 sm:col-span-6 h-[360px]', 2,3,4 => 'col-span-6 sm:col-span-4 h-[200px]', 5,6 => 'col-span-12 sm:col-span-6 h-[360px]', default => 'col-span-6 h-[200px]', }; $size = in_array($pos, [0,1,5,6]) ? 'large' : 'normal'; @endphp
@endforeach
@endif @if($wikiForzeSpeciali)
@foreach($wikiForzeSpeciali['tiles']->take(8) as $tile)
@endforeach
@endif
@endif @endsection