@if (Auth::guard('admin')->check() == true)
@php
$ticket_waiting = \App\Models\Ticket::where('is_read_admin', '0')->count();
@endphp
<li class="menu-title">Menu</li>
<li>
    <a href="{{ url('admin/') }}" class="waves-effect">
        <i class="mdi mdi-store"></i>
        <span>Dasbor</span>
    </a>
</li>
<li>
    <a href="{{ url('admin/admin/list') }}" class="waves-effect">
        <i class="mdi mdi-account-key"></i>
        <span>Admin</span>
    </a>
</li>
<li>
    <a href="{{ url('admin/user/list') }}" class="waves-effect">
        <i class="mdi mdi-account-group"></i>
        <span>Pengguna</span>
    </a>
</li>
<li>
    <a href="javascript: void(0);" class="has-arrow waves-effect"><i class="mdi mdi-sitemap"></i> <span>Sitemap</span></a>
    <ul class="sub-menu" aria-expanded="true">
        <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>
    <a href="javascript: void(0);" class="has-arrow waves-effect"><i class="mdi mdi-tag-multiple"></i> <span>Layanan</span></a>
    <ul class="sub-menu" 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>
    <a href="javascript: void(0);" class="has-arrow waves-effect"><i class="mdi mdi-cart"></i> <span>Pesanan</span></a>
    <ul class="sub-menu" aria-expanded="true">
        <li><a href="{{ url('admin/order/list') }}">Pesanan</a></li>
        <li><a href="{{ url('admin/order/report') }}">Laporan</a></li>
    </ul>
</li>
<li>
    <a href="{{ url('admin/order/refill/list') }}" class="waves-effect">
        <i class='mdi mdi-recycle'></i>
        <span>Refill</span>
    </a>
</li>
<li>
    <a href="javascript: void(0);" class="has-arrow waves-effect"><i class="mdi mdi-wallet"></i> <span>Deposit</span></a>
    <ul class="sub-menu" aria-expanded="true">
        <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>
    <a href="{{ url('admin/ticket/list') }}" class="waves-effect">
        <i class="mdi mdi-ticket-account"></i>
        @if ($ticket_waiting > 0)
        <span class="badge badge-pill badge-warning float-right">{{ $ticket_waiting }}</span>
        @endif
        <span>Tiket</span>
    </a>
</li>
<li>
    <a href="javascript: void(0);" class="has-arrow waves-effect"><i class="mdi mdi-file"></i> <span>Log</span></a>
    <ul class="sub-menu" aria-expanded="true">
        <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>
    <a href="javascript: void(0);" class="has-arrow waves-effect"><i class="mdi mdi-cogs"></i> <span>Pengaturan</span></a>
    <ul class="sub-menu" aria-expanded="true">
        @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