<?php
    // ==========================================
    // DUMMY DATA KONFIGURASI MOBILE FOOTER MENU
    // ==========================================
    $device = $device ?? request()->route('device') ?? 'mobile';

    $footerMenus = [
        [
            'class' => 'menu-home',
            'id'    => 'home',
            'title' => 'Home',
            'url'   => route("home"),
            'target'=> '_self'
        ],
        [
            'class' => 'menu-download',
            'id'    => 'android',
            'title' => 'Android',
            'url'   => route('download.apk'), // Menggunakan nama route
            'target'=> '_self'
        ],
        [
            'class' => 'menu-promo',
            'id'    => 'promo',
            'title' => 'Promo',
            'url'   => route("promo"),
            'target'=> '_self'
        ],
        [
            'class' => 'menu-contact',
            'id'    => 'whatsapp',
            'title' => 'WA 1',
            'url'   => livechat()->no_whatsapp,
            'target'=> '_blank'
        ],
        [
            'class' => 'menu-livechat',
            'id'    => 'livechat',
            'title' => 'Chat',
            'url'   => livechat()->id_livechat,
            'target'=> '_blank'
        ]
    ];
?>

<div class="mobile-footermenu-container mobilefootermenu1 mobilefootermenu1-design1">
    <div class="container">
        <div class="row">
            <?php $__currentLoopData = $footerMenus; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $menu): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                
                <div class="menu-button <?php echo e($menu['class']); ?>" style="width: <?php echo e(100 / count($footerMenus)); ?>%;">
                    <a href="<?php echo e($menu['url']); ?>" target="<?php echo e($menu['target']); ?>">
                        <span data-file="solid_1" data-icon-type="solid" class="svg-icon" data-id="<?php echo e($menu['id']); ?>"></span>
                        <span><?php echo e($menu['title']); ?></span>
                    </a>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
    </div>
</div>

<div id="loginModal" class="modal fade popup-modal">
    <div class="modal-dialog">
        <div class="modal-content">
            
            <div class="modal-header">
                LOGIN
                <span class="fa-solid fa-xmark" data-dismiss="modal" style="cursor:pointer;"></span>
            </div>
            
            <div class="modal-body">
                <form id="formModalLogin" onsubmit="return false;">
                    <?php echo csrf_field(); ?>
                    <div id="modal-login-form" class="form-content modal-form-content">
                        <input type="hidden" name="device" value="<?php echo e($device); ?>">
                        
                        <div class="form-group form-group-sm username-form">
                            <label class="form-label">Username</label>
                            <div class="input-form-group input-username-group">
                                <input name="modal_username" type="text" id="modal_inputusername" class="form-control user-form-control" tabindex="0" placeholder="Username" />
                            </div>
                        </div>
                        
                        <div class="form-group form-group-sm password-form">
                            <label class="form-label">Password</label>
                            <div class="input-form-group input-password-group">
                                <input name="modal_password" type="password" id="modal_inputpassword" class="form-control password-form-control" placeholder="Password" />
                                <button aria-label="show-password-btn" class="btn btn-sm show-password-btn" type="button" tabindex="-1">
                                    <span class="fa-solid fa-eye"></span>
                                </button>
                            </div>  
                        </div>
                        
                        <div class="form-group form-group-sm captcha-form">
                            <label class="form-label">Validation</label>
                            <div class="input-form-group input-captcha-group">
                                <div class="input-captcha">
                                    <input name="modal_captcha" type="tel" id="modal_inputcaptcha" class="form-control captcha-form-control" maxlength="3" onkeypress="return (event.charCode >= 48 && event.charCode <= 57) || event.charCode == 13" placeholder="Validation" />
                                </div>
                                <div class="captcha-img">
                                    
                                    <img src="<?php echo e(url('/captchaimg_login')); ?>?value=<?php echo e(time()); ?>" id="captcha-img-modal" width="70" height="30" alt="captcha" />
                                </div>
                            </div>
                        </div>
                        
                        <div class="form-buttons">
                            <input type="submit" value="LOGIN" onclick="return CheckLoginRepeat(this);" id="btnModalLogin" class="btn login-button" />
                        </div>
                        
                        <div class="col-xs-12 error-msg text-center" style="color:red; font-weight:bold; padding-top:10px;"></div>
                    </div>
                </form>
            </div>
            
        </div>
    </div>
</div>


<?php if(!empty(general()->title)): ?>
    <div id="announcementModal" class="modal fade popup-modal">
        <div class="modal-dialog">
            <div class="modal-content">
                
                <div class="modal-header">
                    Pengumuman
                    <i class="fa fa-solid fa-xmark" data-dismiss="modal" style="cursor:pointer;"></i>
                </div>
                
                <div class="modal-body">
                    <div class="announcement modal-container">
                        <div class="announcement-msg">
                            <?php echo e(general()->title); ?>

                        </div>
                    </div>
                </div>
                
            </div>
        </div>
    </div>
<?php endif; ?><?php /**PATH /www/wwwroot/website/sewa/dragon158/resources/views/frontend/mobile/components/drawer.blade.php ENDPATH**/ ?>