<?php
if (Auth::user()->dashboard_style == "dark") {
    $bgmenu="blue";
    $bg="dark";
    $text = "light";
} else {
    $bgmenu="dark";
    $bg="dark";
    $text = "light";
}

?>
<div class="main-header">
    <!-- Logo Header -->
    <div class="logo-header" data-background-color="<?php echo e($bgmenu); ?>">
    <a href="/" class="logo">
        <img src="<?php echo e(asset('storage/app/public/photos/'.$settings->logo)); ?>" alt="<?php echo e($settings->site_name); ?>" class="img-fluid" style="height: 40px; width: auto;">
    </a>
    <button class="ml-auto navbar-toggler sidenav-toggler" type="button" data-toggle="collapse" data-target="collapse" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon">
            <i class="icon-menu"></i>
        </span>
    </button>
    <button class="topbar-toggler more"><i class="icon-options-vertical"></i></button>
    <div class="nav-toggle">
        <button class="btn btn-toggle toggle-sidebar">
            <i class="icon-menu"></i>
        </button>
    </div>
</div>
<!-- End Logo Header -->

    <!-- Navbar Header -->
    <nav class="navbar navbar-header navbar-expand-lg" data-background-color="<?php echo e($bgmenu); ?>">
        
        <div class="container-fluid">
            <div class="text-center d-md-block d-none">
                <a href="<?php echo e(route('deposits')); ?>" class="pricing-action btn btn-warning btn-sm">Fund your Account</a> &nbsp;
                <a href="<?php echo e(route('withdrawalsdeposits')); ?>" class="pricing-action btn btn-danger btn-sm">Withdraw Funds</a>
                
            </div>
            <ul class="navbar-nav topbar-nav ml-md-auto align-items-center">
               
                <li class="nav-item hidden-caret">
                    <form action="javascript:void(0)" method="post" id="styleform" class="form-inline">
                       
                        <div class="form-group">
                            <label class="style_switch">
                                <input name="style" id="style" type="checkbox" value="true" class="modes">
                                <span class="slider round"></span>
                            </label>
                        </div> 
                        <?php if(Auth::user()->dashboard_style =='dark'): ?>
                        <script>document.getElementById("style").checked= true;</script>
                        <?php endif; ?>
                        <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
                    </form>
                </li>
                <?php if($settings->google_translate =='on'): ?>
                <li class="nav-item hidden-caret">
                    <div id="google_translate_element"></div>
                </li>
                <?php endif; ?>
               
                <?php if($settings->enable_kyc =="yes"): ?>
                <li class="nav-item dropdown hidden-caret">
                    <a class="nav-link" data-toggle="dropdown" href="#" aria-expanded="false">
                        <i class="fas fa-layer-group"></i><strong style="font-size:8px;">KYC</strong>
                    </a>
                    <div class="dropdown-menu quick-actions quick-actions-info animated fadeIn">
                        <div class="quick-actions-header">
                            <span class="mb-1 title">KYC verification</span>
                            <?php if(Auth::user()->account_verify == 'Verified'): ?>	
                            <span class="subtitle op-8">
                             <a href="#" class="p-0 col-12" ><i class="glyphicon glyphicon-ok"></i> KYC status: Account verified</a>
                            </span>
                            <?php else: ?>
                           <span class="subtitle op-8"><a>KYC status: <?php echo e(Auth::user()->account_verify); ?></a></span>
                            <?php endif; ?>
                        </div>
                        <div class="quick-actions-scroll scrollbar-outer">
                            <div class="quick-actions-items">
                                <div class="m-0 row">
                                <?php if(Auth::user()->account_verify != 'Verified'): ?>
                                <a href="<?php echo e(route('account.verify')); ?>" class="btn btn-success">Verify Account </a>
                                <?php endif; ?>
                                </div>
                            </div>
                        </div>
                    </div>
                </li>
                <?php endif; ?>
                <li class="nav-item dropdown hidden-caret">
                    <a class="nav-link" data-toggle="dropdown" href="#" aria-expanded="false">
                        <i class="fas fa-user"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-user animated fadeIn">
                        <div class="dropdown-user-scroll scrollbar-outer">
                            <li>
                                <div class="user-box">
                                    
                                    <div class="u-text">
                                        <h4><?php echo e(Auth::user()->name); ?></h4>
                                        <p class="text-muted"><?php echo e(Auth::user()->email); ?></p><a href="<?php echo e(route('profile')); ?>" class="btn btn-xs btn-secondary btn-sm">Account Settings</a>
                                    </div>
                                </div>
                            </li>
                            <li>
                                <div class="dropdown-divider"></div>
                                <a class="dropdown-item" href="<?php echo e(url('dashboard/deposits')); ?>">Deposit</a>
                                <a class="dropdown-item" href="<?php echo e(url('dashboard/withdrawals')); ?>">Withdraw</a>
                                <a class="dropdown-item" href="<?php echo e(url('dashboard/buy-plan')); ?>">Buy Plan</a>
                                <div class="dropdown-divider"></div>
                                <a class="dropdown-item" href="<?php echo e(route('logout')); ?>"
                                    onclick="event.preventDefault();
                                    document.getElementById('logout-form').submit();">
                                    Logout
                                    </a>
                                <form id="logout-form" action="<?php echo e(route('logout')); ?>" method="POST" style="display: none;">
                                    <?php echo e(csrf_field()); ?>

                                </form> 
                            </li>
                        </div>
                    </ul>
                </li>
            </ul>
        </div>
    </nav>
    <!-- End Navbar -->
</div>
<script type="text/javascript">
    //create investment
        $("#styleform").on('change',function(){
        $.ajax({
            url: "<?php echo e(url('/dashboard/changetheme')); ?>",
            type: 'POST',
            data:$("#styleform").serialize(),
            success: function (data) {
				location.reload(true);
            },
            error: function (data) {
                console.log(data);
            },

        });
    });
    
</script><?php /**PATH /home3/infinexc/public_html/fx/resources/views/user/topmenu.blade.php ENDPATH**/ ?>