@extends('layouts.main')
@section('content')
    <div class="container mt-5">
        <div class="card shadow-sm">
            <div class="card-header bg-dark text-white">
                <h1 class="card-title text-center">{{ $blog->title }}</h1>
            </div>
            <div class="card-body">
                <div class="">
                    {{ $blog->slug }}
                    @include($blog->view)
                </div>
            </div>
            <div class="card-footer text-muted text-center">
                <small>Published on {{ $blog->created_at->format('F j, Y') }}</small>
            </div>
        </div>
    </div>
@endsection
