<button type="button" class="sidebar-close">
    <x-iconsax-lin-add class="close-icon text-white" width="40px" height="40px"/>
</button>

<div class="main-sidebar">
    <aside id="sidebar-wrapper">
        <div class="sidebar-brand">
            <a href="/">
                @if(!empty($generalSettings['site_name']))
                    {{ strtoupper($generalSettings['site_name']) }}
                @else
                    Platform Title
                @endif
            </a>
        </div>
        <div class="sidebar-brand sidebar-brand-sm">
            <a href="/">
                @if(!empty($generalSettings['site_name']))
                    {{ strtoupper(substr($generalSettings['site_name'],0,2)) }}
                @endif
            </a>
        </div>

        <ul class="sidebar-menu">
            @can('admin_general_dashboard_show')
                <li class="{{ (request()->is(getAdminPanelUrl('/'))) ? 'active' : '' }}">
                    <a href="{{ getAdminPanelUrl('') }}" class="nav-link">
                    <x-iconsax-bul-chart-square class="icons" width="24px" height="24px"/>
                        <span>{{ trans('admin/main.dashboard') }}</span>
                    </a>
                </li>
            @endcan

            @can('admin_marketing_dashboard')
                <li class="{{ (request()->is(getAdminPanelUrl('/marketing', false))) ? 'active' : '' }}">
                    <a href="{{ getAdminPanelUrl('/marketing') }}" class="nav-link">
                    <x-iconsax-bul-graph class="icons" width="24px" height="24px"/>
                        <span>{{ trans('admin/main.marketing_dashboard') }}</span>
                    </a>
                </li>
            @endcan

            {{-- Education --}}
            @include('admin.includes.sidebar.education')

            {{-- Appointments --}}
            @include('admin.includes.sidebar.appointments')

            {{-- Users --}}
            @include('admin.includes.sidebar.users')

            {{-- Forum --}}
            @include('admin.includes.sidebar.forum')

            {{-- Live Chat --}}
            @include('admin.includes.sidebar.live_chat')

            {{-- CRM --}}
            @include('admin.includes.sidebar.crm')

            {{-- Content --}}
            @include('admin.includes.sidebar.content')

            {{-- Financial --}}
            @include('admin.includes.sidebar.financial')

            {{-- Marketing --}}
            @include('admin.includes.sidebar.marketing')

            {{-- Appearance --}}
            @include('admin.includes.sidebar.appearance')

            {{-- Settings --}}
            @include('admin.includes.sidebar.settings')

            <li>
                <a class="nav-link" href="{{ getAdminPanelUrl() }}/logout">
                <x-iconsax-bul-logout class="icons text-danger" width="24px" height="24px"/>
                <span class="text-danger">{{ trans('admin/main.logout') }}</span>
                </a>
            </li>

        </ul>
        <br><br><br>
    </aside>
</div>
