@extends('layout.app') @section('content')

All Blogs

@if (session('success'))
{{ session('success') }}
@endif Create Blog
@forelse($blogs as $key => $blog) {{-- Banner Image --}} {{-- Feature Image --}} @empty @endforelse
ID Banner Image Title Details 1 Date Details 2 Feature Image Actions
{{ $key + 1 }} @if ($blog->banner_image) Banner Image Image not found @else No image @endif {{ $blog->title }} {{ \Illuminate\Support\Str::limit(strip_tags($blog->details_1), 80) }} {{ $blog->date ? \Carbon\Carbon::parse($blog->date)->format('d-m-Y') : '-' }} {{ \Illuminate\Support\Str::limit(strip_tags($blog->details_2), 80) }} @if ($blog->feature_image) Feature Image Image not found @else No image @endif Edit
@csrf @method('DELETE')
No blogs found.
@endsection