@extends('front.layouts.app')

@section('content')
    <div class="container py-3">


        <div class="row justify-content-center">
            <div class="col-12 col-lg-11 col-xl-9 col-xxl-8">


                <div class="row justify-content-center">
                    <div class="col-md-8 col-lg-8 col-xl-8">

                        <div class="mb-5">
                            <h1 class="h2 fw-bold">{{ $category->name }}</h1>
                            <p class="text-secondary">
                                {{ $category->description }}
                            </p>
                        </div>

                        @foreach ($latest_posts as $post)
                            <div class="my-3">


                                @include('front.partials.post_list_card', ['post' => $post])


                            </div>
                        @endforeach

                        {{ $latest_posts->links() }}
                    </div>
                    {{--             <div class="col-md-4 col-lg-4 col-xl-4 bg-secondary">
              b
            </div> --}}
                </div>
            </div>

        </div>

    </div>
@endsection
