<header>
    <section class="header-top">
        <div class="wrapper">
            <div class="header-top__detail">
                <ul>
                    <li class="timer">
                        <i class="fa fa-clock"></i>
                        <span id="timer"><?php echo e(date('d/m/Y H:i:s')); ?> (GMT+7)</span>
                    </li>
                    <li>
                        <span class="g8-livechat" onclick="window.open('<?php echo e(livechat()->id_livechat); ?>', '_blank');" style="cursor:pointer">
                            <i class="fa fa-comment"></i>
                            <span> Live Chat</span>
                        </span>
                    </li>
                    <?php if(auth()->guard()->check()): ?>
                    <li>
                        <a href="<?php echo e(route('account.logout')); ?>" class="g8-logout"><i class="fas fa-sign-out-alt"></i> Logout</a>
                    </li>
                    <?php endif; ?>
                </ul>
            </div>
        </div>
    </section>

    <section class="header-mdl">
        <div class="wrapper">
            <?php 
                $isLogin = auth()->check(); 
                $prefix = $isLogin ? '/secure' : '';
                $playClass = $isLogin ? 'play-game-btn' : 's-check';
            ?>

            <a href="<?php echo e($isLogin ? '/secure/home' : '/'); ?>" class="header-mdl__logo">
                <picture>
                    <source srcset="<?php echo e(asset('uploads/'. general()->logo)); ?>" type="image/webp">
                    <img src="<?php echo e(asset('uploads/'. general()->logo)); ?>" width="600" height="210" alt="Logo <?php echo e(general()->brand); ?>" loading="lazy">
                </picture>
            </a>

            <div class="header-mdl__login">
                <?php if(auth()->guard()->guest()): ?>
                <div class="header-mdl__login-form">
                    <form id="form-login-header" action="#" method="POST" novalidate="novalidate" style="display: flex; align-items: center; margin-bottom: 0;">
                        <div class="form-group" style="margin-bottom: 0; margin-right: 5px;">
                            <input type="text" placeholder="Username" name="username" class="form-control required" autocomplete="off" style="width: 140px;">
                        </div>
                        <div class="form-group" style="margin-bottom: 0; margin-right: 5px;">
                            <input type="password" placeholder="Password" name="password" class="form-control required" style="width: 140px;">
                        </div>
                        <button type="submit" class="button button--login" style="margin-bottom: 0;">Masuk</button>
                    </form>
                    <a href="/register"><button class="button button--signup">Daftar</button></a>
                </div>
                <div class="header-mdl__login-forgot g8pop-forgot" style="cursor:pointer">Lupa Login?</div>
                <?php endif; ?>

                <?php if(auth()->guard()->check()): ?>
                <div class="header-mdl__login-account">
                    <ul>
                        <li>
                            <i class="fas fa-user"></i>
                            <span class="g8-name" style="display: inline-block; max-width: 80px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle;"><?php echo e(Auth::user()->username); ?></span>
                            <i class="fas fa-chevron-down"></i>
                            <div class="dropdown">
                                <ul>
                                    <li>
                                        <a href="<?php echo e(route('secure.profile')); ?>">
                                            <i class="fas fa-user"></i>
                                            <span>Edit Profile</span>
                                        </a>
                                    </li>
                                    <li>
                                        <a href="<?php echo e(route('secure.withdrawal')); ?>">
                                            <i class="fas fa-money-bill"></i>
                                            <span>Withdrawal</span>
                                        </a>
                                    </li>
                                    <li>
                                        <a href="<?php echo e(route('secure.bonus')); ?>" class="checkstatus">
                                            <i class="fas fa-dollar-sign"></i>
                                            <span>Bonus</span>
                                        </a>
                                    </li>
                                    <li>
                                        <a href="<?php echo e(route('secure.history')); ?>">
                                            <i class="fas fa-history"></i>
                                            <span>History</span>
                                        </a>
                                    </li>
                                    <li>
                                        <a href="<?php echo e(route('secure.referral')); ?>">
                                            <i class="fas fa-users"></i>
                                            <span>Referral</span>
                                        </a>
                                    </li>
                                    <li>
                                        <a href="<?php echo e(route('secure.message')); ?>">
                                            <i class="fas fa-envelope"></i>
                                            <span>Messages</span>
                                        </a>
                                    </li>
                                </ul>
                            </div>
                        </li>
                        <li>
                            <span>Saldo :</span>
                            <span class="g8-bal-total" style="font-weight:bold">IDR <?php echo e(number_format(Auth::user()->balance ?? 0, 0, ',', '.')); ?></span>
                            <a href="javascript:void(0);" class="btn-refresh-balance" style="color: #dba957;" title="Refresh Saldo"><i class="fas fa-sync-alt"></i></a>
                        </li>
                        <li><a href="<?php echo e(route('secure.deposit')); ?>" class="button button--yellow">DEPOSIT</a></li>
                    </ul>
                </div>
                <?php endif; ?>
            </div>
        </div>
    </section>

    <section class="header-menu">
        <div class="wrapper">
            <ul>
                <li><a href="<?php echo e($isLogin ? '/secure/home' : '/'); ?>" aria-label="home"><i class="fa fa-home"></i></a></li>
                
                <li>
                    <a href="<?php echo e($prefix); ?>/hot">
                        <div class="row-hot-games"><span><span class="text-gold">Hot</span> Games</span><img src="https://d1bkaj2gcjb1cb.cloudfront.net/common/assets/images/hot-menu.png" width="80" height="89" class="hot"></div>
                    </a>
                    <div class="dropdown-menu">
                        <div class="dropdown-menu__detail">
                            <?php $__empty_1 = true; $__currentLoopData = hot_games(5); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $hg): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                <div class="dropdown-menu__detail-list">
                                    <a href="javascript:void(0)" class="<?php echo e($playClass); ?>" data-url="<?php echo e($prefix); ?>/shr/playGame?gc=slot&gg=<?php echo e(strtolower($hg->provider_code)); ?>&gs=<?php echo e($hg->provider_code); ?>">
                                        <div class="img-thumbnail"><img src="<?php echo e($hg->icon); ?>"></div><span class="title"><?php echo e($hg->provider_name); ?></span>
                                    </a>
                                </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                <div class="dropdown-menu__detail-list"><a href="javascript:void(0)" class="<?php echo e($playClass); ?>" data-url="<?php echo e($prefix); ?>/shr/playGame?gc=slot&gg=pm&gs=vs20olympgate"><div class="img-thumbnail"><img src="https://d1bkaj2gcjb1cb.cloudfront.net/common/assets/images/banner/menu-v2/slot-PRAGMATIC.png"></div><span class="title">Gates of Olympus</span></a></div>
                                <div class="dropdown-menu__detail-list"><a href="javascript:void(0)" class="<?php echo e($playClass); ?>" data-url="<?php echo e($prefix); ?>/shr/playGame?gc=slot&gg=s88&gs=kingcat"><div class="img-thumbnail"><img src="https://d1bkaj2gcjb1cb.cloudfront.net/common/assets/images/banner/menu-v2/slot-SLOT88.png"></div><span class="title">King Cat</span></a></div>
                            <?php endif; ?>
                        </div>
                    </div>
                </li>

                <li>
                    <a href="<?php echo e($prefix); ?>/sportsbook">Sportsbook</a>
                    <div class="dropdown-menu">
                        <div class="dropdown-menu__detail">
                            <?php $__empty_1 = true; $__currentLoopData = get_providers('sport'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ps): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                <div class="dropdown-menu__detail-list">
                                    <a href="javascript:void(0)" class="<?php echo e($playClass); ?>" data-url="<?php echo e($prefix); ?>/shr/playGame?gc=sport&gg=<?php echo e(strtolower($ps->provider_code)); ?>">
                                        <div class="img-thumbnail"><img src="<?php echo e($ps->icon); ?>"></div><span class="title"><?php echo e($ps->provider_name); ?></span>
                                    </a>
                                </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                <div class="dropdown-menu__detail-list"><a href="javascript:void(0)" class="<?php echo e($playClass); ?>" data-url="<?php echo e($prefix); ?>/shr/playGame?gc=sport&gg=wb"><div class="img-thumbnail"><img src="https://d1bkaj2gcjb1cb.cloudfront.net/common/assets/images/banner/menu-v2/sportsbook-WBET.png"></div><span class="title">WB Sport</span></a></div>
                                <div class="dropdown-menu__detail-list"><a href="javascript:void(0)" class="<?php echo e($playClass); ?>" data-url="<?php echo e($prefix); ?>/shr/playGame?gc=sport&gg=ibc"><div class="img-thumbnail"><img src="https://d1bkaj2gcjb1cb.cloudfront.net/common/assets/images/banner/menu-v2/sportsbook-IBCBET.png"></div><span class="title">I Sport</span></a></div>
                                <div class="dropdown-menu__detail-list"><a href="javascript:void(0)" class="<?php echo e($playClass); ?>" data-url="<?php echo e($prefix); ?>/shr/playGame?gc=sport&gg=sbo"><div class="img-thumbnail"><img src="https://d1bkaj2gcjb1cb.cloudfront.net/common/assets/images/banner/menu-v2/sportsbook-SBOBET.png"></div><span class="title">S Sport</span></a></div>
                            <?php endif; ?>
                        </div>
                    </div>
                </li>

                <li>
                    <a href="<?php echo e($prefix); ?>/slots-provider">Slots</a>
                    <div class="dropdown-menu">
                        <div class="dropdown-menu__detail">
                            <?php $__empty_1 = true; $__currentLoopData = get_providers(['slot','SL']); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $sl): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                <div class="dropdown-menu__detail-list">
                                    <a href="<?php echo e($prefix); ?>/slots?sg=<?php echo e(strtolower($sl->provider_code)); ?>">
                                        <div class="img-thumbnail"><img src="<?php echo e($sl->icon); ?>"></div><span class="title"><?php echo e($sl->provider_name); ?></span>
                                    </a>
                                </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                <div class="dropdown-menu__detail-list"><a href="<?php echo e($prefix); ?>/slots?sg=pm"><div class="img-thumbnail"><img src="https://d1bkaj2gcjb1cb.cloudfront.net/common/assets/images/banner/menu-v2/slot-PRAGMATIC.png"></div><span class="title">PP Slot</span></a></div>
                                <div class="dropdown-menu__detail-list"><a href="<?php echo e($prefix); ?>/slots?sg=pg"><div class="img-thumbnail"><img src="https://d1bkaj2gcjb1cb.cloudfront.net/common/assets/images/banner/menu-v2/slot-PGSOFT.png"></div><span class="title">PG Soft</span></a></div>
                                <div class="dropdown-menu__detail-list"><a href="<?php echo e($prefix); ?>/slots?sg=s88"><div class="img-thumbnail"><img src="https://d1bkaj2gcjb1cb.cloudfront.net/common/assets/images/banner/menu-v2/slot-SLOT88.png"></div><span class="title">Slot88</span></a></div>
                            <?php endif; ?>
                        </div>
                    </div>
                </li>

                <li>
                    <a href="<?php echo e($prefix); ?>/livecasino">Live Casino</a>
                    <div class="dropdown-menu">
                        <div class="dropdown-menu__detail">
                            <?php $__empty_1 = true; $__currentLoopData = get_providers('casino'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $lc): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                <div class="dropdown-menu__detail-list">
                                    <a href="javascript:void(0)" class="<?php echo e($playClass); ?>" data-url="<?php echo e($prefix); ?>/shr/playGame?gc=casino&gg=<?php echo e(strtolower($lc->provider_code)); ?>">
                                        <div class="img-thumbnail"><img src="<?php echo e($lc->icon); ?>"></div><span class="title"><?php echo e($lc->provider_name); ?></span>
                                    </a>
                                </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                <div class="dropdown-menu__detail-list"><a href="javascript:void(0)" class="<?php echo e($playClass); ?>" data-url="<?php echo e($prefix); ?>/shr/playGame?gc=casino&gg=pm"><div class="img-thumbnail"><img src="https://d1bkaj2gcjb1cb.cloudfront.net/common/assets/images/banner/menu-v2/lc-PP.png"></div><span class="title">PP Suite</span></a></div>
                                <div class="dropdown-menu__detail-list"><a href="javascript:void(0)" class="<?php echo e($playClass); ?>" data-url="<?php echo e($prefix); ?>/shr/playGame?gc=casino&gg=evo"><div class="img-thumbnail"><img src="https://d1bkaj2gcjb1cb.cloudfront.net/common/assets/images/banner/menu-v2/lc-EVO.png"></div><span class="title">EVO Suite</span></a></div>
                            <?php endif; ?>
                        </div>
                    </div>
                </li>

                <li>
                    <a href="<?php echo e($prefix); ?>/poker">Poker</a>
                    <div class="dropdown-menu">
                        <div class="dropdown-menu__detail">
                            <?php $__empty_1 = true; $__currentLoopData = get_providers('poker'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $pk): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                <div class="dropdown-menu__detail-list">
                                    <a href="javascript:void(0)" class="<?php echo e($playClass); ?>" data-url="<?php echo e($prefix); ?>/shr/playGame?gc=poker&gg=<?php echo e(strtolower($pk->provider_code)); ?>">
                                        <div class="img-thumbnail"><img src="<?php echo e($pk->icon); ?>"></div><span class="title"><?php echo e($pk->provider_name); ?></span>
                                    </a>
                                </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                <div class="dropdown-menu__detail-list"><a href="javascript:void(0)" class="<?php echo e($playClass); ?>" data-url="<?php echo e($prefix); ?>/shr/playGame?gc=poker&gg=balakplay"><div class="img-thumbnail"><img src="https://d1bkaj2gcjb1cb.cloudfront.net/common/assets/images/banner/menu-v2/poker-BALAK.png"></div><span class="title">BalakPlay</span></a></div>
                            <?php endif; ?>
                        </div>
                    </div>
                </li>

                <li>
                    <a href="<?php echo e($prefix); ?>/tangkas">Tangkas</a>
                    <div class="dropdown-menu">
                        <div class="dropdown-menu__detail">
                            <?php $__empty_1 = true; $__currentLoopData = get_providers('tangkas'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tk): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                <div class="dropdown-menu__detail-list">
                                    <a href="javascript:void(0)" class="<?php echo e($playClass); ?>" data-url="<?php echo e($prefix); ?>/shr/playGame?gc=tangkas&gg=<?php echo e(strtolower($tk->provider_code)); ?>">
                                        <div class="img-thumbnail"><img src="<?php echo e($tk->icon); ?>"></div><span class="title"><?php echo e($tk->provider_name); ?></span>
                                    </a>
                                </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                <div class="dropdown-menu__detail-list"><a href="javascript:void(0)" class="<?php echo e($playClass); ?>" data-url="<?php echo e($prefix); ?>/shr/playGame?gc=tangkas&gg=tangkas"><div class="img-thumbnail"><img src="https://d1bkaj2gcjb1cb.cloudfront.net/common/assets/images/banner/menu-v2/tangkas.png"></div><span class="title">Tangkas</span></a></div>
                            <?php endif; ?>
                        </div>
                    </div>
                </li>

                <li>
                    <a href="<?php echo e($prefix); ?>/fish">Fish</a>
                    <div class="dropdown-menu">
                        <div class="dropdown-menu__detail">
                            <?php $__empty_1 = true; $__currentLoopData = get_providers('fish'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $fh): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                <div class="dropdown-menu__detail-list">
                                    <a href="javascript:void(0)" class="<?php echo e($playClass); ?>" data-url="<?php echo e($prefix); ?>/shr/playGame?gc=fish&gg=<?php echo e(strtolower($fh->provider_code)); ?>">
                                        <div class="img-thumbnail"><img src="<?php echo e($fh->icon); ?>"></div><span class="title"><?php echo e($fh->provider_name); ?></span>
                                    </a>
                                </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                <div class="dropdown-menu__detail-list"><a href="javascript:void(0)" class="<?php echo e($playClass); ?>" data-url="<?php echo e($prefix); ?>/shr/playGame?gc=fish&gg=vp"><div class="img-thumbnail"><img src="https://d1bkaj2gcjb1cb.cloudfront.net/common/assets/images/banner/menu-v2/fish-VPOWER.png"></div><span class="title">V Power</span></a></div>
                                <div class="dropdown-menu__detail-list"><a href="javascript:void(0)" class="<?php echo e($playClass); ?>" data-url="<?php echo e($prefix); ?>/shr/playGame?gc=fish&gg=ka"><div class="img-thumbnail"><img src="https://d1bkaj2gcjb1cb.cloudfront.net/common/assets/images/banner/menu-v2/fish-KAGAMING.png"></div><span class="title">KA Gaming</span></a></div>
                            <?php endif; ?>
                        </div>
                    </div>
                </li>

                <li>
                    <a href="<?php echo e($prefix); ?>/others">Others</a>
                    <div class="dropdown-menu">
                        <div class="dropdown-menu__detail">
                            <?php $__empty_1 = true; $__currentLoopData = get_providers('others'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ot): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                <div class="dropdown-menu__detail-list">
                                    <a href="javascript:void(0)" class="<?php echo e($playClass); ?>" data-url="<?php echo e($prefix); ?>/shr/playGame?gc=others&gg=<?php echo e(strtolower($ot->provider_code)); ?>">
                                        <div class="img-thumbnail"><img src="<?php echo e($ot->icon); ?>"></div><span class="title"><?php echo e($ot->provider_name); ?></span>
                                    </a>
                                </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                <div class="dropdown-menu__detail-list"><a href="javascript:void(0)" class="<?php echo e($playClass); ?>" data-url="<?php echo e($prefix); ?>/shr/playGame?gc=others&gg=luxe4d"><div class="img-thumbnail"><img src="https://d1bkaj2gcjb1cb.cloudfront.net/common/assets/images/banner/menu-v2/others-93CONNECT.png"></div><span class="title">93CONNECT</span></a></div>
                                <div class="dropdown-menu__detail-list"><a href="javascript:void(0)" class="<?php echo e($playClass); ?>" data-url="<?php echo e($prefix); ?>/shr/playGame?gc=others&gg=cf388"><div class="img-thumbnail"><img src="https://d1bkaj2gcjb1cb.cloudfront.net/common/assets/images/banner/menu-v2/others-COCKFIGHT.png"></div><span class="title">CockFT</span></a></div>
                            <?php endif; ?>
                        </div>
                    </div>
                </li>

                <li><a href="<?php echo e($prefix); ?>/promotions">Promosi</a></li>
            </ul>
        </div>
    </section>
</header><?php /**PATH /www/wwwroot/website/sewa/9win2api/resources/views/frontend/partials/desktop/header.blade.php ENDPATH**/ ?>