<!-- BEGIN HEADER -->


<div class="page-header navbar navbar-fixed-top">
    <!-- BEGIN HEADER INNER -->
    <div class="page-header-inner">
        <!-- BEGIN LOGO -->
        <div class="page-logo">
            <a href="javascript:;">
                <?php if(admin()->type =='admin'): ?>
                    <img src="<?php echo e($loggedAdmin->company->logo_image_url); ?>" height="50px">
                <?php else: ?>
                    <img src="<?php echo e($setting->logo_image_url); ?>" height="50px">
                <?php endif; ?>

            </a>
            <div class="menu-toggler sidebar-toggler">
                <!-- DOC: Remove the above "hide" to enable the sidebar toggler button on header -->
            </div>
        </div>
        <a href="javascript:;" class="menu-toggler responsive-toggler" data-toggle="collapse"
           data-target=".navbar-collapse"> </a>
        <!-- END LOGO -->
        <!-- BEGIN TOP NAVIGATION MENU -->

        <div class="page-top">
            <div class="top-menu">

                <ul class="nav navbar-nav pull-right">
                    <?php if($loggedAdmin->company && $loggedAdmin->company->license_expired != 1): ?>
                        <?php if(isset($pending_applications)): ?>
                            <li class="dropdown dropdown-extended dropdown-notification" id="header_notification_bar">
                                <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown"
                                   data-hover="dropdown" data-close-others="true">
                                    <i class="icon-bell"></i>

                                    <?php if(count($pending_applications)): ?>
                                        <span class="badge badge-default">
											<?php echo e(count($pending_applications)); ?>

                            </span>
                                    <?php endif; ?>

                                </a>


                                <ul class="dropdown-menu">
                                    <li class="external">
                                        <h3><span class="bold"><?php echo e(count($pending_applications)); ?> pending</span>
                                            notifications</h3>

                                    </li>
                                    <?php if(count($pending_applications)): ?>
                                        <li>
                                            <ul class="dropdown-menu-list scroller" style="height: 250px;"
                                                data-handle-color="#637283">
                                                <?php $__empty_1 = true; $__currentLoopData = $pending_applications; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $pending): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                                    <li>
                                                        <a data-toggle="modal" href="#static_leave_requests"
                                                           onclick="show_application_notification(<?php echo e($pending->id); ?>);return false;">
                                                            <span class="time"><?php echo e(date('d-M-Y',strtotime($pending->created_at))); ?></span>
                                                            <span class="details">
                									<span class="label label-sm label-icon label-success">
                									<i class="fa fa-bell-o"></i>
                									</span>
                									 <strong><?php echo e($pending->employee->full_name); ?> </strong> has applied for leave for <?php if(!isset($pending->end_date)): ?>
                                                                    <?php echo e(date('d-M-Y',strtotime($pending->start_date))); ?>

                                                                <?php else: ?>
                                                                    <?php echo e(date('d-M-Y',strtotime($pending->start_date))); ?>

                                                                    to  <?php echo e(date('d-M-Y',strtotime($pending->end_date))); ?>

                                                                <?php endif; ?>
                                                    </span>
                                                        </a>
                                                    </li>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                                    <li>
                                                    </li>
                                                <?php endif; ?>


                                            </ul>
                                        </li>
                                    <?php endif; ?>
                                </ul>
                            </li>
                        <?php endif; ?>
                    <?php endif; ?>
                    

                    <li class="dropdown dropdown-user">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown"
                           data-close-others="true">


                                <span class="username hidden-sm hidden-xs">
                  <?php echo e($loggedAdmin->name); ?></span>
                            <i class="fa fa-angle-down"></i>
                        </a>
                        <ul class="dropdown-menu dropdown-menu-default">
                            <li>
                                <a href="<?php echo e(route(admin()->type.'.profile_settings.edit')); ?>">
                                    <i class="icon-user"></i> <?php echo e(trans('menu.myProfile')); ?></a>
                            </li>

                            <li class="divider">
                            </li>
                            <li>
                                <a onclick="lockScreenModal()">
                                    <i class="icon-lock"></i> <?php echo e(trans('menu.lockScreen')); ?> </a>
                            </li>
                            <li>
                                <a href="<?php echo e(URL::route('admin.logout')); ?> " id="logout-form">
                                    <i class="icon-logout"></i> <?php echo e(trans('menu.logout')); ?> </a>
                            </li>
                        </ul>
                    </li>
                    <!-- END USER LOGIN DROPDOWN -->

                </ul>
            </div>
        </div>
        <!-- END TOP NAVIGATION MENU -->
    </div>
    <!-- END HEADER INNER -->
    <div class="page-header-menu">
        <div class="container-fluid">
            <!-- END HEADER SEARCH BOX -->
            <!-- BEGIN MEGA MENU -->
            <!-- DOC: Apply "hor-menu-light" class after the "hor-menu" class below to have a horizontal menu with white background -->
            <!-- DOC: Remove data-hover="dropdown" and data-close-others="true" attributes below to disable the dropdown opening on mouse hover -->
            <div class="hor-menu ">
                <ul class="nav navbar-nav">
                        
                    <li class="nav-item <?php echo e(isset($billingActive) ? $billingActive : ''); ?>">
                        <a class="nav-link"
                           href="javascript: loadView('<?php echo e(route('admin.billing.change_plan')); ?>')">
                            <i class="fa fa-dollar"></i>
                            <?php echo e(__('menu.billing')); ?>

                            <?php if($unpaid_invoices > 0): ?>
                                <span class="badge badge-danger"><?php echo e($unpaid_invoices); ?></span>
                            <?php endif; ?>
                        </a>
                    </li>
                </ul>
            </div>
            <!-- END MEGA MENU -->
        </div>
    </div>
</div>
<!-- END HEADER -->
<?php /**PATH /home/kodiinit/hrm.kodiinitiative.org/resources/views/admin/include/plan-null-header.blade.php ENDPATH**/ ?>