@extends('web.layouts.app') @push('web.styles') @vite('resources/css/web/page/about.css') @endpush @php function isYoutubeUrl($url) { return preg_match('/(youtube\.com|youtu\.be)/i', $url); } @endphp @section('content')
@php // If all positions are 0, sort by created_at $orderedSliderImages = $sliderImages; if ($sliderImages->count() > 0 && $sliderImages->every(fn($img) => $img->position == 0)) { $orderedSliderImages = $sliderImages->sortBy('created_at'); } @endphp @if ($orderedSliderImages->count() > 0)
@if (!in_array(Route::current()->parameter('articleCategory'), ['tendances', 'pas-de-categorie'])) @foreach ($orderedSliderImages as $image)
{{ $image->category->name }} @php $artist = $image->article?->artists?->first(); @endphp {{-- @if ($artist?->name) --}} {{-- @endif --}}
@endforeach @endif
@endif

{{ $category->name }}

Nos articles sur l'actualité cinéma et série

@include('web.partials.share', ['shareTitle' => 'PARTAGEZ CETTE PAGE'])
@livewire('web.article-list', ['category' => $category])

Top {{ $category->name }}

@foreach ($articles->take(3) as $key => $article)
{{ $key + 1 . '.' }}

{{ $article->title }}

{{ ($article?->views->views ?? 0) . ' Clics' }}
@endforeach
@if ($allCategories->count() > 0)
@endif
@endsection @push('web.scripts') @endpush