@extends('admin::layouts.master') @section('content')
Post Lists
@lang('partials.create')

@csrf
@lang('partials.export')
@if(isset($posts) && count($posts) > 0) @forelse($posts as $post) @empty @endforelse
@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')
{{ $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'])) {{ $post['photo'] }} @else avatar.png @endif @if(($post['status'] ?? '') === 'active') {{ $post['status'] }} @else {{ $post['status'] ?? '' }} @endif
@csrf @method('delete')
No posts found! Please create a Post.
@else
No posts found! Please create a Post.
@endif
@endsection