<style>
  .notification_count {
        font-size: 12px; 
        border-radius: 60%; 
    }
    .list:hover {
        cursor: pointer;
        opacity: 0.7;
    }
</style>

<header id="page-topbar">
    <div class="navbar-header">
        <div class="d-flex">
            <!-- LOGO -->
            <div class="navbar-brand-box">
                <a href="<?php echo e(route('user.dashboard')); ?>" class="logo logo-dark">
                    <span class="logo-sm">
                        <img src="<?php echo e(URL::to(website_favicon())); ?>" alt="" style="height: 42px !important;">
                    </span>
                    <span class="logo-lg">
                        <img src="<?php echo e(URL::to(website_favicon())); ?>" alt="" style="height: 42px !important;">
                        <span class="site-title" style="font-size: 19px">maicrojob</span>
                    </span>
                    <span class="site-title" style="font-size: 19px">maicrojob</span>
                </a>

                <a href="<?php echo e(route('user.dashboard')); ?>" class="logo logo-light">
                    <span class="logo-sm">
                        <img src="<?php echo e(URL::to(website_logo())); ?>" alt="" style="height: 42px !important;">
                    </span>
                    <span class="logo-lg">
                        <img src="<?php echo e(URL::to(website_logo())); ?>" alt="" style="height: 42px !important;">
                        <span class="site-title" style="font-size: 19px">maicrojob</span>
                    </span>
                </a>
            </div>

            <button type="button" class="btn btn-sm px-3 font-size-24 header-item" id="vertical-menu-btn">
                <i class="mdi mdi-menu"></i>
            </button>
        </div>

        <div class="d-flex align-items-center">
            <div class="dropdown d-inline-block align-items-center list">
                <p class="m-0 c-pointer" onclick="showNotificationModal()">
                    <i class="mdi mdi-bell"></i>
                    <?php
                        $notificationCount = latest_notification(Auth::user()->id)->count();
                    ?>
                    <?php if($notificationCount > 0): ?>
                        <label class="notification_count"><?php echo e($notificationCount); ?></label>
                    <?php endif; ?>
                </p>
            </div>
        </div>
        
            <p class="m-0 list" style="font-size: 15px; font-weight: 700;">ID: <?php echo e(Auth::user()->code); ?></p>
        <p class="m-0 list">
            <div class="dropdown d-inline-block">
                <a class="nav-link" id="page-header-user-dropdown" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                    <div class="d-flex align-items-center gap-2">
                        <?php if(Auth::user()->image): ?>
                            <img class="avatar avatar-sm rounded-circle header-profile-user" src="<?php echo e(asset(Auth::user()->image)); ?>" alt="<?php echo e(Auth::user()->name); ?>" width="45px" height="45px" style="width: 45px;height: 45px;max-width: 45px;">
                        <?php else: ?>
                            <img class="avatar avatar-sm rounded-circle header-profile-user" src="<?php echo e(asset('frontend/img/user.png')); ?>" alt="User Image" width="45px" height="45px" style="width: 45px;height: 45px;max-width: 45px;">
                        <?php endif; ?>
                        <div class="media-body ml-2 d-none d-lg-block list">
                            <span href="" class="mb-0 text-sm font-weight-bold"><?php echo e(Auth::user()->name); ?></span>
                        </div>
                    </div>
                </a>
               
                <div class="dropdown-menu dropdown-menu-end">
                    <!-- item -->
                    <div class="flex-grow-1 ms-3">
                            <h5 style="color: black; font-weight: 90px; font-size: 10px; mb-1">HELLO, <?php echo e(strtoupper(Auth::user()->name)); ?> <?php if(Auth::user()->premium_status == 1 && Auth::user()->premium_package_id != NULL): ?>✅<?php endif; ?></</h5>
                    </div>
                    <div class="dropdown-divider"></div>
                    <a class="dropdown-item" href="<?php if(Auth::user()->status == 0): ?> javascript:; <?php else: ?><?php echo e(route('user.profile')); ?> <?php endif; ?>" <?php if(Auth::user()->status == 0): ?> onclick="return alert('Your Account is blocked! <?php echo e(Auth::user()->reason); ?>. Please Contact with authority!')" <?php endif; ?>><i class="fas fa-user font-size-17 align-middle me-1" style="color: #666666"></i><span class="ms-3">My Profile</span></a>
                    
                    <a class="dropdown-item" href="<?php if(Auth::user()->status == 0): ?> javascript:; <?php else: ?> <?php echo e(route('user.top-deposit-user')); ?> <?php endif; ?>" <?php if(Auth::user()->status == 0): ?> onclick="return alert('Your Account is blocked! <?php echo e(Auth::user()->reason); ?>. Please Contact with authority!')" <?php endif; ?>><i class="fas fa-chart-line font-size-17 align-middle me-1" style="color: #666666"></i><span class="ms-3">Top Depositor</span></a>
                    
                    <a class="dropdown-item" href="<?php if(Auth::user()->status == 0): ?> javascript:; <?php else: ?> <?php echo e(route('user.top-job-worked-user')); ?> <?php endif; ?>" <?php if(Auth::user()->status == 0): ?> onclick="return alert('Your Account is blocked! <?php echo e(Auth::user()->reason); ?>. Please Contact with authority!')" <?php endif; ?>><i class="fas fa-chart-line font-size-17 align-middle me-1" style="color: #666666"></i><span class="ms-3">Top Worker</span></a>
                    
                    <a class="dropdown-item" href="<?php if(Auth::user()->status == 0): ?> javascript:; <?php else: ?> <?php echo e(route('user.top-job-posted-user')); ?> <?php endif; ?>" <?php if(Auth::user()->status == 0): ?> onclick="return alert('Your Account is blocked! <?php echo e(Auth::user()->reason); ?>. Please Contact with authority!')" <?php endif; ?>><i class="fas fa-chart-line font-size-17 align-middle me-1" style="color: #666666"></i><span class="ms-3">Top Job Poster</span></a>
                    
                    <a class="dropdown-item" href="<?php if(Auth::user()->status == 0): ?> javascript:; <?php else: ?> <?php echo e(route('user.top-earning-user')); ?> <?php endif; ?>" <?php if(Auth::user()->status == 0): ?> onclick="return alert('Your Account is blocked! <?php echo e(Auth::user()->reason); ?>. Please Contact with authority!')" <?php endif; ?>><i class="fas fa-chart-line font-size-17 align-middle me-1" style="color: #666666"></i><span class="ms-3">Top User</span></a>
                   
                    
                    <a class="dropdown-item" href="<?php if(Auth::user()->status == 0): ?> javascript:; <?php else: ?> <?php echo e(route('user.top-referral-user')); ?> <?php endif; ?>" <?php if(Auth::user()->status == 0): ?> onclick="return alert('Your Account is blocked! <?php echo e(Auth::user()->reason); ?>. Please Contact with authority!')" <?php endif; ?>><i class="fas fa-chart-line font-size-17 align-middle me-1" style="color: #666666"></i><span class="ms-3">Top Refer</span></a>
                    
                    
                    <a class="dropdown-item" href="<?php if(Auth::user()->status == 0): ?> javascript:; <?php else: ?> <?php echo e(route('user.new-withdraw-request')); ?> <?php endif; ?>" <?php if(Auth::user()->status == 0): ?> onclick="return alert('Your Account is blocked! <?php echo e(Auth::user()->reason); ?>. Please Contact with authority!')" <?php endif; ?>><i class="fas fa-wallet font-size-17 align-middle me-1" style="color: #666666"></i><span class="ms-3">Wallet</span></a>
                    
                    <a class="dropdown-item" href="https://t.me/Akota_Micro_Jobs"><i class="fa fa-recycle font-size-17 align-middle me-1" style="color: #666666"></i><span class="ms-3">Join Telegram</span></a>
                    
                    <a class="dropdown-item" href="<?php echo e(route('contact-us')); ?>">
                        <i class="fas fa-headset font-size-17 align-middle me-1" style="color: #666666"></i><span class="ms-3">Support</span>
                    </a>
                    <div class="dropdown-divider"></div>
                    
                    <a class="dropdown-item text-danger" href="<?php echo e(route('user-logout')); ?>" onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
                        <i class="fas fa-running font-size-17 align-middle me-1 text-danger"></i><span class="ms-3">
                        Logout</span>
                    </a>
                    <form id="logout-form" action="<?php echo e(route('user-logout')); ?>" method="POST" class="d-none">
                        <?php echo csrf_field(); ?>
                    </form>
                </div>
            </div>
        </div>
    </div>
</header>

<?php /**PATH /home/dealruom/microjob.dealingwork.com/resources/views/user/layouts/partials/header.blade.php ENDPATH**/ ?>