@extends('layouts.admin') @section('title', 'Blog Posts') @section('content') New Post @if ($posts->count())
@foreach ($posts as $post) @endforeach
Post Category Author Status Actions
@if ($post->featured_image) @else @endif

{{ $post->title }}

{{ $post->published_at ? $post->published_at->format('d M Y') : 'Not published' }}

{{ $post->category?->name ?? '—' }} {{ $post->author?->name ?? '—' }} {{ ucfirst($post->status) }} @if ($post->is_featured)Featured@endif
@csrf
@else
@endif
@endsection