<?php $__env->startSection('title', $surah->surah_name); ?>

<?php $__env->startSection('content'); ?>
<div class="page-content">
    <div class="container-fluid">
        <!-- Page Title -->
        <div class="row">
            <div class="col-12">
                <div class="page-title-box d-sm-flex align-items-center justify-content-between">
                    <h4 class="mb-sm-0"><?php echo e($surah->surah_name); ?> - <?php echo e($surah->surah_name_translation); ?></h4>
                    <div class="page-title-right">
                        <ol class="breadcrumb m-0">
                            <li class="breadcrumb-item"><a href="<?php echo e(route('home')); ?>">Home</a></li>
                            <li class="breadcrumb-item"><a href="<?php echo e(route('quran.index')); ?>">Quran</a></li>
                            <li class="breadcrumb-item"><a href="<?php echo e(route('quran.surahs')); ?>">Surahs</a></li>
                            <li class="breadcrumb-item active"><?php echo e($surah->surah_no); ?></li>
                        </ol>
                    </div>
                </div>
            </div>
        </div>

        <!-- Surah Info Card -->
        <div class="row">
            <div class="col-lg-12">
                <div class="card">
                    <div class="card-header bg-primary text-white">
                        <h4 class="card-title mb-0 text-white">
                            <span style="font-size: 24px; direction: rtl;"><?php echo e($surah->surah_name_arabic); ?></span>
                            <br>
                            <small><?php echo e($surah->surah_name); ?> - <?php echo e($surah->surah_name_translation); ?></small>
                        </h4>
                    </div>
                    <div class="card-body">
                        <div class="row">
                            <div class="col-md-3">
                                <p><strong>Surah Number:</strong> <?php echo e($surah->surah_no); ?></p>
                            </div>
                            <div class="col-md-3">
                                <p><strong>Revelation Place:</strong> 
                                    <span class="badge bg-<?php echo e($surah->revelation_place == 'Mecca' ? 'primary' : 'success'); ?>">
                                        <?php echo e($surah->revelation_place); ?>

                                    </span>
                                </p>
                            </div>
                            <div class="col-md-3">
                                <p><strong>Total Ayats:</strong> <span class="badge bg-info"><?php echo e($surah->total_ayah); ?></span></p>
                            </div>
                            <div class="col-md-3">
                                <a href="<?php echo e(route('quran.surahs')); ?>" class="btn btn-secondary">
                                    <i class="ri-arrow-left-line"></i> Back to Surahs
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- Ayats -->
        <div class="row">
            <div class="col-lg-12">
                <div class="card">
                    <div class="card-header">
                        <h4 class="card-title mb-0">Ayats (Verses)</h4>
                    </div>
                    <div class="card-body">
                        <?php $__currentLoopData = $ayats; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ayat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <div class="border rounded p-3 mb-3" style="background-color: #f8f9fa;">
                            <div class="row">
                                <div class="col-md-12 mb-2">
                                    <span class="badge bg-primary">Ayah <?php echo e($ayat->ayah_no); ?></span>
                                    <?php if($ayat->juz): ?>
                                    <span class="badge bg-info">Juz <?php echo e($ayat->juz); ?></span>
                                    <?php endif; ?>
                                    <?php if($ayat->page): ?>
                                    <span class="badge bg-secondary">Page <?php echo e($ayat->page); ?></span>
                                    <?php endif; ?>
                                </div>
                                <div class="col-md-12 mb-2">
                                    <div style="font-size: 20px; direction: rtl; text-align: right; font-family: 'Amiri', 'Traditional Arabic', serif;">
                                        <?php echo e($ayat->arabic_text); ?>

                                    </div>
                                </div>
                                <?php if($ayat->transliteration): ?>
                                <div class="col-md-12 mb-2">
                                    <div class="text-muted" style="font-style: italic;">
                                        <strong>Transliteration:</strong> <?php echo e($ayat->transliteration); ?>

                                    </div>
                                </div>
                                <?php endif; ?>
                                <div class="col-md-12">
                                    <div class="text-dark">
                                        <strong>Translation:</strong> <?php echo e($ayat->english_translation); ?>

                                    </div>
                                </div>
                            </div>
                        </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Users/macbookpro/Downloads/mulikat/resources/views/dashboard/quran/surah-detail.blade.php ENDPATH**/ ?>