
<?php $__env->startSection('title'); ?> Subject Wise Chapter List <?php $__env->stopSection(); ?>
<?php $__env->startSection('styles'); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('frontend_content'); ?>

<div class="container h-100 mt-2">
    <div class="d-flex flex-wrap justify-content-evenly gap-2 chapter-wrap card-design-3">
        <?php $__currentLoopData = $chapterData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <?php if(isset($item) && $item != null): ?>
        <a href="<?php echo e(route('webuser.chapter-wise-post', $item->id)); ?>" class="card p-2 pb-3 w-50  chapter">
            <div class="d-flex justify-content-end">
                <span class="material-symbols-outlined star">
                    star
                </span>
            </div>
            <span class="material-symbols-outlined">
                menu_book
            </span>
            <h5><?php echo e($item->chapter_name); ?></h5>
            <?php if($item->total_post != null): ?>
                <p>Total Post: <?php echo e($item->total_post); ?></p>
            <?php else: ?>
                <p>Total Post: 0</p>
            <?php endif; ?>
        </a>
        <?php endif; ?>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </div>
</div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('frontend.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\Project\Personal-Project\Office-Project\update\test-paper-final\resources\views/frontend/subjectWiseChapter.blade.php ENDPATH**/ ?>