@extends('layouts.public') @section('title', $category->name) @section('content')

{{ $category->name }}

@if($category->description)

{{ $category->description }}

@endif
{{ $blogs->total() }} {{ $blogs->total() === 1 ? 'blog' : 'blogs' }}
@forelse($blogs as $blog)
@if($blog->category){{ $blog->category->name }}@endif

{{ $blog->title }}

{{ $blog->author->name }}{{ $blog->published_at?->format('M d') }}
@empty
No blogs in this category yet.
@endforelse
{{ $blogs->links() }}
@endsection