<aside id="layout-menu" class="layout-menu menu-vertical menu bg-menu-theme">
    <div class="app-brand demo">
        <a href="{{ route('home') }}" class="app-brand-link">
            <span class="app-brand-logo demo">

                <img src="{{ setting()->icon }}" alt="">


            </span>
            <span class="app-brand-text demo menu-text fw-bold">{{ setting()->name }}</span>
        </a>

        <a href="javascript:void(0);" class="layout-menu-toggle menu-link text-large ms-auto">
            <i class="ti menu-toggle-icon d-none d-xl-block align-middle"></i>
            <i class="ti ti-x d-block d-xl-none ti-md align-middle"></i>
        </a>
    </div>

    <div class="menu-inner-shadow"></div>

    <ul class="menu-inner py-1">



        <li class="menu-item">
            <a href="{{ route('home') }}" class="menu-link">
                <i class="fa-solid fa-house"></i>
                <div>{{ __('trans.home.title') }}</div>
            </a>
        </li>

        <li class="menu-item">
            <a href="{{ route('admins.index') }}" class="menu-link">
                <i class="fa-solid fa-user-tie"></i>
                <div>{{ __('trans.admin.title') }}</div>
            </a>
        </li>

        <li class="menu-item">
            <a href="{{ route('users.index') }}" class="menu-link">
                <i class="fa-solid fa-users"></i>
                <div>{{ __('trans.user.title') }}</div>
            </a>
        </li>

        <li class="menu-item">
            <a href="{{ route('categories.index') }}" class="menu-link">
                <i class="fa-solid fa-layer-group"></i>
                <div>{{ __('trans.category.title') }}</div>
            </a>
        </li>

        {{-- <li class="menu-item">
            <a href="{{ route('courses.index') }}" class="menu-link">
                <i class="fa-solid fa-note-sticky"></i>
                <div>{{ __('trans.course.title') }}</div>
            </a>
        </li>


        <li class="menu-item">
            <a href="{{ route('chapters.index') }}" class="menu-link">
                <i class="fa-solid fa-book-open"></i>
                <div>{{ __('trans.chapter.title') }}</div>
            </a>
        </li>


        <li class="menu-item">
            <a href="{{ route('units.index') }}" class="menu-link">
                <i class="fa-solid fa-square"></i>
                <div>{{ __('trans.unit.title') }}</div>
            </a>
        </li>


        <li class="menu-item">
            <a href="{{ route('lectures.index') }}" class="menu-link">
                <i class="fa-solid fa-display"></i>
                <div>{{ __('trans.lecture.title') }}</div>
            </a>
        </li> --}}


        <li class="menu-item">
            <a href="{{ route('reviews.index') }}" class="menu-link">
                <i class="fa-solid fa-comment"></i>
                <div>{{ __('trans.review.title') }}</div>
            </a>
        </li>


        <li class="menu-item">
            <a href="{{ route('pages.index') }}" class="menu-link">
                <i class="fa-solid fa-file"></i>
                <div>{{ __('trans.page.title') }}</div>
            </a>
        </li>

        <li class="menu-item">
            <a href="{{ url('admin/banners') }}" class="menu-link">
                <i class="fa-solid fa-bookmark"></i>
                <div>{{ __('trans.banner.title') }}</div>
            </a>
        </li>

        <li class="menu-item">
            <a href="{{ route('subscriptions.index') }}" class="menu-link">
                <i class="fa-solid fa-dollar-sign"></i>
                <div>{{ __('trans.subscription.title') }}</div>
            </a>
        </li>

        <li class="menu-item">
            <a href="{{ url('admin/notification/create') }}" class="menu-link">
                <i class="fa-solid fa-bell"></i>
                <div>{{ __('trans.notification.title') }}</div>
            </a>
        </li>

        <li class="menu-item">
            <a href="{{ url('admin/settings') }}" class="menu-link">
                <i class="fa-solid fa-gear"></i>
                <div>{{ __('trans.setting.title') }}</div>
            </a>
        </li>

        @auth('admin')
            <li class="menu-item">
                <a href="javascript:void(0)" class="menu-link p-0">
                    <form action="{{ url('admin/logout') }}" method="post" class="w-100">
                        @csrf
                        <button type="submit" class="btn btn-sm btn-danger w-100">{{ __('trans.auth.logout') }}</button>
                    </form>
                </a>
            </li>
        @endauth
    </ul>
</aside>
