{{-- ...entête HTML, etc... --}}
الكل @foreach($categories as $category) {{ $category->name }} @endforeach
@if($posts->count()) @php $featured = $posts->first(); @endphp
{{ $featured->title }}
@if($featured->categories->count()) {{ $featured->categories->first()->name }} @endif

{{ $featured->title }}

{{ \Illuminate\Support\Str::limit(strip_tags($featured->content), 150) }}

Author
{{ $featured->author->name ?? 'N/A' }} · {{ $featured->created_at->format('d M Y') }}
@endif
@foreach($posts->skip(1) as $post)
{{ $post->title }}
@if($post->categories->count()) {{ $post->categories->first()->name }} @endif

{{ $post->title }}

{{ $post->created_at->format('d M Y') }}
@endforeach
{{ $posts->withQueryString()->links() }}
{{-- ...footer, scripts, etc... --}}