<div class="wrapper">
    <div class="sidebar" data-color="blue"data-image="{{asset('public/img/full-screen-image-4.jpg')}}">

        <div class="sidebar-wrapper">

            <div class="user">
                <div class="photo">
                    @if(empty($loggedIn->image))
                        <img src="{{asset("public/img/users/default-avatar.png")}}">
                    @else
                        <img src="{{asset("public/img/users/$loggedIn->image")}}">
                    @endif
                </div>

                <div class="info">
                    <a  href="{{URL::to('my-profile')}}" title="My Profile">
                        {{$loggedIn->first_name." ".$loggedIn->last_name}}
                    </a>

                </div>
            </div>
            <ul class="nav">
                <li>
                    <a href="">
                        <i class="pe-7s-note2"></i>
                        <p>Company List</p>
                    </a>
                </li>
            </ul>
        </div>
    </div>
        <script type="text/javascript">
            /* Selected Active menu code*/
            var url = window.location.href;
            if ($('ul li a[href="' + url + '"]').parent().parent().parent().parent().find('div').attr('class')=='collapse'){
                    $('ul li a[href="' + url + '"]').parent().parent().parent().parent().addClass('active'); //parent menu
                    $('ul li a[href="' + url + '"]').parent().parent().parent().parent().find('div').attr('class','collapse in'); //expand menu div
                    $('ul li a[href="' + url + '"]').parent().addClass('active'); //current menu
            }else{
                $('ul li a[href="' + url + '"]').parent().addClass('active');
            }
            /* Selected Active menu code end*/
        </script>

    <div class="main-panel">
        <nav class="navbar navbar-default">
            <div class="container-fluid">
                <div class="navbar-minimize">
                    <button id="minimizeSidebar" class="btn btn-primary btn-fill btn-round btn-icon">
                        <i class="fa fa-ellipsis-v visible-on-sidebar-regular"></i>
                        <i class="fa fa-navicon visible-on-sidebar-mini"></i>
                    </button>
                </div>
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <span class="navbar-brand">Welcome, Last Login at {{Helper::stringDate($loggedIn->last_login_time)}} from {{$loggedIn->last_login_ip}}</span>
                </div>
                <div class="collapse navbar-collapse">


                    <?php //$notification=\App\CustomClass\Helper::notification();
                    //TODO:: Have to be cheeck
                    ?>
                    <ul class="nav navbar-nav navbar-right">

                        {{--<li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="fa fa-bell-o"></i>
                                @if($notification>0)
                                <span class="notification">{{$notification}}</span>
                                @endif
                                <p class="hidden-md hidden-lg">
                                    Notifications
                                    <b class="caret"></b>
                                </p>
                            </a>
                            <ul class="dropdown-menu">
                                @if(Helper::hasPermit('exchange-manage'))
                                    @if(@$pendingNotify=='true')
                                        <li><a href="{{URL::to('leave-manage')}}">Leave/Exchange approval</a></li>
                                    @endif
                                    @if(@$pendingNotify=='true')
                                        <li><a href="{{URL::to('leave-manage')}}">Leave/Exchange approval</a></li>
                                    @endif
                                @endif

                                @if($notification<1)
                                        <li><a>No notification</a></li>
                                    @endif
                            </ul>
                        </li>
--}}

                        <li class="dropdown dropdown-with-icons">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="fa fa-list"></i>
                                <p class="hidden-md hidden-lg">
                                    More
                                    <b class="caret"></b>
                                </p>
                            </a>
                            <ul class="dropdown-menu dropdown-with-icons">
                                <li>
                                    <a href="#">
                                        <i class="pe-7s-mail"></i> Messages
                                    </a>
                                </li>
                                <li>
                                    <a href="#">
                                        <i class="pe-7s-tools"></i> Settings
                                    </a>
                                </li>
                                <li class="divider"></li>

                                <li>
                                    <a href="{{URL::to('admin/logout')}}" class="text-warning">
                                        <i class="pe-7s-close-circle"></i>
                                        Log out
                                    </a>
                                </li>
                            </ul>
                        </li>

                    </ul>
                </div>
            </div>
        </nav>