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

Latest Blogs

@foreach ($blogs as $blog)
@if ($blog->thumbnail)
{{ $blog->title }}
@endif
Post Date: {{ $blog->created_at->format('M d, Y') }} , Category: {{ $blog->category->name ?? 'Uncategorized' }}
{{ $blog->title }}
{{-- --}}

{{ Str::limit(strip_tags($blog->content), 100) }}

@endforeach
{{ $blogs->links() }}
@endsection