<!--=================================
header start-->
<nav class="admin-header navbar navbar-default col-lg-12 col-12 p-0 fixed-top d-flex flex-row">
    <!-- logo -->
    <div class="text-left navbar-brand-wrapper">
        <a class="navbar-brand brand-logo" href="{{ url('/dashboard') }}"><img src="{{ URL::asset('assets/images/logo-dark.png') }}" alt=""></a>
        <a class="navbar-brand brand-logo-mini" href="{{ url('/dashboard') }}"><img src="{{ URL::asset('assets/images/logo-icon-dark.png') }}"
                alt=""></a>


    </div>
    <!-- Top bar left -->
    <ul class="nav navbar-nav mr-auto">
        <li class="nav-item">
            <a id="button-toggle" class="button-toggle-nav inline-block ml-20 pull-left"
                href="javascript:void(0);"><i class="zmdi zmdi-menu ti-align-right"></i></a>
        </li>
        <li class="nav-item">
            <div class="search">
                <a class="search-btn not_click" href="javascript:void(0);"></a>
                <div class="search-box not-click">
                    <input type="text" class="not-click form-control" placeholder="Search" value=""
                        name="search">
                    <button class="search-button" type="submit"> <i class="fa fa-search not-click"></i></button>
                </div>
            </div>
        </li>
    </ul>
    <!-- top bar right -->
    <ul class="nav navbar-nav ml-auto">

        <div class="btn-group mb-1">
            <button type="button" class="btn btn-light btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
              @if (App::getLocale() == 'ar')
              {{ LaravelLocalization::getCurrentLocaleName() }}
             <img src="{{ URL::asset('assets/images/flags/EG.png') }}" alt="">
              @else
              {{ LaravelLocalization::getCurrentLocaleName() }}
              <img src="{{ URL::asset('assets/images/flags/US.png') }}" alt="">
              @endif
              </button>
            <div class="dropdown-menu">
                @foreach(LaravelLocalization::getSupportedLocales() as $localeCode => $properties)
                        <a class="dropdown-item" rel="alternate" hreflang="{{ $localeCode }}" href="{{ LaravelLocalization::getLocalizedURL($localeCode, null, [], true) }}">
                            {{ $properties['native'] }}
                        </a>
                @endforeach
            </div>
        </div>

        <li class="nav-item fullscreen">
            <a id="btnFullscreen" href="#" class="nav-link"><i class="ti-fullscreen"></i></a>
        </li>
       
        <li class="nav-item dropdown mr-30">
            <a class="nav-link nav-pill user-avatar" data-toggle="dropdown" href="#" role="button"
                aria-haspopup="true" aria-expanded="false">
                <img src="{{ URL::asset('assets/images/user_icon.png') }}" alt="avatar">


            </a>
            <div class="dropdown-menu dropdown-menu-right">
                <div class="dropdown-header">
                    <div class="media">
                        <div class="media-body">
                            <h5 class="mt-0 mb-0">{{ Auth::user()->name }}</h5>
                            <span>{{ Auth::user()->first_name }}</span>
                        </div>
                    </div>
                </div>
                <div class="dropdown-divider"></div>
                 @can('المستوى')
                 <a class="dropdown-item" href="{{ route('grades.index') }}"><i class="text-secondary ti-pie-chart"></i>{{ trans('main_trans.Grades') }}</a>
                 @endcan
                 @can('الفصل')
                 <a class="dropdown-item" href="{{ route('semesters.index') }}"><i class="text-secondary ti-layout-tab-window"></i>{{ trans('main_trans.semesters') }}</a>
                 @endcan
                @can('الاقسام')
                <a class="dropdown-item" href="{{ route('depts.index') }}"><i class="text-secondary ti-files"></i>{{ trans('main_trans.depts') }}</a>
                @endcan
                @can('الشهادات')
                <a class="dropdown-item" href="{{ route('certificats.index') }}"><i class="text-success ti-id-badge"></i>{{ trans('Certificat_trans.Certificates') }}</a>
                @endcan
                @can('المستخدمين')
                <a class="dropdown-item" href="{{ route('users.index') }}"><i class="text-warning ti-user"></i>{{trans('main_trans.Users')}}</a>
                <a class="dropdown-item" href="{{ route('roles.index') }}"><i class="text-danger ti-user"></i>{{ trans('main_trans.Role') }}</a>
               
                @endcan
                
                <div class="dropdown-divider"></div>
                <a class="dropdown-item" href="/changePassword"><i class="text-info ti-settings"></i>{{ trans('main_trans.change_password') }}</a>
                <a class="dropdown-item" href="{{ route('logout') }}"><i class="ti-settings" style="color:red"></i>{{ trans('main_trans.logout') }}</a>
                    

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

<!--=================================
header End-->
