@extends('layouts.public') @section('content') @if(isset($tickerPosts) && $tickerPosts->isNotEmpty())
آخرین عناوین
@php $headlines = $tickerPosts->map(function($post) { return '' . e($post->title) . ''; })->all(); @endphp @endif
@if(isset($topGridPosts) && $topGridPosts->count() >= 5)
@include('components.post-card-hero', ['post' => $topGridPosts->first()])
@foreach($topGridPosts->slice(1, 2) as $post) @include('components.post-card-medium', ['post' => $post]) @endforeach
@endif
@if(isset($mostViewedPosts))

پربیننده‌ترین‌ها

@endif
@if(isset($trendingPosts) && $trendingPosts->isNotEmpty())

برگزیده‌ها

@foreach($trendingPosts as $post)
@include('components.post-card-horizontal', ['post' => $post])
@endforeach
@endif
@if(isset($hotNewsPosts) && $hotNewsPosts->isNotEmpty())

اخبار داغ

@foreach($hotNewsPosts as $post) @include('components.post-card-large-list', ['post' => $post]) @endforeach
@endif
@if(isset($latestPosts) && $latestPosts->isNotEmpty())

آخرین اخبار

@endif
@push('scripts') {{-- ... اسکریپت نوار خبر بدون تغییر ... --}} @endpush @endsection