<?php
    // Panggil data dari helper floating()
    $floatingsMobile = floating();
?>

<?php $__empty_1 = true; $__currentLoopData = $floatingsMobile; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $float): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
    <?php
        // STACKING OTOMATIS UNTUK MOBILE
        // Icon pertama di bottom 120px, icon kedua naik 55px (ukuran 45px + gap 10px)
        $bottomPosition = 65 + ($index * 55); 
        
        // Sesuaikan nama kolom dengan database bosku
        $floatUrl = $float->url ?? $float->link ?? '#';
        $floatImg = $float->image ?? $float->icon ?? $float->banner ?? '';
        
        $imgSrc = asset('uploads/' . $floatImg);
    ?>

    <a href="<?php echo e($floatUrl); ?>" class="apk-icon" target="_blank" style="position: fixed; left: 20px; bottom: <?php echo e($bottomPosition); ?>px; width: 45px; z-index: 99; transition: 0.3s;">
        <img src="<?php echo e($imgSrc); ?>" alt="Floating Banner" width="45" height="auto" onerror="this.src='/assets/custom/img/TelegramMantra88.png'">
    </a>

<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
    <a href="https://t.me/Gameonline_mantra88" class="apk-icon" target="_blank" style="position: fixed; left: 20px; bottom: 120px; width: 45px; z-index: 99; transition: 0.3s;">
        <img src="/assets/custom/img/TelegramMantra88.png" alt="Telegram" width="45" height="auto">
    </a>
<?php endif; ?><?php /**PATH /www/wwwroot/website/sewa/gbo86/resources/views/frontend/partials/mobile/floating-icon.blade.php ENDPATH**/ ?>