@extends('layouts.app') @section('meta_title', $category->name . ' - ' . config('app.name')) @section('meta_description', 'Artikel-artikel dalam kategori ' . $category->name) @section('meta_keywords', $category->name . ', artikel, blog') @section('content')
{{-- Breadcrumbs --}}
{{-- Main Content --}}
{{-- Category Header --}}

{{ $category->name }}

@if($category->description)

{{ $category->description }}

@endif

{{ $posts->total() }} artikel ditemukan

{{-- Posts Grid --}} @if($posts->count() > 0)
@foreach($posts as $post) @endforeach
{{-- Pagination --}}
{{ $posts->links() }}
@else

Belum Ada Artikel

Belum ada artikel dalam kategori {{ $category->name }}.

@endif
{{-- Sidebar --}}
{{-- Recent Posts --}} @if($recentPosts->count() > 0)

Artikel Terbaru

@foreach($recentPosts as $recentPost)
@if($recentPost->featured_image)
{{ $recentPost->title }}
@endif

{{ $recentPost->title }}

{{ $recentPost->published_at->format('d M Y') }}

@endforeach
@endif {{-- Categories --}} @if($categories->count() > 0)

Kategori

@foreach($categories as $cat) {{ $cat->name }} {{ $cat->posts_count }} @endforeach
@endif
@endsection