@extends('layouts.admin') @section('title', 'Manage Blogs') @section('content')

Manage Blogs

+ Create New Blog
@if(session('success')) @endif
@forelse($blogs as $blog) @empty @endforelse
Title Category Author Views Published Status Created Actions
{{ $blog->title }} {{ $blog->category ?? '-' }} {{ $blog->author_name ?? ($blog->author ? $blog->author->name : 'N/A') }} {{ $blog->view_count }} @if($blog->published_at) {{ $blog->published_at->format('M d, Y') }} @else - @endif @if($blog->is_published) Published @else Draft @endif {{ $blog->created_at->format('M d, Y') }} 👁️ View Edit
@csrf @method('DELETE')
No blogs found. Create one.
@endsection