@extends('layouts.app')

@section('content')
    <div class="container">
        <div class="row">
            <div class="col-md-9 px-4">

                <h2 class="mt-0!">{{$post->title}}</h2>

                <div class="mt-3 pr-2" style="text-align: justify">
                    <x-markdown>
                        {{$post->content}}
                    </x-markdown>
                </div>


{{--                <div class="text-secondary mt-3">--}}
{{--                    <div class="d-inline-flex flex-row gap-3">--}}
{{--                        <div>--}}
{{--                            <i class="bi bi-journal-text"></i> Blog Entry--}}
{{--                        </div>--}}
{{--                        <div>--}}
{{--                            <i class="bi bi-calendar-week"></i> {{$post->created_at->format('Y-m-d')}}--}}
{{--                        </div>--}}
{{--                        <div>--}}
{{--                            <i class="bi bi-tags-fill"></i>--}}

{{--                            @foreach($post->tags as $tag)--}}
{{--                                <a class="text-secondary" href="/">{{$tag->name}}</a>,--}}
{{--                            @endforeach--}}
{{--                        </div>--}}
{{--                    </div>--}}

            </div>

            <div class="col-md-3 px-4">
                <div class="d-flex flex-column gap-3 px-2 pb-1">

                    <div>
                        <h5>Recent Posts</h5>
                        <ol>
                            <li>Something</li>
                            <li>Other thing</li>
                            <li>A photo, perhaps</li>
                        </ol>
                    </div>

                    <div>
                        <h5>Categories</h5>
                        <div class="d-flex flex-column px-2 mb-3">
                                <a>
                                    <i class="bi bi-tags-fill"></i>
                                    Tag name
                                </a>
                            <a class="text-dark" href="/">
                                <i class="bi bi-link-45deg"></i>
                                More...</a>
                        </div>
                    </div>

                    <div>
                        <h5>My other spaces</h5>

                        <div class="d-flex flex-column px-2">
                            <a class="link-dark" href="https://niisse.dev">
                                <i class="bi bi-globe-americas"></i>
                                Niisse.dev
                            </a>
                            <a class="link-dark" href="https://youtube.com/@niiisse">
                                <i class="bi bi-youtube"></i>
                                YouTube
                            </a>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>
@endsection
