@extends('manager.layouts.app') @section('page_title') {{ !empty($page_title) && isset($page_title) ? $page_title : '' }} @endsection @push('head-scripts') {{-- --}} @endpush @section('content')
{{-- Start: Page Content --}}

Blog Posts

List of All Blog Posts

@if (session('success')) @endif @if (session('error')) @endif
{{-- Datatatble : Start --}}
@forelse($blogs as $blog) @php if ($blog->status == 'published') { $badge = 'bg-success'; } elseif ($blog->status == 'draft') { $badge = 'bg-warning text-dark'; } else { $badge = 'bg-secondary'; } @endphp {{-- STATUS BADGE --}} {{-- ACTION BUTTONS --}} @empty @endforelse
# Title Date Summary Status Actions
{{ $blog->id }} {{ $blog->title }} {{ $blog->created_at->format('d M Y') }} {{ $blog->excerpt }} {{ ucfirst($blog->status) }} Edit
@csrf @method('DELETE')
No Blogs Found
{{-- Datatatble : End --}} {{-- Page Description : Start --}} @if (!empty($p_description) && isset($p_description)) @endif {{-- Page Description : End --}} {{-- End: Page Content --}}
@endsection @push('footer-scripts') {{-- Toastr : Script : Start --}} @if (Session::has('messages')) @endif {{-- Toastr : Script : End --}} @endpush