@if ($categories->count() > 0) @foreach ($categories as $category) @endforeach @endif
@if ($posts->count() > 0) @includeIf('livewire.table-sort', [ 'name' => 'Title', 'field' => 'title', ]) {{ __('Author') }} {{ __('Categories') }} @includeIf('livewire.table-sort', [ 'name' => 'Date', 'field' => 'created_at', ]) @includeIf('livewire.table-sort', [ 'name' => 'Status', 'field' => 'published', ]) {{ __('Actions') }} @foreach ($posts as $post) {{ Str::limit($post->title, 40) }} {{ request()->user()->name }} @if ($post->categories)
@foreach ($post->categories as $category) {{ $category->name }} @endforeach
@endif {{ $post->created_at->format(config('streamline.blog.admin.posts.date_format')) }} @if ($post->published) {{ __('Published') }} @else {{ __('Draft') }} @endif @endforeach
@if ($posts->hasPages()) {{ $posts->withQueryString()->links() }} @endif
@else {{ __('You don\'t currently have any posts') }} @endif