@foreach($all_blogs as $blog) @endforeach @if($all_blogs->isEmpty()) @endif
{{ __('ID') }} {{ __('Image') }} {{ __('Blog Title') }} {{ __('Category') }} {{ __('Status') }} {{ __('Date') }}
#{{ str_pad($blog->id, 5, '0', STR_PAD_LEFT) }}
{!! render_image_markup_by_attachment_id($blog->image) !!}
{{ $blog->title }} {{ $blog->category?->category ?? '—' }} @if($blog->status === 0) {{ __('Inactive') }} @else {{ __('Active') }} @endif {{ $blog->created_at->toFormattedDateString() }}
@can('blog-edit') @endcan @can('blog-delete') @endcan
{{ __('No blog posts found.') }}
@include('backend.layout.partials.paginator', ['paginator' => $all_blogs, 'label' => __('posts')])