@extends('front-end.layouts.apps')
@section('title')
    Details
@endsection
@section('page_title')
    Details
@endsection
@section('main_container')
    <div class="container" dir="rtl">
        <div class="row">
            <div class="card" id="main_card">
                <div class="card-body">
                    {{-- @include('front-end.poet-details.search-pages') --}}
                    @include('front-end.poet-details.bio-pages')
                    <div class="row">
                        <div class="col-md-12 centry_box mb-1">
                            <h4 class="text-light">د قافیه د حروفو له لحاظه</h4>
                        </div>
                        <div class="col-md-12 mt-2" dir="rtl">
                            @foreach ($alphabits as $row)
                            <a href="{{ route('public.alphabit_related',$row->name."-".$poet->id) }}" class="badge badge-light">{{ $row->name }}</a>
                            @endforeach
                        </div>
                    </div>
                    @foreach ($alphabits as $alpha)
                    <div class="row mt-3">
                        <div class="col-md-12 centry_box mb-1">
                            <h4 class="text-light text-center">{{ $alpha->name }}</h4>
                        </div>
                        <div class="col-md-12">
                            @php
                                $i = 1;
                            @endphp
                            @foreach (App\Models\Poetries::where('alphabit',$alpha->name)->where('poet_id',$poet->id)->get() as $row)
                                <p class="">
                                    <strong class=""><a
                                            href="{{ route('public.poet_poetry_single_details', $row->id) }}"
                                            class="text-dark">{{ $row->category_id }} شماره
                                            {{ $i }}:</a> </strong>
                                    {{ $row->title }}
                                </p>
                                @php
                                    $i++;
                                @endphp
                            @endforeach
                        </div>
                    </div>
                    @endforeach
                </div>
            </div>
        </div>
    </div>
@endsection
