-@extends('backend.dashboard')

@section('content')
<div class="container-fluid">
    <div class="row justify-content-center">
        <div class="col-md-8">

            <div class="card shadow-sm">
                <!-- Card Header -->
                <div class="card-header bg-primary text-white d-flex justify-content-center">
                    <h3 class="card-title mb-0">Memoirs Personal Details</h3>
                </div>

                <div class="card-body">

                    <table class="table table-bordered">
                        <!-- Image Row -->
                        <tr>
                            <th width="30%">Image</th>
                            <td>
                                @if($memoirsPersonal->image)
                                    <img src="{{ asset($memoirsPersonal->image) }}" width="100" alt="memoirsPersonal Image">
                                @else
                                    <span class="text-muted">No Image</span>
                                @endif
                            </td>
                        </tr>

                        <!-- Name -->
                        <tr>
                            <th width="30%">Alt Text</th>
                            <td>{{ $memoirsPersonal->alt_text ?? '—' }}</td>
                        </tr>

                        <!-- Description -->
                        <tr>
                            <th>Title</th>
                            <td>{{ $memoirsPersonal->title ?? '—' }}</td>
                        </tr>
                        <tr>
                            <th>Author</th>
                            <td>{{ $memoirsPersonal->author ?? '—' }}</td>
                        </tr>

{{--
                        <tr>
                            <th>Price</th>
                            <td>{{ $memoirsPersonal->price ?? '—' }}</td>
                        </tr> --}}
                        <tr>
                            <th>Amazon Link</th>
                            <td>{{ $memoirsPersonal->amazon_link ?? '—' }}</td>
                        </tr>
                        <tr>
                            <th>Category</th>
                            <td>{{ $memoirsPersonal->category->title ?? '—' }}</td>
                        </tr>

                        {{-- <tr>
                            <th>Slug</th>
                            <td>{{ $memoirsPersonal->slug ?? '—' }}</td>
                        </tr> --}}



                        <!-- Status -->
                        <tr>
                            <th>Status</th>
                            <td>
                                @if($memoirsPersonal->status == 1)
                                    <span class="badge bg-primary">Active</span>
                                @else
                                    <span class="badge bg-danger">De-Active</span>
                                @endif
                            </td>
                        </tr>

                        <!-- Priority -->
                        <tr>
                            <th>Priority</th>
                            <td>{{ $memoirsPersonal->priority ?? '—' }}</td>
                        </tr>
                    </table>

                </div>

                <!-- Card Footer -->
                <div class="card-footer text-end">
                    <a href="{{ route('memoirs-personals.index') }}" class="btn btn-primary">
                        <i class="fa fa-arrow-left"></i> Back
                    </a>
                </div>
            </div>

        </div>
    </div>
</div>
@endsection
