@extends('front.layouts.app')
@section('content')
    <main class="container-lg mt-3">

        @include('front.partials.breadcrumbs')

        <div class="row g-4">
            <div class="col-md-8">

                <article class="blog-post
                ">
                    <h1 class="fw-bold font-family-roboto-condensed mb-3">{{ $post->title }}</h1>

                    <div class="mb-2 text-secondary">
                        <small>{{ $post->published_at->format('jS F Y') }}</small> •
                        <small>By FutureWalker</small>
                    </div>

                    <div class="card mb-3 border-0 shadow-sm">
                        <div class="card-body p-4">
                            <div class="fw-bold mb-2">Quick News Bite:</div>
                            <div><small>{{ $post->bites }}</small></div>
                        </div>
                    </div>

                    <div class="row justify-content-center">
                        <div class="col-12 col-md-12">
                            <img src="{{ $post->featured_image }}" class="img-fluid rounded-3 shadow-lg mb-3"
                                alt="">
                        </div>
                    </div>
                    {!! $content !!}
                </article>

            </div>

            <div class="col-md-4">
                <div class="position-sticky" style="top: 2rem;">
                    @include('front.partials.sidebar')
                </div>
            </div>
        </div>
    </main>
@endsection

@push('top_head')
    {!! $breadcrumb_context !!}
@endpush
