<?php
    // DUMMY DATA / CONFIG MENU HEADER (Rata Kanan)
    // Sangat mudah diubah jika Anda ingin menambah/mengurangi menu icon di header
    $headerMenus = [
        ['title' => 'Profil',        'url' => route('account.profile'),       'icon' => 'glyphicon-list-alt',     'target' => '_self'],
        ['title' => 'Depo/Withdraw', 'url' => route('account.deposit'),       'icon' => 'glyphicon-transfer',     'target' => '_self'],
        ['title' => 'Transaksi',     'url' => route('account.walletsummary'), 'icon' => 'glyphicon-stats',        'target' => '_self'],
        ['title' => 'Memo',          'url' => route('account.memo'),          'icon' => 'glyphicon-bell',         'target' => '_self'],
        ['title' => 'Referral',      'url' => route('account.referral'),      'icon' => 'glyphicon-tags',         'target' => '_self'],
        ['title' => 'Promosi',       'url' => route('account.promo'),         'icon' => 'glyphicon-thumbs-up',    'target' => '_self'],
        ['title' => 'RTP',           'url' => 'https://cutt.ly/rtpsuster1',   'icon' => 'glyphicon-flash',        'target' => '_blank'], // Link eksternal
        ['title' => 'APK',           'url' => route('download.apk'),          'icon' => 'glyphicon-cloud-download','target' => '_self'],
        ['title' => 'Livechat',      'url' => 'javascript:showLiveChat();',   'icon' => 'glyphicon-user',         'target' => '_self'],
    ];
?>

<div class="master-main masterheader masterheader2 masterheader2-design1">
    <div class="contentHeader">
        <div class="container">
            <div class="row">
                <div class="topbar-container col-xs-12 p-0">
                    <div class="leftheader-container">
                        
                        <div class="logo-container">
                            
                            <a href="<?php echo e(route('account.home')); ?>" class="logomaster logolink">
                                <img class="img-responsive" alt="<?php echo e(general()->brand); ?>" src="<?php echo e(asset('uploads/' . general()->logo)); ?>" />
                            </a>
                        </div>
                        
                    </div>
                    <div class="rightheader-container">
                        
                        
                        <div class="refreshbox">
                            <a class="btnrefresh" href="javascript:UpdateWallet();">
                                <span class="refresh-icon"></span>
                            </a>
                        </div>
                        
                        
                        <div class="infobox info">
                            
                            <span class="playercredit">IDR. <?php echo e(number_format(auth()->user()->balance, 0, ',', '.')); ?></span>
                        </div>
                        
                        
                        <div class="menubox">
                            <ul>
                                <?php $__currentLoopData = $headerMenus; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $menu): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <li data-toggle='tooltip' data-placement='bottom' title='<?php echo e($menu['title']); ?>'>
                                    <a href="<?php echo e($menu['url']); ?>" target="<?php echo e($menu['target']); ?>">
                                        <span class="glyphicon <?php echo e($menu['icon']); ?>"></span>
                                    </a>
                                </li>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </ul>
                        </div>
                        
                        
                        <div class="infobox info">
                            
                            <span class="playername" translate="no"><?php echo e(auth()->user()->username ?? 'Player'); ?></span>
                        </div>
                        
                        
                        <div class="logoutbox">
                            
                            <a class="btnlogout" href="<?php echo e(route('account.logout')); ?>">
                                <span class="glyphicon glyphicon-log-out"></span>Logout
                            </a>
                        </div>
                        
                    </div>
                </div>
            </div>
        </div>
    </div>
</div><?php /**PATH /www/wwwroot/website/sewa/dragon158/resources/views/frontend/desktop/pages/account/components/header.blade.php ENDPATH**/ ?>