@extends('layouts.app') @section('title', __('admin.blog_posts')) @section('content')

{{ __('admin.blog_posts') }}

{{ __('admin.blog_description') }}

{{ __('admin.add_post') }}
@forelse($posts as $post) @empty @endforelse
{{ __('admin.title') }} {{ __('admin.category') }} {{ __('admin.author') }} {{ __('admin.published_at') }} {{ __('admin.status') }} {{ __('admin.actions') }}
@if($post->featured_image) {{ $post->title }} @else
@endif
{{ $post->title }}
{{ Str::limit($post->excerpt, 50) }}
{{ $post->category->name }}
{{ $post->author->name }}
@if($post->published_at) {{ $post->published_at->format('Y-m-d') }} @else - @endif @if($post->status == 'published') {{ __('admin.published') }} @else {{ __('admin.draft') }} @endif
@csrf @method('DELETE')
{{ __('admin.no_posts_found') }}
{{ $posts->links() }}
@endsection