@extends('admin.layouts.app') @section('content')

{{ trans('admin/main.blog') }}

@can('admin_blog_create') {{ trans('admin/main.create_blog') }} @endcan @can('admin_blog_categories') {{ trans('admin/main.create_category') }} @endcan
@foreach($blog as $post) @if(!empty($post->author->full_name)) @else @endif @endforeach
{{ trans('admin/main.title') }} {{ trans('admin/main.category') }} {{ trans('admin/main.author') }} {{ trans('admin/main.comments') }} {{ trans('public.date') }} {{ trans('admin/main.status') }} {{ trans('admin/main.action') }}
{{ $post->title }} {{ $post->category->title }}{{ $post->author->full_name }}Deleted {{ $post->comments_count }} {{ dateTimeFormat($post->created_at, 'j M Y | H:i') }} {{ ($post->status == 'pending') ? trans('admin/main.pending') : trans('admin/main.published') }} @can('admin_blog_edit') @endcan @can('admin_blog_delete') @include('admin.includes.delete_button',['url' => getAdminPanelUrl('/blog/'.$post->id.'/delete'),'btnClass' => '']) @endcan
@endsection