@extends('layouts.app') @php($__title = $category->title.' — блог teeu') @php($__description = $category->description ?: 'Статьи блога teeu по теме «'.$category->title.'».') @section('title', $__title) @section('meta_description', $__description) @section('seo') @include('partials.seo.meta', [ 'canonical' => \App\Support\Seo::listingCanonical(route('blog.category', $category->slug), $posts->currentPage()), 'ogTitle' => $__title, 'ogDescription' => $__description, ]) @include('partials.seo.json-ld', ['data' => \App\Support\Seo::breadcrumbJsonLd([ ['name' => 'Главная', 'url' => route('home')], ['name' => 'Блог', 'url' => route('blog.index')], ['name' => $category->title, 'url' => route('blog.category', $category->slug)], ])]) @endsection @section('content')
@include('partials.blog.crumbs', ['trail' => [ ['name' => $category->title, 'url' => route('blog.category', $category->slug)], ]])

{{ $category->title }}

@if ($category->description)

{{ $category->description }}

@endif @include('partials.blog.topics', ['categories' => $categories, 'active' => $category->id]) @if ($posts->isEmpty())
В этой теме пока нет статей.
@else
@foreach ($posts as $post) @include('partials.blog.card', ['post' => $post]) @endforeach
{{ $posts->links() }}
@endif
@endsection