
<nav class="navbar navbar-vertical fixed-left fixed-nav-sidoni navbar-expand-md navbar-light bg-white" id="sidenav-main">
    <div class="container-fluid">
        <!-- Toggler -->
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#sidenav-collapse-main" aria-controls="sidenav-main" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <!-- Brand -->
        <a class="navbar-brand pt-0 pb-0 mt-3" href="{{ route('admin.dashboard') }}">
            <img src="{{ asset('storage/jasaraharja.png') }}" class="navbar-brand-img" alt="...">
            {{-- <h1>Jasa Raharja</h1> --}}
        </a>
        <!-- User -->
        <ul class="nav align-items-center d-md-none">
            <li class="nav-item dropdown">
                <a class="nav-link" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                    <div class="media align-items-center">
                        <img src="{{ asset('assets') }}/img/logo/logo.png" class="navbar-brand-img" alt="...">
                    </div>
                </a>
                <div class="dropdown-menu dropdown-menu-arrow dropdown-menu-right">
                    {{-- <div class=" dropdown-header noti-title">
                        <h6 class="text-overflow m-0">{{ __('Welcome!') }}</h6>
                    </div>
                    <a href="#" class="dropdown-item">
                        <i class="ni ni-single-02"></i>
                        <span>{{ __('My profile') }}</span>
                    </a>
                    <a href="#" class="dropdown-item">
                        <i class="ni ni-settings-gear-65"></i>
                        <span>{{ __('Settings') }}</span>
                    </a>
                    <a href="#" class="dropdown-item">
                        <i class="ni ni-calendar-grid-58"></i>
                        <span>{{ __('Activity') }}</span>
                    </a>
                    <a href="#" class="dropdown-item">
                        <i class="ni ni-support-16"></i>
                        <span>{{ __('Support') }}</span>
                    </a> --}}
                    @can('profile-update')
                        <a href="{{ route('admin.profile.update') }}" class="dropdown-item">
                            <i class="ni ni-single-02"></i>
                            <span>{{ __('My profile') }}</span>
                        </a>
                    @endcan
                    <div class="dropdown-divider"></div>
                    <a href="{{ route('logout') }}" class="dropdown-item" onclick="event.preventDefault();
                    document.getElementById('logout-form').submit();">
                        <i class="ni ni-user-run"></i>
                        <span>{{ __('Logout') }}</span>
                    </a>
                </div>
            </li>
        </ul>
        <!-- Collapse -->
        <div class="collapse navbar-collapse" id="sidenav-collapse-main">
            <!-- Collapse header -->
            <div class="navbar-collapse-header d-md-none pb-0">
                <div class="row">
                    <div class="col-6 collapse-brand">
                        <h2>Pilih Menu</h2>
                    </div>
                    <div class="col-6 collapse-close">
                        <button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#sidenav-collapse-main" aria-controls="sidenav-main" aria-expanded="false" aria-label="Toggle sidenav">
                            <span></span>
                            <span></span>
                        </button>
                    </div>
                </div>
            </div>
            <!-- Form -->
            {{-- <form class="mt-4 mb-3 d-md-none">
                <div class="input-group input-group-rounded input-group-merge">
                    <input type="search" class="form-control form-control-rounded form-control-prepended" placeholder="{{ __('Search') }}" aria-label="Search">
                    <div class="input-group-prepend">
                        <div class="input-group-text">
                            <span class="fa fa-search"></span>
                        </div>
                    </div>
                </div>
            </form> --}}
            <!-- Navigation -->
            <ul class="navbar-nav">
                <li class="nav-item">
                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'dashboard') != 0) ? 'active' : '' }} " href=" {{ route('admin.dashboard') }} ">
                        <i class="ni ni-tv-2 {{ (strpos(Route::currentRouteName(), 'dashboard') != 0) ? 'text-primary' : '' }}"></i> {{ __('Dashboard') }}
                    </a>
                </li>
                <li class="nav-item">
                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'transportation') != 0) ? 'active' : '' }} " href=" {{ route('admin.transportation.index') }} ">
                        <i class="ni ni-tv-2 {{ (strpos(Route::currentRouteName(), 'transportation') != 0) ? 'text-primary' : '' }}"></i> {{ __('Transportation') }}
                    </a>
                </li>
                <li class="nav-item">
                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'news') != 0) ? 'active' : '' }} " href=" {{ route('admin.news.index') }} ">
                        <i class="ni ni-tv-2 {{ (strpos(Route::currentRouteName(), 'news') != 0) ? 'text-primary' : '' }}"></i> {{ __('News') }}
                    </a>
                </li>
                <li class="nav-item">
                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'tips') != 0) ? 'active' : '' }} " href=" {{ route('admin.tips.index') }} ">
                        <i class="ni ni-tv-2 {{ (strpos(Route::currentRouteName(), 'tips') != 0) ? 'text-primary' : '' }}"></i> {{ __('Tips') }}
                    </a>
                </li>
                <li class="nav-item">
                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'message') != 0) ? 'active' : '' }} " href=" {{ route('admin.message.index') }} ">
                        <i class="ni ni-tv-2 {{ (strpos(Route::currentRouteName(), 'message') != 0) ? 'text-primary' : '' }}"></i> {{ __('Message') }}
                    </a>
                </li>
                <li class="nav-item">
                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'trivia') != 0) ? 'active' : '' }} " href=" {{ route('admin.trivia.index') }} ">
                        <i class="ni ni-book-bookmark {{ (strpos(Route::currentRouteName(), 'trivia') != 0) ? 'text-primary' : '' }}"></i> {{ __('Quiz Trivia') }}
                    </a>
                </li>
                <li class="nav-item">
                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'kelompok-driver') != 0) ? 'active' : '' }} " href=" {{ route('admin.kelompok-driver.index') }} ">
                        <i class="ni ni-book-bookmark {{ (strpos(Route::currentRouteName(), 'kelompok-driver') != 0) ? 'text-primary' : '' }}"></i> {{ __('Kelompok Driver') }}
                    </a>
                </li>
                <li class="nav-item">
                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'event-organisasi') != 0) ? 'active' : '' }} " href=" {{ route('admin.event-organisasi.index') }} ">
                        <i class="ni ni-book-bookmark {{ (strpos(Route::currentRouteName(), 'event-organisasi') != 0) ? 'text-primary' : '' }}"></i> {{ __('Event Organisasi') }}
                    </a>
                </li>
                <li class="nav-item">
                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'master-points') != 0) ? 'active' : '' }} " href=" {{ route('admin.master-points.index') }} ">
                        <i class="ni ni-book-bookmark {{ (strpos(Route::currentRouteName(), 'master-points') != 0) ? 'text-primary' : '' }}"></i> {{ __('Master Points') }}
                    </a>
                </li>



                {{-- end sidebare raharja --}}



            @if (Auth::user()->hasAnyPermission(['manajemen_kantong-list', 'vendor-list','purchase_order-list']))
                <li class="nav-item ">
                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'logistik') != 0) ? 'active' : '' }}" href="#navbar-logistik" data-toggle="collapse" role="button" aria-expanded="true" aria-controls="navbar-logistik">
                        <i class="ni ni-delivery-fast {{ (strpos(Route::currentRouteName(), 'logistik') != 0) ? 'text-primary' : '' }}" ></i>
                        <span class="nav-link-text" >Logistik</span>
                    </a>
                    <div class="collapse {{ (strpos(Route::currentRouteName(), 'logistik') != 0) ? 'show' : '' }}" id="navbar-logistik">
                        <ul class="nav nav-sm flex-column">
                            @if (Auth::user()->hasAnyPermission(['manajemen_kantong-list']))
                                <li class="nav-item">
                                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'logistik.manajemen_kantong') != 0) ? 'active' : '' }} " href=" {{ route('admin.logistik.manajemen_kantong.index') }} " >
                                       <i class="fas fa-pen"></i> {{ __('Manajemen Kantong') }}
                                    </a>
                                </li>
                            @endif
                            @if (Auth::user()->hasAnyPermission(['kantong_rusak-list']))
                                <li class="nav-item">
                                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'logistik.kantong_rusak') != 0) ? 'active' : '' }} " href=" {{ route('admin.logistik.kantong_rusak.index') }} " >
                                       <i class="fas fa-pen-alt"></i> {{ __('Kantong Rusak ') }}
                                    </a>
                                </li>
                            @endif
                            {{-- @if (Auth::user()->hasAnyPermission(['master-merk-kantong-list'])) --}}
                                {{-- <li class="nav-item">

                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'rekap_order.order_dropping') != 0) ? 'active' : '' }} ">
                                        {{ __('Manajemen Reagen') }}
                                    </a>
                                </li> --}}
                            {{-- @endif --}}
                            {{-- @if (Auth::user()->hasAnyPermission(['master-lots-list'])) --}}
                            {{-- <li class="nav-item">

                                <a class="nav-link {{ (strpos(Route::currentRouteName(), 'rekap_order.order_dropping') != 0) ? 'active' : '' }} ">
                                    {{ __('Cetak Barcode Kantong') }}
                                </a>
                            </li> --}}
                            {{-- @endif --}}
                            {{-- @if (Auth::user()->hasAnyPermission(['master-reagen-list'])) --}}
                                <li class="nav-item">
                                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'logistik.master_reagen') != 0) ? 'active' : '' }} " href=" {{ route('admin.logistik.master_reagen.index') }} ">
                                       <i class="fas fa-pen-fancy"></i> {{ __('  Reagen') }}
                                    </a>
                                </li>
                            {{-- @endif --}}
                            @if (Auth::user()->hasAnyPermission(['vendor-list']))
                            <li class="nav-item">
                                {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                <a class="nav-link {{ (strpos(Route::currentRouteName(), 'logistik.vendor') != 0) ? 'active' : '' }} "  href=" {{ route('admin.logistik.vendor.index') }} " >
                                   <i class="fas fa-pen-nib"></i> {{ __('Vendor') }}
                                </a>
                            </li>
                            @endif
                            @if (Auth::user()->hasAnyPermission(['purchase_order-list']))
                                <li class="nav-item">
                                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'logistik.purchase_order') != 0) ? 'active' : '' }} " href=" {{ route('admin.logistik.purchase_order.index') }} " >
                                       <i class="fas fa-pencil-alt"></i> {{ __('Purchase Order') }}
                                    </a>
                                </li>
                            @endif
                            @if (Auth::user()->hasAnyPermission(['delivery_order-list']))
                                <li class="nav-item">
                                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'logistik.delivery_order') != 0) ? 'active' : '' }} " href=" {{ route('admin.logistik.delivery_order.index') }} " >
                                       <i class="fas fa-pencil-ruler"></i> {{ __('Delivery Order') }}
                                    </a>
                                </li>
                            @endif
                            @if (Auth::user()->hasAnyPermission(['delivery_order-list']))
                                <li class="nav-item">
                                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'logistik.master_box') != 0) ? 'active' : '' }} " href=" {{ route('admin.logistik.master_box.index') }} " >
                                       <i class="fas fa-pen-square"></i> {{ __('Master Box') }}
                                    </a>
                                </li>
                            @endif
                        </ul>
                    </div>
                </li>
            @endif
            @if (Auth::user()->hasAnyPermission(['penapisan-list', 'lembar-pengesahan-list']))
                <li class="nav-item ">
                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'penapisan') != 0) ? 'active' : '' }}" href="#navbar-penapisan" data-toggle="collapse" role="button" aria-expanded="true" aria-controls="navbar-penapisan">
                        <i class="ni ni-single-02 {{ (strpos(Route::currentRouteName(), 'penapisan') != 0) ? 'text-primary' : '' }}" ></i>
                        <span class="nav-link-text" >Penapisan</span>
                    </a>
                    <div class="collapse {{ (strpos(Route::currentRouteName(), 'penapisan') != 0) ? 'show' : '' }}" id="navbar-penapisan">
                        <ul class="nav nav-sm flex-column">
                            @if (Auth::user()->hasAnyPermission(['penapisan-list']))
                                <li class="nav-item">
                                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'penapisan.quality_control') != 0) ? 'active' : '' }} " href=" {{ route('admin.penapisan.quality_control.index') }} " >
                                       <i class="fas fa-filter"></i> {{ __('Penapisan') }}
                                    </a>
                                </li>
                            @endif
                            @if (Auth::user()->hasAnyPermission(['lembar-pengesahan-list']))
                                <li class="nav-item">
                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'penapisan.lembar_pengesahan') != 0) ? 'active' : '' }} " href=" {{ route('admin.penapisan.lembar_pengesahan.index') }} " >
                                       <i class="fas fa-print"></i> {{ __('lembar Penyerahan') }}
                                    </a>
                                </li>
                            @endif

                        </ul>
                    </div>
                </li>
            @endif
            @if (Auth::user()->hasAnyPermission(['pemusnahan_darah_lab-list']))
             <li class="nav-item">
                <a class="nav-link {{ (strpos(Route::currentRouteName(), 'pemusnahan_darah') != 0) ? 'active' : '' }} " href=" {{ route('admin.pemusnahan_darah.index') }} ">
                        <i class="ni ni-active-40 {{ (strpos(Route::currentRouteName(), 'pemusnahan_darah') != 0) ? 'text-primary' : '' }}"></i> {{ __('Pemusnahan Darah') }}
                </a>
            </li>
            @endif
            @if (Auth::user()->hasAnyPermission(['aferesis-list', 'plasma_konvalesen-list']))
                <li class="nav-item ">
                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'donor_darah_non_reguler') != 0) ? 'active' : '' }}" href="#navbar-donor-non-reguler" data-toggle="collapse" role="button" aria-expanded="true" aria-controls="navbar-donor-non-reguler">
                        <i class="ni ni-atom {{ (strpos(Route::currentRouteName(), 'donor_darah_non_reguler') != 0) ? 'text-primary' : '' }}" ></i>
                        <span class="nav-link-text" >Donor Non Reguler</span>
                    </a>
                    <div class="collapse {{ (strpos(Route::currentRouteName(), 'donor_darah_non_reguler') != 0) ? 'show' : '' }}" id="navbar-donor-non-reguler">
                        <ul class="nav nav-sm flex-column">
                            @if (Auth::user()->hasAnyPermission(['aferesis-list']))
                                <li class="nav-item">
                                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'donor_darah_non_reguler.aferesis') != 0) ? 'active' : '' }} " href=" {{ route('admin.donor_darah_non_reguler.aferesis.index') }} " >
                                       <i class="fas fa-stethoscope"></i> {{ __('Aferesis') }}
                                    </a>
                                </li>
                            @endif
                            @if (Auth::user()->hasAnyPermission(['plasma_konvalesen-list']))
                                <li class="nav-item">
                                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'donor_darah_non_reguler.plasma_konvalesen') != 0) ? 'active' : '' }} " href=" {{ route('admin.donor_darah_non_reguler.plasma_konvalesen.index') }} " >
                                        <i class="fas fa-stethoscope"></i> {{ __('Plasma Konvalesen') }}
                                    </a>
                                </li>
                            @endif
                        </ul>
                    </div>
                </li>
            @endif
            @if (Auth::user()->hasAnyPermission(['manajemen_reagen-list', 'hasil_imltd-list']))
                <li class="nav-item ">
                    <a class="nav-link {{ (strpos(Route::currentRouteName(), '.imltd.') != 0) ? 'active' : '' }}" href="#navbar-imltd" data-toggle="collapse" role="button" aria-expanded="true" aria-controls="navbar-imltd">
                        <i class="fas fa-layer-group {{ (strpos(Route::currentRouteName(), 'imltd') != 0) ? 'text-primary' : '' }}" ></i>
                        <span class="nav-link-text" >IMLTD</span>
                    </a>
                    <div class="collapse {{ (strpos(Route::currentRouteName(), 'imltd') != 0) ? 'show' : '' }}" id="navbar-imltd">
                        <ul class="nav nav-sm flex-column">

                            @if (Auth::user()->hasAnyPermission(['pendonor_cekal-list']))
                                <li class="nav-item">
                                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'imltd.pendonor_cekals') != 0) ? 'active' : '' }} " href=" {{ route('admin.imltd.pendonor_cekals.index') }} " >
                                       <i class="fas fa-users"></i> {{ __('Pendonor Cekals') }}
                                    </a>
                                </li>
                            @endif
                            @if (Auth::user()->hasAnyPermission(['manajemen_reagen-list']))
                                <li class="nav-item">
                                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'imltd.aktifasi_reagen') != 0) ? 'active' : '' }} " href=" {{ route('admin.imltd.aktifasi_reagen.index') }} " >
                                       <i class="fas fa-users-cog"></i> {{ __('Manajemen Reagen') }}
                                    </a>
                                </li>
                            @endif
                            @if (Auth::user()->hasAnyPermission(['hasil_imltd-list']))
                                <li class="nav-item">
                                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'imltd.hasil_imltd.') != 0) ? 'active' : '' }} " href=" {{ route('admin.imltd.hasil_imltd.index') }} " >
                                        <i class="fas fa-file-alt"></i> {{ __('Hasil IMLTD (Reaktif)') }}
                                    </a>
                                </li>
                            @endif
                            @if (Auth::user()->hasAnyPermission(['hasil_imltd_non_reaktif-list']))
                                <li class="nav-item">
                                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'imltd.hasil_imltd_non_reaktif') != 0) ? 'active' : '' }} "
                                    href=" {{ route('admin.imltd.hasil_imltd_non_reaktif.index') }} " >
                                        <i class="fas fa-file-alt"></i> {{ __('Hasil IMLTD (Non Reaktif)') }}
                                    </a>
                                </li>
                            @endif
                        </ul>
                    </div>
                </li>
            @endif
            @if (Auth::user()->hasAnyPermission(['pembuatan_komponen_produk-list']))
                <li class="nav-item ">
                    <a class="nav-link {{ (strpos(Route::currentRouteName(), '.komponen') != 0) ? 'active' : '' }}" href="#navbar-komponen" data-toggle="collapse" role="button" aria-expanded="true" aria-controls="navbar-komponen">
                        <i class="ni ni-app {{ (strpos(Route::currentRouteName(), 'komponen,') != 0) ? 'text-primary' : '' }}" ></i>
                        <span class="nav-link-text" >Komponen</span>
                    </a>
                    <div class="collapse {{ (strpos(Route::currentRouteName(), 'komponen') != 0) ? 'show' : '' }}" id="navbar-komponen">
                        <ul class="nav nav-sm flex-column">
                            @if (Auth::user()->hasAnyPermission(['pembuatan_komponen_produk-list']))
                                <li class="nav-item">
                                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'komponen.pembuatan_komponen_produk') != 0) ? 'active' : '' }} " href=" {{ route('admin.komponen.pembuatan_komponen_produk.index') }} " >
                                        <i class="fas fa-inbox"></i>{{ __('Pembuatan Komponen Produk') }}
                                    </a>
                                </li>
                            @endif
                            @if (Auth::user()->hasAnyPermission(['cetak_barcode_komponen-list']))
                                <li class="nav-item">
                                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'komponen.cetak_barcode') != 0) ? 'active' : '' }} " href=" {{ route('admin.komponen.cetak_barcode.index') }} " >
                                        <i class="fas fa-barcode"></i>{{ __('Cetak Barcode') }}
                                    </a>
                                </li>
                            @endif
                            @if (Auth::user()->hasAnyPermission(['ubah_komponen-list']))
                                <li class="nav-item">
                                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'komponen.ubah_komponen_kantong') != 0) ? 'active' : '' }} " href=" {{ route('admin.komponen.ubah_komponen_kantong.index') }} " >
                                        <i class="fas fa-barcode"></i>{{ __('Ubah Komponen Kantong') }}
                                    </a>
                                </li>
                            @endif
                            {{-- @if (Auth::user()->hasAnyPermission(['master-merk-kantong-list'])) --}}
                                {{-- <li class="nav-item">

                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'rekap_order.order_dropping') != 0) ? 'active' : '' }} ">
                                        {{ __('Hasil Test Darah') }}
                                    </a>
                                </li> --}}
                        </ul>
                    </div>
                </li>
            @endif
            @if (Auth::user()->hasAnyPermission(['master_metode_kgd-list','master_reagen_kgd-list','raegen_kgd-list','hasil-kgd-list']))
                <li class="nav-item ">
                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'konfirmasi') != 0) ? 'active' : '' }}" href="#navbar-konfirmasi" data-toggle="collapse" role="button" aria-expanded="true" aria-controls="navbar-konfirmasi">
                        <i class="ni ni-check-bold {{ (strpos(Route::currentRouteName(), 'konfirmasi') != 0) ? 'text-primary' : '' }}" ></i>
                        <span class="nav-link-text" >Konfirmasi (KGD)</span>
                    </a>
                    <div class="collapse {{ (strpos(Route::currentRouteName(), 'konfirmasi') != 0) ? 'show' : '' }}" id="navbar-konfirmasi">
                        <ul class="nav nav-sm flex-column">
                            @if (Auth::user()->hasAnyPermission(['master_metode_kgd-list']))
                                <li class="nav-item">
                                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'konfirmasi.master_metode_kgd') != 0) ? 'active' : '' }} " href=" {{ route('admin.konfirmasi.master_metode_kgd.index') }} ">
                                        <i class="fas fa-file"></i>{{ __('Master Metode KGD') }}
                                    </a>
                                </li>
                            @endif
                            @if (Auth::user()->hasAnyPermission(['master_reagen_kgd-list']))
                                <li class="nav-item">
                                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'konfirmasi.master_reagen_kgd') != 0) ? 'active' : '' }} " href=" {{ route('admin.konfirmasi.master_reagen_kgd.index') }} ">
                                        <i class="far fa-file"></i>{{ __('Master Reagen KGD') }}
                                    </a>
                                </li>
                            @endif
                            @if (Auth::user()->hasAnyPermission(['raegen_kgd-list']))
                                <li class="nav-item">
                                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'konfirmasi.reagen_kgd') != 0) ? 'active' : '' }} " href=" {{ route('admin.konfirmasi.reagen_kgd.index') }} ">
                                            <i class="far fa-file-alt"></i>{{ __('Reagen KGD') }}
                                    </a>
                                </li>
                            @endif
                            @if (Auth::user()->hasAnyPermission(['hasil-kgd-list']))
                            <li class="nav-item">
                                {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                <a class="nav-link {{ (strpos(Route::currentRouteName(), 'konfirmasi.hasil_kgd') != 0) ? 'active' : '' }} " href=" {{ route('admin.konfirmasi.hasil_kgd.index') }} ">
                                        <i class="fas fa-file-archive"></i>{{ __('Hasil KGD') }}
                                </a>
                            </li>
                            @endif
                        </ul>
                    </div>
                </li>
            @endif
            @if (Auth::user()->hasAnyPermission(['verifikasi_release-list', 'daftar_release-list', 'release_ps-list', 'cetak_label-list']))
                <li class="nav-item ">
                   <a class="nav-link {{ (strpos(Route::currentRouteName(), 'release') != 0) ? 'active' : '' }}" href="#navbar-release" data-toggle="collapse" role="button" aria-expanded="true" aria-controls="navbar-release">
                       <i class="fas fa-check-double {{ (strpos(Route::currentRouteName(), 'release') != 0) ? 'text-primary' : '' }}" ></i>
                       <span class="nav-link-text" >Release</span>
                   </a>
                   <div class="collapse {{ (strpos(Route::currentRouteName(), 'release') != 0) ? 'show' : '' }}" id="navbar-release">
                       <ul class="nav nav-sm flex-column">
                           @if (Auth::user()->hasAnyPermission(['verifikasi_release-list']))
                               <li class="nav-item">
                                   {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                   <a class="nav-link {{ (strpos(Route::currentRouteName(), 'release.verifikasi_release') != 0) ? 'active' : '' }} " href=" {{ route('admin.release.verifikasi_release.index') }} " >
                                       <i class="fa fa-check-square"></i>{{ __('Verifikasi Release') }}
                                   </a>
                               </li>
                           @endif
                           @if (Auth::user()->hasAnyPermission(['daftar_release-list']))
                               <li class="nav-item">
                                   {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                   <a class="nav-link {{ (strpos(Route::currentRouteName(), 'release.daftar_release') != 0) ? 'active' : '' }} " href=" {{ route('admin.release.daftar_release.index') }} " >
                                       <i class="fa fa-list"></i>{{ __('Daftar Release') }}
                                   </a>
                               </li>
                           @endif
                           @if (Auth::user()->hasAnyPermission(['release_ps-list']))
                               <li class="nav-item">
                                   {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                   <a class="nav-link {{ (strpos(Route::currentRouteName(), 'release.release_ps') != 0) ? 'active' : '' }} " href=" {{ route('admin.release.release_ps.index') }} " >
                                       <i class="fa fa-list"></i>{{ __('Release PS') }}
                                   </a>
                               </li>
                           @endif
                           @if (Auth::user()->hasAnyPermission(['cetak_label-list']))
                               <li class="nav-item">
                                   {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                   <a class="nav-link {{ (strpos(Route::currentRouteName(), 'release.cetak_label') != 0) ? 'active' : '' }} " href=" {{ route('admin.release.cetak_label.index') }} " >
                                       <i class="fa fa-list"></i>{{ __('Cetak Label') }}
                                   </a>
                               </li>
                           @endif

                       </ul>
                   </div>
               </li>
            @endif
            @if (Auth::user()->hasAnyPermission(['manajemen-konseling-list','hasil-konseling-list','parameter_konseling-list']))
                <li class="nav-item ">
                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'konseling') != 0) ? 'active' : '' }}" href="#navbar-konseling" data-toggle="collapse" role="button" aria-expanded="true" aria-controls="navbar-konseling">
                        <i class="ni ni-single-02 {{ (strpos(Route::currentRouteName(), 'konseling') != 0) ? 'text-primary' : '' }}" ></i>
                        <span class="nav-link-text" >Konseling</span>
                    </a>
                    <div class="collapse {{ (strpos(Route::currentRouteName(), 'konseling') != 0) ? 'show' : '' }}" id="navbar-konseling">
                        <ul class="nav nav-sm flex-column">
                            @if (Auth::user()->hasAnyPermission(['manajemen-konseling-list']))
                                <li class="nav-item">
                                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'konseling.manajemen_konseling') != 0) ? 'active' : '' }} " href=" {{ route('admin.konseling.manajemen_konseling.index') }} " >
                                        <i class="far fa-file"></i>{{ __('Manajemen Konseling') }}
                                    </a>
                                </li>
                            @endif
                            @if (Auth::user()->hasAnyPermission(['hasil-konseling-list']))
                                <li class="nav-item">
                                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'konseling.hasil_konseling') != 0) ? 'active' : '' }} " href=" {{ route('admin.konseling.hasil_konseling.index') }} ">
                                        <i class="far fa-file-alt"></i>{{ __('Master Hasil Konseling') }}
                                    </a>
                                </li>
                            @endif
                            @if (Auth::user()->hasAnyPermission(['parameter_konseling-list']))
                                <li class="nav-item">
                                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'konseling.parameter_konseling') != 0) ? 'active' : '' }} " href=" {{ route('admin.konseling.parameter_konseling.index') }} ">
                                            <i class="fas fa-file-archive"></i>{{ __('Master Parameter Konseling') }}
                                    </a>
                                </li>
                            @endif
                        </ul>
                    </div>
                </li>
            @endif
            @if (Auth::user()->hasAnyPermission(['cetak_barcode_kantong-list']))
                <li class="nav-item">
                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'cetak_barcode_kantong') != 0) ? 'active' : '' }} " href=" {{ route('admin.cetak_barcode_kantong.index') }} ">
                            <i class="fas fa-barcode {{ (strpos(Route::currentRouteName(), 'cetak_barcode_kantong') != 0) ? 'text-primary' : '' }}"></i> {{ __('Cetak Barcode Kantong') }}
                    </a>
                </li>
            @endif
            @if (Auth::user()->hasAnyPermission(
                [
                    'rekap_input_kantong_harian-list',
                    'rekap_transaksi_donor-list',
                    'rekap_pemindahan_kantong_aftap-list',
                    'rekap_data_imltd-list',
                    'rekap_data_kgd-list',
                    'rekap_pembuatan_komponen-list',
                    'rekap_release-list',
                    'rekap_penapisan-list',
                    ]))
                <li class="nav-item ">
                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'rekap.') != 0) ? 'active' : '' }}" href="#navbar-rekap" data-toggle="collapse" role="button" aria-expanded="true" aria-controls="navbar-rekap">
                        <i class="ni ni-single-copy-04 {{ (strpos(Route::currentRouteName(), 'rekap.') != 0) ? 'text-primary' : '' }}" ></i>
                        <span class="nav-link-text" >Rekap Data</span>
                    </a>
                    <div class="collapse {{ (strpos(Route::currentRouteName(), 'rekap.') != 0) ? 'show' : '' }}" id="navbar-rekap">
                        <ul class="nav nav-sm flex-column">
                            @if (Auth::user()->hasAnyPermission(['rekap_input_kantong_harian-list']))
                                <li class="nav-item">
                                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'rekap.rekap_input_kantong_harian') != 0) ? 'active' : '' }} " href=" {{ route('admin.rekap.rekap_input_kantong_harian.index') }} " >
                                        <i class="fas fa-book"></i>{{ __('Rekap Input Kantong Harian') }}
                                    </a>
                                </li>
                            @endif
                            {{-- @if (Auth::user()->hasAnyPermission(['rekap_transaksi_donor-list']))
                                <li class="nav-item">

                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'rekap_order.order_dropping') != 0) ? 'active' : '' }} ">
                                        <i class="fas fa-book"></i>{{ __('Rekap Transaksi Donor') }}
                                    </a>
                                </li>
                            @endif --}}
                            @if (Auth::user()->hasAnyPermission(['rekap_pemindahan_kantong_aftap-list']))
                                <li class="nav-item">
                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'rekap.rekap_aftap') != 0) ? 'active' : '' }} " href=" {{ route('admin.rekap.rekap_aftap.index') }} ">
                                        <i class="fas fa-book"></i>{{ __('Rekap Pemindahan Kantong ke Aftap (Berdasarkan Jenis)') }}
                                    </a>
                                </li>
                            @endif
                            @if (Auth::user()->hasAnyPermission(['rekap_data_imltd-list']))
                                <li class="nav-item">
                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'rekap.rekap_imltd') != 0) ? 'active' : '' }} " href=" {{ route('admin.rekap.rekap_imltd.index') }} ">
                                        <i class="fas fa-book"></i>{{ __('Rekap Data IMLTD') }}
                                    </a>
                                </li>
                            @endif
                            @if (Auth::user()->hasAnyPermission(['rekap_data_kgd-list']))
                                <li class="nav-item">
                                <a class="nav-link {{ (strpos(Route::currentRouteName(), 'rekap.rekap_kgd') != 0) ? 'active' : '' }} " href=" {{ route('admin.rekap.rekap_kgd.index') }} ">
                                        <i class="fas fa-book"></i>{{ __('Rekap Data KGD') }}
                                    </a>
                                </li>
                            @endif
                            @if (Auth::user()->hasAnyPermission(['pemusnahan_darah_lab-list']))
                                <li class="nav-item">
                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'rekap.rekap_pemusnahan_darah') != 0) ? 'active' : '' }} " href=" {{ route('admin.rekap.rekap_pemusnahan_darah.index') }} ">
                                        <i class="fas fa-book"></i>{{ __('Rekap Pemusnahan Darah') }}
                                    </a>
                                </li>
                            @endif
                            @if (Auth::user()->hasAnyPermission(['rekap_pembuatan_komponen-list']))
                                <li class="nav-item">
                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'rekap.rekap_pembuatan_komponen') != 0) ? 'active' : '' }} " href=" {{ route('admin.rekap.rekap_pembuatan_komponen.index') }} ">
                                        <i class="fas fa-book"></i>{{ __('Rekap Pembuatan Komponen') }}
                                    </a>
                                </li>
                            @endif
                            @if (Auth::user()->hasAnyPermission(['rekap_release-list']))
                                <li class="nav-item">
                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'rekap.rekap_release') != 0) ? 'active' : '' }} " href=" {{ route('admin.rekap.rekap_release.index') }} ">
                                        <i class="fas fa-book"></i>{{ __('Rekap Release') }}
                                    </a>
                                </li>
                            @endif
                            @if (Auth::user()->hasAnyPermission(['rekap_pemindahan_kantong-list']))
                            <li class="nav-item">
                                <a class="nav-link {{ (strpos(Route::currentRouteName(), 'rekap.rekap_pemindahan_kantong') != 0) ? 'active' : '' }} " href=" {{ route('admin.rekap.rekap_pemindahan_kantong.index') }} ">
                                        <i class="fas fa-book {{ (strpos(Route::currentRouteName(), 'rekap.rekap_pemindahan_kantong') != 0) ? 'text-primary' : '' }}"></i> {{ __('Rekap Pemindahan Kantong') }}
                                </a>
                            </li>
                            @endif
                            @if (Auth::user()->hasAnyPermission(['rekap_penapisan-list']))
                            <li class="nav-item">
                                <a class="nav-link {{ (strpos(Route::currentRouteName(), 'rekap.rekap_penapisan') != 0) ? 'active' : '' }} " href=" {{ route('admin.rekap.rekap_penapisan.index') }} ">
                                        <i class="fas fa-book {{ (strpos(Route::currentRouteName(), 'rekap.rekap_penapisan') != 0) ? 'text-primary' : '' }}"></i> {{ __('Rekap Penapisan') }}
                                </a>
                            </li>
                            @endif
                        </ul>
                    </div>
                </li>
            @endif
            {{-- <li class="nav-item">
                <a class="nav-link {{ (strpos(Route::currentRouteName(), 'auditrail') != 0) ? 'active' : '' }} " href=" {{ route('admin.auditrail.index') }} ">
                        <i class="ni ni-active-40 {{ (strpos(Route::currentRouteName(), 'auditrail') != 0) ? 'text-primary' : '' }}"></i> {{ __('Audit Trail') }}
                </a>
            </li> --}}
            @if (Auth::user()->hasAnyPermission(
                [
                    'login_data-list',
                    'petugas_data-list',
                    'kantong_data-list',
                    ]))
                <li class="nav-item ">
                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'auditrail') != 0) ? 'active' : '' }}" href="#navbar-auditrail" data-toggle="collapse" role="button" aria-expanded="true" aria-controls="navbar-auditrail">
                        <i class="ni ni-atom {{ (strpos(Route::currentRouteName(), 'auditrail') != 0) ? 'text-primary' : '' }}" ></i>
                        <span class="nav-link-text" >Audit Trail</span>
                    </a>
                    <div class="collapse {{ (strpos(Route::currentRouteName(), 'auditrail') != 0) ? 'show' : '' }}" id="navbar-auditrail">
                        <ul class="nav nav-sm flex-column">
                            @if (Auth::user()->hasAnyPermission(['login_data-list']))
                                <li class="nav-item">
                                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'auditrail.login_data') != 0) ? 'active' : '' }} " href=" {{ route('admin.auditrail.login_data.index') }} " >
                                        <i class="fas fa-users-cog"></i>{{ __('Login Data') }}
                                    </a>
                                </li>
                            @endif
                            @if (Auth::user()->hasAnyPermission(['petugas_data-list']))
                                <li class="nav-item">
                                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'auditrail.petugas_data') != 0) ? 'active' : '' }} " href=" {{ route('admin.auditrail.petugas_data.index') }} " >
                                        <i class="fas fa-users"></i>{{ __('Petugas') }}
                                    </a>
                                </li>
                            @endif
                            @if (Auth::user()->hasAnyPermission(['kantong_data-list']))
                                <li class="nav-item">
                                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'auditrail.kantong_data') != 0) ? 'active' : '' }} " href=" {{ route('admin.auditrail.kantong_data.index') }} " >
                                        <i class="	fas fa-shopping-bag"></i>{{ __('Kantong') }}
                                    </a>
                                </li>
                            @endif
                            {{-- @if (Auth::user()->hasAnyPermission(['alat-data-list'])) --}}
                                {{-- <li class="nav-item"> --}}
                                    {{-- (strpos(Route::currentRouteName(), 'admin.cities') == 0) ? 'active' : '' --}}
                                    {{-- <a class="nav-link {{ (strpos(Route::currentRouteName(), 'auditrail.alat_data') != 0) ? 'active' : '' }} " href=" {{ route('admin.auditrail.alat_data.index') }} " > --}}
                                        {{-- <i class="	fas fa-shopping-bag"></i>{{ __('Alat') }} --}}
                                    {{-- </a> --}}
                                {{-- </li> --}}
                            {{-- @endif --}}
                        </ul>
                    </div>
                </li>
            @endif
            {{-- @if (Auth::user()->hasAnyPermission(['panduan-list']))
                <li class="nav-item">
                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'cetak_barcode_kantong') != 0) ? 'active' : '' }} " href=" {{ route('admin.cetak_barcode_kantong.index') }} ">
                            <i class="ni ni-active-40 {{ (strpos(Route::currentRouteName(), 'cetak_barcode_kantong') != 0) ? 'text-primary' : '' }}"></i> {{ __('Panduan') }}
                    </a>
                </li>
            @endif --}}
            @if (Auth::user()->hasAnyPermission(['searching-list']))
                <li class="nav-item">
                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'pencarian.') != 0) ? 'active' : '' }} " href=" {{ route('admin.pencarian.index') }} ">
                            <i class="fab fa-searchengin {{ (strpos(Route::currentRouteName(), 'pencarian.') != 0) ? 'text-primary' : '' }}"></i> {{ __('Pencarian Advance') }}
                    </a>
                </li>
            @endif
            @if (Auth::user()->hasAnyPermission(['pencarian_normal-list']))
                <li class="nav-item">
                    <a class="nav-link {{ (strpos(Route::currentRouteName(), 'pencarian_normal') != 0) ? 'active' : '' }} " href=" {{ route('admin.pencarian_normal.index') }} ">
                            <i class="fas fa-search {{ (strpos(Route::currentRouteName(), 'pencarian_normal') != 0) ? 'text-primary' : '' }}"></i> {{ __('Pencarian') }}
                    </a>
                </li>
            @endif
            </ul>
        </div>
    </div>
</nav>
