@if (Auth::guard('admin')->check() == true)
@php
$ticket_waiting = \App\Models\Ticket::where('is_read_admin', '0')->count();
@endphp
<li class="side-nav-title side-nav-item">Menu</li>
<li class="side-nav-item">
    <a href="{{ url('admin/') }}" class="side-nav-link">
        <i class="fa fa-home"></i>
        <span>Dasbor</span>
    </a>
</li>
<li class="side-nav-item">
    <a href="{{ url('admin/admin/list') }}" class="side-nav-link">
        <i class="fa fa-user-secret"></i>
        <span>Admin</span>
    </a>
</li>
<li class="side-nav-item">
    <a href="{{ url('admin/user/list') }}" class="side-nav-link">
        <i class="fa fa-users"></i>
        <span>Pengguna</span>
    </a>
</li>
<li class="side-nav-item">
    <a href="javascript: void(0);" class="side-nav-link">
        <i class="fa fa-file"></i>
        <span>Halaman</span>
        <span class="menu-arrow"></span>
    </a>
    <ul class="side-nav-second-level" aria-expanded="false">
        <li><a href="{{ url('admin/page/hof') }}">Top Terbaik</a></li>
        <li><a href="{{ url('admin/page/ovo/login') }}">Token OVO</a></li>
        <li><a href="{{ url('admin/page/gopay/login') }}">Token GOPAY</a></li>
    </ul>
</li>
<li class="side-nav-item">
    <a href="javascript: void(0);" class="side-nav-link">
        <i class="fa fa-tags"></i>
        <span>Layanan</span>
        <span class="menu-arrow"></span>
    </a>
    <ul class="side-nav-second-level" aria-expanded="false">
        <li><a href="{{ url('admin/service/provider/list') }}">Penyedia</a></li>
        <li><a href="{{ url('admin/service/category/list') }}">Kategori</a></li>
        <li><a href="{{ url('admin/service/list') }}">Layanan</a></li>
        <li><a href="{{ url('admin/service/custom_price/list') }}">Harga Khusus</a></li>
        <li><a href="{{ url('admin/service/log/list') }}">Log Gagal</a></li>
    </ul>
</li>
<li class="side-nav-item">
    <a href="javascript: void(0);" class="side-nav-link">
        <i class="fa fa-shopping-cart"></i>
        <span>Pemesanan</span>
        <span class="menu-arrow"></span>
    </a>
    <ul class="side-nav-second-level" aria-expanded="false">
        <li><a href="{{ url('admin/order/list') }}">Pesanan</a></li>
        <li><a href="{{ url('admin/order/refill/list') }}">Riwayat Refill</a></li>
        <li><a href="{{ url('admin/order/report') }}">Laporan</a></li>
    </ul>
</li>
<li class="side-nav-item">
    <a href="javascript: void(0);" class="side-nav-link">
        <i class="fa fa-money-check-alt"></i>
        <span>Deposit</span>
        <span class="menu-arrow"></span>
    </a>
    <ul class="side-nav-second-level" aria-expanded="false">
        <li><a href="{{ url('admin/deposit/method/list') }}">Metode</a></li>
        <li><a href="{{ url('admin/deposit/list') }}">Deposit</a></li>
        <li><a href="{{ url('admin/deposit/report') }}">Laporan</a></li>
    </ul>
</li>
<li class="side-nav-item">
    <a href="{{ url('admin/ticket/list') }}" class="side-nav-link">
        <i class="fa fa-envelope"></i>
        @if ($ticket_waiting > 0)
        <span class="badge badge-pill badge-warning float-right">{{ $ticket_waiting }}</span>
        @endif
        <span>Tiket</span>
    </a>
</li>
<li class="side-nav-item">
    <a href="javascript: void(0);" class="side-nav-link">
        <i class="fa fa-file-alt"></i>
        <span>Log</span>
        <span class="menu-arrow"></span>
    </a>
    <ul class="side-nav-second-level" aria-expanded="false">
        <li><a href="{{ url('admin/log/user_register') }}">Pendaftaran</a></li>
        <li><a href="{{ url('admin/log/user_login') }}">Pengguna Masuk</a></li>
        <li><a href="{{ url('admin/log/user_balance') }}">Saldo Pengguna</a></li>
        <li><a href="{{ url('admin/log/admin_login') }}">Admin Masuk</a></li>
        @if (Auth::guard('admin')->user()->level == 'Developer')
        <li><a href="{{ url('admin/log/bank_mutation') }}">Mutasi Bank</a></li>
        @endif
    </ul>
</li>
<li class="side-nav-item">
    <a href="javascript: void(0);" class="side-nav-link">
        <i class="fa fa-cogs"></i>
        <span>Pengaturan</span>
        <span class="menu-arrow"></span>
    </a>
    <ul class="side-nav-second-level" aria-expanded="false">
        @if (Auth::guard('admin')->user()->level == 'Developer')
        <li><a href="{{ url('admin/settings/bank_account/list') }}">Akun Bank</a></li>
        @endif
        <li><a href="{{ url('admin/settings/website_information/list') }}">Informasi</a></li>
        <li><a href="{{ url('admin/settings/website_page/list') }}">Halaman</a></li>
        <li><a href="{{ url('admin/settings/website_configs') }}">Konfigurasi Website</a></li>
    </ul>
</li>
@endif