{{-- Header --}}

{{ __('Blog') }}

{{ __('Latest news and tutorials') }}

{{-- Search + filter bar --}}
@if ($posts->isEmpty())

{{ __('No posts yet') }}

{{ __('Check back soon for new content.') }}

@else
@foreach ($posts as $post) {{-- Cover image --}}
@if ($post->cover_image && file_exists(public_path('storage/'.$post->cover_image))) {{ $post->title }} @else
@endif
@if ($post->category) {{ $post->category->name }} @endif

{{ \Illuminate\Support\Str::limit($post->title, 70) }}

@if ($post->excerpt)

{{ \Illuminate\Support\Str::limit($post->excerpt, 120) }}

@endif
{{ $post->author?->name ?? __('Admin') }} · {{ rf_date($post->published_at) }}
{{ __('Read more') }} →
@endforeach
@if ($posts->hasPages())
{{ $posts->links() }}
@endif @endif