@extends(get_view('index')) @section('title'){{ $category->content->name ?? '' }} - @endsection @section('header') @endsection @section('content')

{{ $category->content->name ?? '' }}

@if (count($category->sub_categories) > 0)
@foreach ($category->sub_categories as $category) {{ $category->content->name }} @endforeach
@endif @if ( count($category->posts) > 0 ) @php $posts = $category->posts()->paginate(10); @endphp @foreach ($posts as $post) @include(get_view('components.posts.vertical'), ['post' => $post]) @endforeach {{ $posts->links() }} @else
{{ translate('data_not_found') }}
@endif
@endsection @section('footer') @endsection