@include('layouts.header')

المدونة التعليمية

أحدث المقالات، النصائح القيمة، والأخبار الحصرية لمرافقتك في رحلتك التعليمية نحو النجاح.

الكل @isset($categories) @foreach ($categories as $category) {{ $category->name }} @endforeach @endisset
@if ($posts->isNotEmpty()) @php // On sépare le premier article des autres $featuredPost = $posts->first(); $otherPosts = $posts->skip(1); @endphp
{{ $featuredPost->title }}

{{ $featuredPost->title }}

{{ Str::limit($featuredPost->content, 220) }}

{{ $featuredPost->author->name ?? 'مؤلف' }}
{{ $featuredPost->author->name ?? 'مؤلف غير معروف' }}
{{ $featuredPost->created_at->format('d F Y') }}
جديد
@if($otherPosts->isNotEmpty())

مقالات أخرى

@foreach ($otherPosts as $post)
{{ $post->title }}
@if ($post->categories->isNotEmpty()) {{ $post->categories->first()->name }} @endif

{{ $post->title }}

{{ Str::limit($post->content, 90) }}

{{ $post->author->name ?? 'مؤلف' }}
{{ $post->author->name ?? 'مؤلف غير معروف' }} · {{ $post->created_at->format('d/m/Y') }}
@endforeach
@endif @else

لا توجد مقالات

لا توجد مقالات لعرضها في الوقت الحالي. يرجى المحاولة مرة أخرى لاحقًا.

@endif
{{-- Make sure your AppServiceProvider has Paginator::useBootstrap(); or similar --}} {{ $posts->withQueryString()->links() }}
{{-- @include('layouts.footer') --}}