@extends('back-end.master.app')

@section('title', 'Folk Poetry Details')

@section('body')
<main class="app-content">
    <div class="card">
        <div class="card-header d-flex justify-content-between">
            <h4>Folk Poetry Details</h4>
            <a href="{{ route('publicPoetries.index') }}" class="btn btn-secondary btn-sm">Back to List</a>
        </div>
        <div class="card-body">
            <div class="row">
                <div class="col-md-12">
                    <table class="table table-bordered">
                        <tr>
                            <th style="width: 200px;">Title</th>
                            <td>{{ $data->title }}</td>
                        </tr>
                        <tr>
                            <th>Category</th>
                            <td>{{ $data->category->name_en ?? '-' }}</td>
                        </tr>
                        <tr>
                            <th>Date</th>
                            <td>{{ $data->date }}</td>
                        </tr>
                    </table>
                </div>
                <div class="col-md-12 mt-3">
                    <div class="card">
                        <div class="card-header">
                            <h5>Poetry Text</h5>
                        </div>
                        <div class="card-body" dir="rtl">
                            {!! $data->body !!}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</main>
@endsection

@section('pageJs')
<script>
    $(".app-menu").removeClass("active");
    $("#nav_plpoetries").addClass("active");
    $("#plpoetries").addClass("is-expanded");
    $("#plpoetries_history").addClass("active");
</script>
@endsection
