@extends('layouts.public') @section('title', $tenant->name) @section('content') {{-- === شريط مواضيع ملوّن === --}} @if ($topicTiles->count()) @php $tileColors = ['#2563eb', '#dc2626', '#16a34a', '#d97706', '#7c3aed', '#0891b2']; @endphp
@foreach ($topicTiles as $i => $topic) {{ $topic->name }} @endforeach
@endif {{-- === الهيرو: المقال الرئيسي بصورة خلفية كبيرة وتراكب نص === --}} @if ($featured) @if ($featured->featured_image) {{ $featured->title }} @else
@endif
@if ($featured->category) {{ $featured->category->name }} @endif

{{ $featured->title }}

{{ $featured->published_at?->diffForHumans() }}

@endif {{-- === صف الأخبار الثانوية (٣ بطاقات جنب بعض) === --}} @if ($secondaryFeatured->count())
@foreach ($secondaryFeatured as $article) @if ($article->featured_image) {{ $article->title }} @endif

{{ $article->title }}

{{ $article->published_at?->diffForHumans() }}

@endforeach
@endif
{{-- === العمود الرئيسي: أحدث المقالات + أقسام مخصصة === --}}

أحدث المقالات

{{ $latest->links() }}
{{-- === أقسام مخصصة (أكثر قسمين نشاطاً) === --}} @foreach ($categorySections as $section) @endforeach
{{-- === الشريط الجانبي: الأكثر قراءة + الإعلانات === --}}
@foreach (\App\Models\Ad::forSlot($tenant->id, 'sidebar') as $ad)
@if ($ad->type === 'adsense_code') {!! $ad->adsense_code !!} @else إعلان @endif
@endforeach @if ($mostRead->count())

🔥 الأكثر قراءة

    @foreach ($mostRead as $i => $article)
  1. {{ $i + 1 }}

    {{ $article->title }}

    {{ number_format($article->views) }} مشاهدة

  2. @endforeach
@endif
{{-- === معاينة الفيديوهات === --}} @if ($latestVideos->count())

فيديو

عرض الكل ←
@foreach ($latestVideos as $video)
@if ($video->thumbnail) {{ $video->title }} @endif

{{ $video->title }}

@endforeach
@endif {{-- === معاينة معارض الصور === --}} @if ($latestGalleries->count())

معرض الصور

عرض الكل ←
@foreach ($latestGalleries as $gallery) @if ($gallery->cover_image) {{ $gallery->title }} @endif

{{ $gallery->title }}

@endforeach
@endif {{-- === معاينة البودكاست === --}} @if ($latestPodcasts->count())

بودكاست

عرض الكل ←
@foreach ($latestPodcasts as $episode) @if ($episode->cover_image) {{ $episode->title }} @endif

{{ $episode->title }}

@endforeach
@endif @endsection