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

          
    <!-- MANAGER -->
            @if(Auth::user()->role == 'manager')
            <div class="logo">
                <a href="{{route('manager')}}" class="simple-text" style="color:white">
                    Selamat Datang {{Auth::user()->username}}
                </a>
            </div>
<hr size="12px" style="margin-top: -4px">

            <ul class="nav">
            <li class="{{Request::segment(2) == '' ? 'active' : ''}}" >
                <a href="{{route('manager')}}" style="color: black">
                    <i class="fa fa-home"></i>
                    <p style="color:white">Dashboard</p>
                </a>
            </li>
           
                     <div class="dropdown" >
                <button class="btn-group btn-group-justified " style="width: 260px; height: 38px; font-size: 20px; font-right: 100px;" type="button" data-toggle="dropdown" data-active-color="black">
                <span class="fa fa-suitcase" style="color:   black; margin-right: 180px "><a style="margin-left: 25px;">Laporan</a></span></button>
                <ul class="dropdown-menu" style="background-image:-webkit-linear-gradient(top, #FFFFFF,#FFFFFF); width: 500px">
                    <li class="{{Request::segment(2) == 'seeverifikasiKeuangan' ? 'active' : ''}}">
                        <a href="{{route('seeverifikasiKeuangan.index')}}" style="color: black">
                            <i class="fa fa-money"></i>
                            <p>Laporan Keuangan</p>
                        </a>
                     </li>


                      <li class="{{Request::segment(2) == 'seeverifikasiPengunjung' ? 'active' : ''}}">
                        <a href="{{route('seeverifikasiPengunjung.index')}}" style="color: black">
                            <i class="fa fa-child"></i>
                            <p>Laporan Pengunjung</p>
                        </a>
                     </li>


                      <li class="{{Request::segment(2) == 'seeverifikasiMasalah' ? 'active' : ''}}">
                        <a href="{{route('seeverifikasiMasalah.index')}}" style="color: black">
                            <i class="fa fa-asl-interpreting"></i>
                            <p>Laporan Masalah</p>
                        </a>
                     </li>
                 
              </ul>
            </div> 


        <br>           




                     <div class="dropdown" >
                <button class="btn-group btn-group-justified " style="width: 260px; height: 38px; font-size: 20px; font-right: 100px;" type="button" data-toggle="dropdown" data-active-color="black">
                <span class="fa fa-file-text " style="color:   black; margin-right: 180px "><a style="margin-left: 25px;">Verifikasi</a></span></button>
                <ul class="dropdown-menu" style="background-image:-webkit-linear-gradient(top, #FFFFFF,#FFFFFF); width: 500px">
                    <li class="{{Request::segment(2) == 'verifikasiKeuanganManager' ? 'active' : ''}}">
                        <a href="{{route('verifikasiKeuanganManager.index')}}" style="color: black">
                            <i class="fa fa-money"></i>
                            <p>Laporan Keuangan</p>
                        </a>
                     </li>


                      <li class="{{Request::segment(2) == 'verifikasiPengunjungManager' ? 'active' : ''}}">
                        <a href="{{route('verifikasiPengunjungManager.index')}}" style="color: black">
                            <i class="fa fa-child"></i>
                            <p>Laporan Pengunjung</p>
                        </a>
                     </li>


                      <li class="{{Request::segment(2) == 'verifikasiMasalahManager' ? 'active' : ''}}">
                        <a href="{{route('verifikasiMasalahManager.index')}}" style="color: black">
                            <i class="fa fa-asl-interpreting"></i>
                            <p>Laporan Masalah</p>
                        </a>
                     </li>
                 
              </ul>
            </div> 


        <br>           







             <div class="dropdown" >
                <button class="btn-group btn-group-justified " style="width: 260px; height: 38px; font-size: 20px; font-right: 100px;" type="button" data-toggle="dropdown" data-active-color="black">
                <span class="fa fa-user-plus" style="color:   black; margin-right: 180px "><a style="margin-left: 20px">Pegawai</a></span></button>
                <ul class="dropdown-menu" style="background-image:-webkit-linear-gradient(top, #FFFFFF,#FFFFFF); width: 500px">
                    <li class="{{Request::segment(2) == 'receptionist' ? 'active' : ''}}">
                                <a href="{{route('receptionist.index')}}" style="color: black">
                                    <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')}}" style="color: black">
                                    <i class="fa fa-drivers-license-o"></i>
                                    <p>Tambahkan Administrasi</p>
                                </a>
                    </li>

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

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

</ul>
         




























    <!-- PEGAWAI -->
            @elseif(Auth::user()->role == 'pegawai')
            <div class="logo">
                <a href="{{route('pegawai')}}" class="simple-text" style="color:white">
                    Selamat Datang {{Auth::user()->pegawai->nama_pegawai}}
                </a>
            </div>
