@extends('layout.main')

<div class="left-side-bar">
    <div class="brand-logo">
        <a>
            <img src="{{ asset('img/logo-no-background.svg') }}" alt="" class="dark-logo" />
            <img src="{{ asset('img/logo-no-background.svg') }}" alt="" class="light-logo" />
        </a>
        <div class="close-sidebar" data-toggle="left-sidebar-close">
            <i class="ion-close-round"></i>
        </div>
    </div>
    <div class="menu-block customscroll">
        <div class="sidebar-menu">
            <ul id="accordion-menu">
                <li class="dropdown">
                    <a class="dropdown-toggle">
                        <span class="micon bi bi-house"></span><span class="mtext">Home</span>
                    </a>
                    <ul class="submenu">
                        <li><a href="{{ route('dashboard.index') }}">Dashboard</a></li>
                    </ul>
                </li>
                @if (auth()->user()->role=='admin')
                <li class="dropdown">
                    <a class="dropdown-toggle">
                        <span class="micon bi bi-textarea-resize"></span><span class="mtext">Data Master</span>
                    </a>
                    <ul class="submenu">
                        <li><a href="{{ route('ekstrakurikuler.index') }}">Data Ekstrakurikuler</a></li>
                        <li><a href="{{ route('kriteria.index') }}">Data Kriteria</a></li>
                        <li><a href="{{ route('subkriteria.index') }}">Data Sub Kriteria</a></li>
                        <li><a href="{{ route('user.index') }}">Data User</a></li>
                        <li><a href="{{ route('riwayat.hasil') }}">Hasil Riwayat</a></li>
                    </ul>
                </li>
                @endif
                @if (auth()->user()->role=='siswa')
                <li class="dropdown">
                    <a href="javascript:;" class="dropdown-toggle">
                        <span class="micon bi bi-table"></span><span class="mtext">Perhitungan</span>
                    </a>
                    <ul class="submenu">
                        <li><a href="{{ route('penilaian.input-nilai') }}">Input Penilaian</a></li>
                    </ul>
                </li>
                <li class="dropdown">
                    <a class="dropdown-toggle">
                        <span class="micon bi bi-table"></span><span class="mtext">Data Riwayat</span>
                    </a>
                    <ul class="submenu">
                        <li><a href="{{ route('riwayat.hasil') }}">Hasil Riwayat</a></li>
                        {{-- <li><a href="">Nilai utility</a></li>
                        <li><a href="">Nilai Akhir</a></li>
                        <li><a href="">Hasil Perangkingan</a></li> --}}
                    </ul>
                </li>
                @endif
            </ul>
        </div>
    </div>
    </aside>
</div>
