<?php 
    use App\Http\Traits\Helper;
?>
<style>
    .cus-logout {
            position: absolute;
            bottom: 0;
        }

            .cus-logout .nav-link, .cus-logout .nav-link i {
                color: rgba(255, 0, 0, 1) !important;
            }

        hr.sidebar-divider {
            margin-right: 0 !important;
            margin-left: 0 !important;
        }

        .demo-chart {
            height: 18rem;
            width: 18rem;
        }

        .chart-kotak {
            height: 25rem !important;
        }

        .download-btn {
            width: 4rem;
            height: 2rem;
            padding: 2px !important;
        }

        .nav-tabs.custom-tabs {
            width: max-content;
            /* padding-left: 1rem;
            padding-right: 1rem; */
            background-color: #fff;
            border-radius: 2rem;
        }

        .nav-tabs.custom-tabs .nav-item, .nav-tabs.custom-tabs .nav-item .nav-link {
            border-radius: 2rem;
            color: #000;
        }

        .nav-tabs.custom-tabs .nav-item .nav-link.active {
            border: 0;
            background-color: aliceblue;
            color: #395bcf;
        }

        .sidebar hr.sidebar-divider {
            margin: 0;
        }

        .span-nav {
            color: #cac5c2;
            font-size: .85rem;
            margin-top: 1rem;
            margin-left: 1.2rem;
        }
        .toggled > .nav-item.p-3 {
            padding: 0 !important;
        }
        .toggled > .span-nav {
            text-align: center;
            margin-left: 0;
        }
        .toggled > .nav-item > .nav-link > .fas.mr-2 {
            margin-right: 0 !important;
        }
        @@media screen and (min-width: 768px) {
            .sidebar.toggled
            {
                display: none;
            }
        }
</style>
<ul class="navbar-nav bg-white sidebar sidebar-dark accordion" id="accordionSidebar">

    <!-- Sidebar - Brand -->
    <a class="sidebar-brand d-flex align-items-center justify-content-center" href="{{url('dashboard')}}">        
        <div class="sidebar-brand-text">
            <img src="{{asset('assets/img/logo_deira.png')}}" style="max-width:200px;" alt="">
        </div>
    </a>
 
    <!-- Divider -->
    <hr class="sidebar-divider my-0">

    <!-- Nav Item - Dashboard -->
    @if(Auth::user()->id_level != 1)
    <li class="nav-item p-3">
        <a class="nav-link" href="{{url('dashboard')}}">
            <i class="fas fa-fw fa-tachometer-alt mr-2"></i>
            <span>Dashboard</span>
        </a>
    </li>
    <hr class="sidebar-divider">
    <span class="span-nav">Master</span>
    @if(Auth::user()->id_level != 4)
        <li class="nav-item p-3">
            <a class="nav-link" href="{{url('brand')}}">
                <i class="fas fa-fw fa-tags mr-2"></i>
                <span>Brand</span>
            </a>
        </li>
    @endif
    <li class="nav-item p-3">
        <a class="nav-link" href="{{url('site')}}">
            <i class="fas fa-fw fa-store mr-2"></i>
            <span>Site</span>
        </a>
    </li>
    <li class="nav-item p-3">
        <a class="nav-link" href="{{url('device')}}">
            <i class="fas fa-fw fa-camera mr-2"></i>
            <span>Device</span>
        </a>
    </li>
    @else
    <span class="span-nav">Master</span>
    <li class="nav-item p-3">
        <a class="nav-link" href="{{url('bussiness')}}">
            <i class="fas fa-fw fa-store mr-2"></i>
            <span>Bussiness</span>
        </a>
    </li>
    @endif
    <hr class="sidebar-divider">
    @if(Auth::user()->id_level != 4 && Auth::user()->id_level != 1)
    <span class="span-nav">Konfigurasi</span>
    <li class="nav-item p-3">
        <a class="nav-link" href="{{url('user')}}">
            <i class="fas fa-fw fa-users mr-2"></i>
            <span>User</span>
        </a>
    </li>
    <hr class="sidebar-divider">
    @endif
    
    <!-- Divider -->
    
    <!-- <hr class="sidebar-divider"> -->
    <!-- <li class="nav-item">
        <a class="nav-link" href="{{url('semua-data-report')}}">
            <i class="far fa-list-alt"></i>
            <span>Report Semua Data</span></a>
    </li>

    
    <li class="nav-item">
        <a class="nav-link" href="{{url('jenis-kerusakan-report')}}">
            <i class="fas fa-poll"></i>
            <span>Report Total Jenis Kerusakan</span></a>
    </li> -->
    <!-- Divider -->
    {{-- <hr class="sidebar-divider d-none d-md-block">

    <!-- Sidebar Toggler (Sidebar) -->
    <div class="text-center d-none d-md-inline">
        <button class="rounded-circle border-0" id="sidebarToggle"></button>
    </div> --}}

    <div class="cus-logout">
        <li class="nav-item">
            <a class="nav-link" href="#" data-toggle="modal" data-target="#logoutModal">
                <i ><span class="iconify" data-icon="solar:logout-3-outline"></span></i>
                <span>Logout</span></a>
        </li>
    </div>
    <!-- Sidebar Message -->    

</ul>

