@extends('web.layouts.app') @push('web.styles') @vite('resources/css/web/page/news-article.css') @endpush @section('content')
@if ($bannerAd) @endif
{{ $article->title }}
@if ($article->categories->isNotEmpty()) @endif

{{ $article->title }}

@php Carbon\Carbon::setLocale('fr'); @endphp

PubliƩ le {{ $article->published_at->translatedFormat('d F Y') }} {{-- @if ($article->author) par {{ $article->author->name }} @endif --}}

{!! $article->body !!}
@if ($article->author) @endif {{-- --}}
@include('web.partials.share', ['shareTitle' => 'Partagez cet article'])
@if ($events->count() > 0) @php $event = $events->first(); // Get the first event @endphp @if (($isPopcornCategory ?? false)) {{-- Popcorn category: Show both posters in a swiper slider --}} @else {{-- Musique and other categories: Show single event poster --}} @endif @endif

TOP POPCORN

@foreach ($relatedArticles as $index => $relatedArticle)
{{ $index + 1 . '.' }}

{{ $relatedArticle->title }}

{{ ($relatedArticle?->views->views ?? 0) . ' Clics' }}
@endforeach
@if ($sidebarAdTop) @endif
@foreach ($upcomingEvents as $event) @endforeach
@if ($sidebarAdBottom) @endif {{-- --}}
@endsection @push('web.scripts') @endpush