@if(isset($posts) && count($posts) > 0)
| @lang('partials.s_n') |
@lang('partials.title') |
@lang('sidebar.category') |
@lang('partials.description') |
@lang('partials.tags') |
@lang('partials.author') |
@lang('partials.image') |
@lang('partials.status') |
@lang('partials.action') |
| @lang('partials.s_n') |
@lang('partials.title') |
@lang('sidebar.category') |
@lang('partials.description') |
@lang('partials.tags') |
@lang('partials.author') |
@lang('partials.image') |
@lang('partials.status') |
@lang('partials.action') |
@forelse($posts as $post)
| {{ $post['id'] ?? '' }} |
{{ $post['title'] ?? '' }} |
{{ isset($post['categories']) ? (is_array($post['categories']) ? implode(', ', array_column($post['categories'], 'title')) : $post['categories']->pluck('title')->implode(', ')) : '' }}
|
{{ $post['description'] ?? '' }} |
{{ isset($post['tags']) ? (is_array($post['tags']) ? implode(', ', array_column($post['tags'], 'title')) : $post['tags']->pluck('title')->implode(', ')) : '' }}
|
{{ $post['author']['name'] ?? '' }} |
@if(!empty($post['photo']))
@else
@endif
|
@if(($post['status'] ?? '') === 'active')
{{ $post['status'] }}
@else
{{ $post['status'] ?? '' }}
@endif
|
|
@empty
| No posts found! Please create a Post. |
@endforelse
@else
No posts found! Please create a Post.
@endif