<hr size="12px" style="margin-top: -4px">
            <ul class="nav">
            <li class="{{Request::segment(2) == '' ? 'active' : ''}}">
                <a href="{{route('pegawai')}}" style="color:black">
                    <i class="fa fa-home" ></i>
                    <p style="color:white">Dashboard</p>
                </a>
            </li>
            
             <li class="{{Request::segment(2) == 'laporanPegawai' ? 'active' : ''}}">
                <a href="{{route('laporanPegawai.index')}}" style="color:black">
                    <i class="fa fa-money" ></i>
                    <p style="color:white">Laporan Keuangan</p>
                </a>
            </li>
</ul>













    <!-- RECEPTIONIST -->
           @elseif(Auth::user()->role == 'receptionist')
            <div class="logo">
                <a href="{{route('receptionist')}}" class="simple-text" style="color:white">
                    Selamat Datang {{Auth::user()->receptionist->nama_receptionist}}
                </a>
            </div>
<hr size="12px" style="margin-top: -4px">
            <ul class="nav">
            <li class="{{Request::segment(2) == '' ? 'active' : ''}}">
                <a href="{{route('receptionist')}}"  style="color: black">
                    <i class="fa fa-home"></i>
                    <p style="color: white">Dashboard</p>
                </a>
            </li>

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

            <li class="{{Request::segment(2) == 'pembayaran' ? 'active' : ''}}">
                <a href="{{route('pembayaran.index')}}" style="color: black">
                    <i class="fa fa-cc-visa "></i>
                    <p style="color: white">Transaksi Pengunjung</p>
                </a>
            </li>
            
           

            <li class="{{Request::segment(2) == 'laporanKeuangan' ? 'active' : ''}}">
                <a href="{{route('laporanKeuangan.index')}}" style="color: black">
                    <i class="fa fa-money"></i>
                    <p style="color: white">Keuangan</p>
                </a>
            </li>

            <li class="{{Request::segment(2) == 'laporanPengunjung' ? 'active' : ''}}">
                <a href="{{route('laporanPengunjung.index')}}" style="color: black">
                    <i class="fa fa-blind"></i>
                    <p style="color: white">Pengunjung</p>
                </a>
            </li>

            



            <div class="dropdown" >
                <button class="btn-group btn-group-justified " style="width: 260px; height: 38px; font-size: 20px; font-right: 100px;" type="button" data-toggle="dropdown" data-active-color="black">
                <span class="fa fa-clone" style="color:   black; margin-right: 180px "><a style="margin-left: 20px;">Laporan</a></span></button>
                <ul class="dropdown-menu" style="background-image:-webkit-linear-gradient(top, #FFFFFF,#FFFFFF); width: 500px">
  
             <li class="{{Request::segment(2) == 'upload' ? 'active' : ''}}">
                        <a href="{{route('upload.index')}} " style="color: black">
                            <i class="fa fa-asl-interpreting"></i>
                                <p>Laporan Masalah</p>
                        </a>
                    </li>

                     <li class="{{Request::segment(2) == 'laporanTransaksiReceptionist' ? 'active' : ''}}">
                        <a href="{{route('laporanTransaksiReceptionist.index')}}" style="color: black">
                            <i class="fa fa-child"></i>
                            <p>Laporan Pengunjung</p>
                        </a>
                    </li>

                     <li class="{{Request::segment(2) == 'laporanKeuanganReceptionist' ? 'active' : ''}}">
                        <a href="{{route('laporanKeuanganReceptionist.index')}}" style="color: black">
                            <i class="fa fa-money"></i>
                            <p>Laporan Keuangan</p>
                        </a>
                    </li>
            

                 
              </ul>
            </div> 












 <!-- Administrasi -->
           @elseif(Auth::user()->role == 'administrasi')
             <div class="logo">
                <a href="{{route('administrasi')}}" class="simple-text" style="color:white">
                    Selamat Datang {{Auth::user()->administrasi->nama_administrasi}}
                </a>
            </div>
