@if(Auth::check())
<div class="sidebar" data-background-color="white" data-active-color="danger">
    <div class="sidebar-wrapper">

          
    <!-- MANAGER -->
            @if(Auth::user()->role == 'manager')
            <div class="logo">
                <a href="{{route('manager')}}" class="simple-text">
                    Selamat Datang {{Auth::user()->username}}
                </a>
            </div>

            <ul class="nav">
            <li class="{{Request::segment(2) == '' ? 'active' : ''}}">
                <a href="{{route('manager')}}">
                    <i class="fa fa-home"></i>
                    <p>Dashboard</p>
                </a>
            </li>
            
           <li class="{{Request::segment(2) == 'seeupload' ? 'active' : ''}}">
                <a href="{{route('seeupload.index')}}">
                    <i class="fa fa-list-alt"></i>
                    <p>Laporan</p>
                </a>
            </li>

            <li class="{{Request::segment(2) == 'pegawai' ? 'active' : ''}}">
                <a href="{{route('pegawai.index')}}">
                    <i class="fa fa-drivers-license-o"></i>
                    <p>Tambahkan pegawai</p>
                </a>
            </li>

            <li class="{{Request::segment(2) == 'receptionist' ? 'active' : ''}}">
                <a href="{{route('receptionist.index')}}">
                    <i class="fa fa-drivers-license-o"></i>
                    <p>Tambahkan Receptionist</p>
                </a>
            </li>

             <li class="{{Request::segment(2) == 'administrasi' ? 'active' : ''}}">
                <a href="{{route('administrasi.index')}}">
                    <i class="fa fa-drivers-license-o"></i>
                    <p>Tambahkan Administrasi</p>
                </a>
            </li>

    <!-- PEGAWAI -->
            @elseif(Auth::user()->role == 'pegawai')
            <div class="logo">
                <a href="{{route('pegawai')}}" class="simple-text">
                    Selamat Datang {{Auth::user()->pegawai->nama_pegawai}}
                </a>
            </div>

            <ul class="nav">
            <li class="{{Request::segment(2) == '' ? 'active' : ''}}">
                <a href="{{route('pegawai')}}">
                    <i class="fa fa-home"></i>
                    <p>Dashboard</p>
                </a>
            </li>
            
            <li class="{{Request::segment(2) == 'laporanPegawai' ? 'active' : ''}}">
                <a href="{{route('laporanPegawai.index')}}">
                    <i class="fa fa-clipboard"></i>
                    <p>Laporan</p>
                </a>
            </li>


    <!-- RECEPTIONIST -->
           @elseif(Auth::user()->role == 'receptionist')
            <div class="logo">
                <a href="{{route('receptionist')}}" class="simple-text">
                    Selamat Datang {{Auth::user()->receptionist->nama_receptionist}}
                </a>
            </div>

            <ul class="nav">
            <li class="{{Request::segment(2) == '' ? 'active' : ''}}">
                <a href="{{route('receptionist')}}">
                    <i class="fa fa-home"></i>
                    <p>Dashboard</p>
                </a>
            </li>

            <li class="{{Request::segment(2) == 'kamar' ? 'active' : ''}}">
                <a href="{{route('kamar.index')}}">
                    <i class="fa fa-hospital-o "></i>
                    <p>Daftar Kamar</p>
                </a>
            </li>

            <li class="{{Request::segment(2) == 'pembayaran' ? 'active' : ''}}">
                <a href="{{route('pembayaran.index')}}">
                    <i class="fa fa-money "></i>
                    <p>Pembayaran</p>
                </a>
            </li>

            <li class="{{Request::segment(2) == 'pengunjung' ? 'active' : ''}}">
                <a href="{{route('pengunjung.index')}}">
                    <i class="fa fa-bed "></i>
                    <p>Daftar Pengunjung</p>
                </a>
            </li>
            
            <li class="{{Request::segment(2) == 'upload' ? 'active' : ''}}">
                <a href="{{route('upload.index')}}">
                    <i class="fa fa-clipboard"></i>
                    <p>Laporan</p>
                </a>
            </li>

 <!-- RECEPTIONIST -->
           @elseif(Auth::user()->role == 'administrasi')
             <div class="logo">
                <a href="{{route('administrasi')}}" class="simple-text">
                    Selamat Datang {{Auth::user()->administrasi->nama_administrasi}}
                </a>
            </div>

            <ul class="nav">
            <li class="{{Request::segment(2) == '' ? 'active' : ''}}">
                <a href="{{route('administrasi')}}">
                    <i class="fa fa-home"></i>
                    <p>Dashboard</p>
                </a>
            </li>

          <li class="{{Request::segment(2) == 'seeupload' ? 'active' : ''}}">
                <a href="{{route('seeupload.index')}}">
                    <i class="fa fa-bed "></i>
                    <p>Laporan Receptionist</p>
                </a>
            </li>
            
            <li class="{{Request::segment(2) == 'seeuploadPegawai' ? 'active' : ''}}">
                <a href="{{route('seeuploadPegawai.index')}}">
                    <i class="fa fa-bed "></i>
                    <p>Laporan Pegawai</p>
                </a>
            </li>
            
        







            @else(Auth::user()->role == 'dosen')



            
            
            @endif
        </ul>
    </div>
</div>
@endif