<nav class="navbar">
    <div class="container-fluid">

        <div class="header-logo">
            <a href="#">
                <img class="d-none d-lg-block" src="<?php echo e(isset($website) ? $website->site_logo : asset('public/logo.png')); ?>" alt="...">
                <img class="d-lg-none d-sm-block" src="<?php echo e(isset($website) ? $website->site_logo : asset('public/logo.png')); ?>" alt="...">
            </a>
        </div>

        <div class="header-body">
            
            <ul class="navbar-nav ml-auto">
                <!-- Notification Bell with Dropdown -->
                 <?php if(Auth::user()->hasRole('employee')): ?>
                    <?php 
                        $user_unique_id = Auth::user()->user_unique_id;
                      
                        $notifications = App\Models\HRMS\EmployeeNotification::where('user_unique_id', $user_unique_id)->get();
                        $total = $notifications->where('read_status','0')->count();
                    ?>
                <li class="nav-item dropdown">
                    
                        <a href="#" class="nav-link" data-toggle="dropdown" aria-expanded="false">
                            <i class="ti ti-bell"></i>
                            <?php if($total): ?>
                                <span class="notification-badge"><?php echo e($total); ?></span> 
                            <?php endif; ?>
                        </a>

                    <div class="dropdown-menu dropdown-menu-right dropdown-menu-big notification-dropdown">
                        <div class="dropdown-menu-title">
                            <div class="d-flex justify-content-between align-items-center">
                                <h6 class="m-0">Notifications</h6>
                                <a href="#" class="text-muted">Mark all as read</a>
                            </div>
                        </div>
                        <div class="dropdown-menu-body">
                            <div class="notification-list">
                                <!-- Single Notification Item -->
                                 <?php $__currentLoopData = $notifications; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $notice): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <button type="button" notice_id="<?php echo e($notice->id); ?>" class="list-group-item list-group-item-action notification_btn" notice_id="<?php echo e($notice->id); ?>">
                                        <div class="d-flex align-items-center">
                                            <div class="notification-icon bg-primary text-white">
                                                <i class="ti ti-user-plus"></i>
                                            </div>
                                            <div class="notification-content ml-3">
                                                <h6 class="mb-1 text-capitalize"><?php echo e($notice->title); ?></h6>
                                                <p class="mb-0 text-muted"><?php echo e($notice->description); ?></p>
                                                <small class="text-muted"><?php echo e($notice->created_at); ?></small>
                                            </div>
                                        </div>
                                    </button>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                
                            </div>
                        </div>
                        <div class="dropdown-menu-footer text-center">
                            <a href="<?php echo e(asset('hrms/view-notification/'.$user_unique_id)); ?>" class="text-uppercase">View All Notifications</a>
                        </div>
                    </div>
                </li>
                <?php endif; ?>
                <!-- users -->
                <li class="nav-item dropdown">
                    <a href="#" class="nav-link" data-toggle="dropdown">
                        <i class="fa fa-user-o"></i>
                    </a>
                    <div class="dropdown-menu dropdown-menu-right dropdown-menu-big">
                        <div class="dropdown-menu-title text-center"
                            data-backround-image="<?php echo e(asset('public/admin/media/image/image1.png')); ?>">
                            <figure class="avatar avatar-state-success avatar-sm m-b-10 bring-forward">
                                <img src="<?php echo e(!empty($myprofile->profile_pics) ? $myprofile->profile_pics : asset('public/admin/media/image/avatar.jpg')); ?>"
                                    class="rounded-circle" alt="image">
                            </figure>
                            <h6 class="text-uppercase font-size-12 m-b-0"></h6>
                        </div>
                        <div class="dropdown-menu-body">
                            <ul class="list-group list-group-flush">
                                <a href="<?php echo e(asset('profile')); ?>" class="list-group-item link-2">Profile</a>
                                <a href="<?php echo e(asset('logout')); ?>" class="list-group-item text-danger">Logout</a>
                            </ul>
                        </div>
                    </div>
                </li>
                <li class="nav-item d-lg-none d-sm-block">
                    <a href="#" class="nav-link side-menu-open">
                        <i class="ti-menu"></i>
                    </a>
                </li>
            </ul>
        </div>

    </div>
</nav>


<?php /**PATH C:\xampp\htdocs\account_admin\resources\views/components/nav-bar.blade.php ENDPATH**/ ?>