@extends('dashboard.layouts.master') @section('title', 'Blogs') @section('content')
Added Blog will Appear Here
Reset

@forelse ($blogs as $key => $blog) @empty @endforelse
ID Name Published Date Published Status Status Action
{{ $blogs->firstItem() + $key }} {{ $blog->title }} {{ $blog->published_at ?? 'N/A' }} @if ($blog->published_at < now() || $blog->published_at == today()) Published @else Not Published @endif @if ($blog->status == 1) Active @else Inactive @endif
@csrf @method('PATCH')
View Edit
@csrf @method('DELETE')
No blogs found
{{ $blogs->withQueryString()->links() }}
@endsection