<!--=================================
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="desktop-logo logo-light" 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('lab')
                    <a class="dropdown-item" href="{{ route('labs.index') }}"><i
                            class="text-secondary ti-pie-chart"></i>Item</a>
                @endcan
                @can('payment')
                    <a class="dropdown-item" href="{{ route('payments.index') }}"><i
                            class="text-secondary ti-layout-tab-window"></i>Payments</a>
                @endcan
                @can('code')
                    <a class="dropdown-item" href="{{ route('codes.index') }}"><i
                            class="text-success ti-id-badge"></i>Codes</a>
                @endcan
                @can('category')
                    <a class="dropdown-item" href="{{ route('categories.index') }}"><i
                            class="text-secondary ti-files"></i>Categories</a>
                @endcan
                @can('user')
                    <a class="dropdown-item" href="{{ route('users.index') }}"><i
                            class="text-warning ti-user"></i>{{ trans('main_trans.Users') }}</a>
                    @can('role')
                        <a class="dropdown-item" href="{{ route('roles.index') }}"><i
                                class="text-danger ti-user"></i>{{ trans('main_trans.Role') }}</a>
                    @endcan
                @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-->
