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

<?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">Sajdahs (Prostrations)</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 active">Sajdahs</li>
                        </ol>
                    </div>
                </div>
            </div>
        </div>

        <div class="row">
            <div class="col-lg-12">
                <div class="card">
                    <div class="card-header">
                        <h4 class="card-title mb-0">All Sajdahs (<?php echo e($sajdahs->total()); ?>)</h4>
                    </div>
                    <div class="card-body">
                        <div class="table-responsive">
                            <table class="table table-bordered table-striped table-hover align-middle mb-0">
                                <thead class="table-light">
                                    <tr>
                                        <th>#</th>
                                        <th>Surah</th>
                                        <th>Ayah Number</th>
                                        <th>Arabic Text</th>
                                        <th>Type</th>
                                        <th>Page</th>
                                        <th>Juz</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php $__empty_1 = true; $__currentLoopData = $sajdahs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $sajdah): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                    <tr>
                                        <td><strong><?php echo e($sajdah->id); ?></strong></td>
                                        <td>
                                            <strong><?php echo e($sajdah->surah->surah_name); ?></strong>
                                            <br>
                                            <small class="text-muted" style="direction: rtl;"><?php echo e($sajdah->surah->surah_name_arabic); ?></small>
                                        </td>
                                        <td>
                                            <span class="badge bg-primary">Ayah <?php echo e($sajdah->number_in_surah); ?></span>
                                            <br>
                                            <small class="text-muted">Global: <?php echo e($sajdah->ayah_number); ?></small>
                                        </td>
                                        <td style="direction: rtl; text-align: right; font-size: 16px;">
                                            <?php echo e($sajdah->arabic_text); ?>

                                        </td>
                                        <td>
                                            <?php if($sajdah->obligatory): ?>
                                            <span class="badge bg-danger">Obligatory</span>
                                            <?php elseif($sajdah->recommended): ?>
                                            <span class="badge bg-warning">Recommended</span>
                                            <?php else: ?>
                                            <span class="badge bg-secondary">N/A</span>
                                            <?php endif; ?>
                                        </td>
                                        <td><?php echo e($sajdah->page ?? 'N/A'); ?></td>
                                        <td><?php echo e($sajdah->juz ?? 'N/A'); ?></td>
                                    </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                    <tr>
                                        <td colspan="7" class="text-center">No sajdahs found</td>
                                    </tr>
                                    <?php endif; ?>
                                </tbody>
                            </table>
                        </div>
                        
                        <!-- Pagination -->
                        <div class="d-flex justify-content-end mt-3">
                            <?php echo e($sajdahs->links()); ?>

                        </div>
                    </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/sajdahs.blade.php ENDPATH**/ ?>