@extends('frontend.layouts.main')
@section('meta_title', $category->meta_title ?? $category->title)
@section('meta_keywords', $category->meta_keywords ?? 'news, article')
@section('meta_description', $category->meta_description ?? Str::limit(strip_tags($category->content), 150))

@section('section')
    <!-- Start Page Title Area -->
    <div class="page-title-area">
        <div class="container">
            <div class="page-title-content">
                <h2>{{ $category->name }}</h2>
                <ul>
                    <li><a href="{{ route('home') }}"><i class="icofont-home"></i>
                            Home</a></li>
                    <li><i class="icofont-rounded-right"></i></li>
                    <li>{{ $category->name }}</li>
                </ul>
            </div>
        </div>
    </div>
    <!-- End Page Title Area -->

    <!-- Start Default News Area -->
    {{-- @include('frontend.partials.defaultslider') --}}
    <!-- End Default News Area -->

    <!-- Start All Category News Area -->
    <section class="all-category-news ptb-40">
        <div class="container">
            <div class="row">
                <div class="col-lg-8 col-md-12">
                    @include('frontend.partials.allposts')
                </div>
                <div class="col-lg-4 col-md-12">
                    @include('frontend.partials.features-news')
                </div>
            </div>
        </div>
    </section>
    <!-- End All Category News Area -->

    <!-- Start More News Area -->
    @include('frontend.partials.more-news')

    <!-- End More News Area -->
@endsection
