<?php if($article['status'] == true): ?>
<div id="collapseOne" class="accordion-collapse collapse show" aria-labelledby="headingOne"
    data-bs-parent="#accordionContent1">
    <div class="accordion-body">
        <div id="carouselPhotoArticle" class="carousel slide" data-bs-ride="carousel">
            <div class="carousel-indicators">
                <?php ($num = 0); ?>
                <?php $__currentLoopData = $article['data']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ad): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php $__currentLoopData = $ad['file']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $af): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php if($loop->first): ?>
                <button type="button" data-bs-target="#carouselPhotoArticle" data-bs-slide-to="<?php echo e($num); ?>" class="active"
                    aria-current="true" aria-label="Slide.<?php echo e($num); ?>"></button>
                <?php else: ?>
                <button type="button" data-bs-target="#carouselPhotoArticle" data-bs-slide-to="<?php echo e($num); ?>"
                    aria-label="Slide.<?php echo e($num); ?>"></button>
                <?php endif; ?>
                <?php ($num = $num + 1); ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
            <div class="carousel-inner">
                <?php $__currentLoopData = $article['data']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ad): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php $__currentLoopData = $ad['file']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $af): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php if($loop->first): ?>
                <div class="carousel-item active">
                    <img src="<?php echo e(asset('../storage/km/articles/'.$af['name'])); ?>" class="d-block w-100"
                        alt="project-slider-image">
                </div>
                <?php else: ?>
                <div class="carousel-item">
                    <img src="<?php echo e(asset('../storage/km/articles/'.$af['name'])); ?>" class="d-block w-100"
                        alt="project-slider-image">
                </div>
                <?php endif; ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
            <button class="carousel-control-prev" type="button" data-bs-target="#carouselPhotoArticle"
                data-bs-slide="prev">
                <span class="carousel-control-prev-icon" aria-hidden="true"></span>
                <span class="visually-hidden">Previous</span>
            </button>
            <button class="carousel-control-next" type="button" data-bs-target="#carouselPhotoArticle"
                data-bs-slide="next">
                <span class="carousel-control-next-icon" aria-hidden="true"></span>
                <span class="visually-hidden">Next</span>
            </button>
        </div>
    </div>
</div>
<?php else: ?>
<p>ไม่พบข้อมูล</p>
<?php endif; ?><?php /**PATH C:\xampp\htdocs\km-web\resources\views/subpage/photoArticle.blade.php ENDPATH**/ ?>