<?php $__env->startSection('content'); ?>

<div class="middlebackground background-design5">
    <div role="main" class="container">
        <div class="row">
            <div class="col-xs-12 main-content promo-content">
                <div class="main-container promo-container promo-lists">
                    <ul>
                        
                        <?php $__empty_1 = true; $__currentLoopData = $promotion; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $promo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <li id="promo-box<?php echo e($loop->iteration); ?>">
                            <div class="promo">
                                <div class="promo-header">
                                    <div class="promo-img">
                                        <img class="img-responsive img-center" 
                                             alt="<?php echo e($promo->judul); ?>" 
                                             title="<?php echo e($promo->judul); ?>" 
                                             src="<?php echo e(asset('uploads/' . $promo->gambar ?? '/assets/images/no-image.jpg')); ?>" />
                                    </div>
                                </div>
                                <div class="promo-footer">
                                    <div class="promo-title">
                                        <h4><?php echo e(strtoupper($promo->judul)); ?></h4>
                                    </div>
                                    <div class="promo-btn">
                                        <button type="button" role="button" class="btn btn-theme btn-moreinfo">More Info</button>
                                    </div>
                                </div>
                            </div>
                            
                            
                            <div class="promo-info" style="display: none;">
                                
                                <?php echo $promo->keterangan ?? $promo->text; ?>

                            </div>
                        </li>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                        <li style="list-style: none;">
                            <div style="text-align: center; padding: 30px; background: rgba(0,0,0,0.5); border-radius: 8px; color: #aaa;">
                                <h4>Belum ada promosi tersedia saat ini.</h4>
                            </div>
                        </li>
                        <?php endif; ?>
                    </ul>
                </div>
            </div>
        </div>
    </div>

</div>

        

<?php $__env->stopSection(); ?>

<?php $__env->startPush('script'); ?>
<script type="text/javascript">
    $(document).ready(function() {
        // Sembunyikan semua info di awal
        $(".promo-info").hide();
        
    });
</script>
<script type="text/javascript" src="<?php echo e(asset('assets/js/root/page_promo.js?v=2.js')); ?>" defer></script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('frontend.mobile.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /www/wwwroot/website/sewa/dragon158/resources/views/frontend/mobile/pages/promo.blade.php ENDPATH**/ ?>