@extends('layouts.app') @section('title', 'Blog - Game World') @section('content')

{{ __('Blog') }}

{{ __('Latest news, updates, and educational content') }}

@if(request('category')) @endif
@if($categories->count() > 0)
{{ __('Filter by Category') }}
{{ __('All Posts') }} @foreach($categories as $category) {{ $category->name }} @endforeach
@endif @if($posts->count() > 0)
@foreach($posts as $post)
@if($post->featured_image) {{ $post->title }} @endif
{{ $post->category->name }} @if($post->is_featured) {{ __('Featured') }} @endif
{{ $post->title }}

{{ Str::limit($post->excerpt ?: strip_tags($post->content), 120) }}

{{ $post->author->name }}
{{ $post->published_at->format('M d, Y') }}
{{ $post->views_count }} {{ __('views') }}
@endforeach
{{ $posts->appends(request()->query())->links() }}
@else

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

{{ __('Try adjusting your search or filter criteria.') }}

{{ __('View All Posts') }}
@endif
@endsection