<hr size="12px" style="margin-top: -4px">
            <ul class="nav">
            <li class="{{Request::segment(2) == '' ? 'active' : ''}}">
                <a href="{{route('administrasi')}}" style="color:black">
                    <i class="fa fa-home"></i>
                    <p style="color:white">Dashboard</p>
                </a>
            </li>
 
           





             <div class="dropdown" >
                <button class="btn-group btn-group-justified " style="width: 260px; height: 38px; font-size: 20px; font-right: 100px;" type="button" data-toggle="dropdown" data-active-color="black">
                <span class="fa fa-address-card" style="color:   black; margin-right: 180px "><a style="margin-left: 25px;">Receptionist</a></span></button>
                <ul class="dropdown-menu" style="background-image:-webkit-linear-gradient(top, #FFFFFF,#FFFFFF); width: 500px">
 
             <li class="{{Request::segment(2) == 'seeupload' ? 'active' : ''}}">
                <a href="{{route('seeupload.index')}}" style="color: black">
                    <i class="fa fa-asl-interpreting "></i>
                    <p>Laporan Masalah</p>
                </a>
            </li>
            
            <li class="{{Request::segment(2) == 'seeuploadReceptionistTransaksi' ? 'active' : ''}}">
                <a href="{{route('seeuploadReceptionistTransaksi.index')}}" style="color: black">
                    <i class="fa fa-child "></i>
                    <p>Laporan Pengunjung</p>
                </a>
            </li>

            <li class="{{Request::segment(2) == 'seeuploadReceptionistKeuangan' ? 'active' : ''}}">
                <a href="{{route('seeuploadReceptionistKeuangan.index')}}" style="color: black">
                    <i class="fa fa-money "></i>
                    <p>Laporan Keuangan</p>
                </a>
            </li>
            

                 
              </ul>
            </div> 

            <br>

             <div class="dropdown" >
                <button class="btn-group btn-group-justified " style="width: 260px; height: 38px; font-size: 20px; font-right: 100px;" type="button" data-toggle="dropdown" data-active-color="black">
                <span class="fa fa-address-card" style="color:   black; margin-right: 180px "><a style="margin-left: 25px;">Pegawai</a></span></button>
                <ul class="dropdown-menu" style="background-image:-webkit-linear-gradient(top, #FFFFFF,#FFFFFF); width: 500px">
 
              <li class="{{Request::segment(2) == 'seeuploadPegawai' ? 'active' : ''}}">
                <a href="{{route('seeuploadPegawai.index')}}" style="color: black">
                    <i class="fa fa-money "></i>
                    <p>Laporan Keuangan</p>
                </a>
            </li>
            

                 
              </ul>
            </div> 

            <br>

                        <div class="dropdown" >
                <button class="btn-group btn-group-justified " style="width: 260px; height: 38px; font-size: 20px; font-right: 100px;" type="button" data-toggle="dropdown" data-active-color="black">
                <span class="fa fa-paper-plane" style="color:   black; margin-right: 180px "><a style="margin-left: 25px;">Report</a></span></button>
                <ul class="dropdown-menu" style="background-image:-webkit-linear-gradient(top, #FFFFFF,#FFFFFF); width: 500px">
                    <li class="{{Request::segment(2) == 'verifikasi' ? 'active' : ''}}">
                        <a href="{{route('verifikasi.index')}}" style="color: black">
                            <i class="fa fa-money"></i>
                            <p>Laporan Keuangan</p>
                        </a>
                     </li>


                      <li class="{{Request::segment(2) == 'verifikasiPengunjung' ? 'active' : ''}}">
                        <a href="{{route('verifikasiPengunjung.index')}}" style="color: black">
                            <i class="fa fa-child"></i>
                            <p>Laporan Pengunjung</p>
                        </a>
                     </li>


                      <li class="{{Request::segment(2) == 'verifikasiMasalah' ? 'active' : ''}}">
                        <a href="{{route('verifikasiMasalah.index')}}" style="color: black">
                            <i class="fa fa-asl-interpreting"></i>
                            <p>Laporan Masalah</p>
                        </a>
                     </li>
                 
              </ul>
            </div> 










            <!-- GM -->
           @elseif(Auth::user()->role == 'gmaster')
             <div class="logo">
                <a href="{{route('gmaster')}}" class="simple-text" style="color: white">
                    Selamat Datang {{Auth::user()->gmaster->nama_gmaster}}
                </a>
            </div>
            <hr size="12px" style="margin-top: -4px">
            <ul class="nav">
            <li class="{{Request::segment(2) == '' ? 'active' : ''}}">
                <a href="{{route('gmaster')}}" style="color:black">
                    <i class="fa fa-home"></i>
                    <p style="color:white">Dashboard</p>
                </a>
            </li>
 

                 <div class="dropdown" >
                <button class="btn-group btn-group-justified " style="width: 260px; height: 38px; font-size: 20px; font-right: 100px;" type="button" data-toggle="dropdown" data-active-color="black">
                <span class="fa fa-paper-plane" style="color:   black; margin-right: 180px "><a style="margin-left: 25px ;">Laporan</a></span></button>
                <ul class="dropdown-menu" style="background-image:-webkit-linear-gradient(top, #FFFFFF,#FFFFFF); width: 500px">
                    <li class="{{Request::segment(2) == 'seeReportKeuanganManager' ? 'active' : ''}}">
                        <a href="{{route('seeReportKeuanganManager.index')}}" style="color: black">
                            <i class="fa fa-money"></i>
                            <p>Laporan Keuangan</p>
                        </a>
                     </li>


                      <li class="{{Request::segment(2) == 'seeReportPengunjungManager' ? 'active' : ''}}">
                        <a href="{{route('seeReportPengunjungManager.index')}}" style="color: black">
                            <i class="fa fa-child"></i>
                            <p>Laporan Pengunjung</p>
                        </a>
                     </li>


                      <li class="{{Request::segment(2) == 'seeReportMasalahManager' ? 'active' : ''}}">
                        <a href="{{route('seeReportMasalahManager.index')}}" style="color: black">
                            <i class="fa fa-asl-interpreting"></i>
                            <p>Laporan Masalah</p>
                        </a>
                     </li>
                 
              </ul>
            </div> 
            
        







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



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