<aside class="dash-sidebar">
    <div class="dash-sidebar-brand">
        <a href="{{ route('admin.dashboard') }}">@if(setting("site_logo"))<img src="{{ asset("uploads/settings/" . setting("site_logo")) }}" style="max-height:36px;">@else{{ config("app.name") }}@endif</a>
        <small>Admin Console</small>
    </div>

    <a href="{{ route('admin.dashboard') }}" class="dash-link {{ request()->routeIs('admin.dashboard') ? 'active' : '' }}">
        <span class="dash-link-icon">▣</span> Dashboard
    </a>

    <div class="dash-sidebar-section">Content</div>
    <a href="{{ route('admin.categories.index') }}" class="dash-link {{ request()->routeIs('admin.categories.*') ? 'active' : '' }}">
        <span class="dash-link-icon">▤</span> Categories
    </a>
    <a href="{{ route('admin.blogs.index') }}" class="dash-link {{ request()->routeIs('admin.blogs.*') ? 'active' : '' }}">
        <span class="dash-link-icon">≡</span> All Blogs
    </a>

    <div class="dash-sidebar-section">Users & Resellers</div>
    <a href="{{ route('admin.users.index') }}" class="dash-link {{ request()->routeIs('admin.users.*') ? 'active' : '' }}">
        <span class="dash-link-icon">◉</span> All Users
    </a>
    <a href="{{ route('admin.resellers.create') }}" class="dash-link {{ request()->routeIs('admin.resellers.*') ? 'active' : '' }}">
        <span class="dash-link-icon">+</span> Add Reseller
    </a>

    <div class="dash-sidebar-section">Billing</div>
    <a href="{{ route('admin.packages.index') }}" class="dash-link {{ request()->routeIs('admin.packages.*') ? 'active' : '' }}">
        <span class="dash-link-icon">◆</span> Packages
    </a>
    <a href="{{ route('admin.invoices.index') }}" class="dash-link {{ request()->routeIs('admin.invoices.*') ? 'active' : '' }}">
        <span class="dash-link-icon">$</span> Invoices
    </a>

    <div class="dash-sidebar-section">Configuration</div>
    <a href="{{ route('admin.settings.edit') }}" class="dash-link {{ request()->routeIs('admin.settings.*') ? 'active' : '' }}">
        <span class="dash-link-icon">⚙</span> Site Settings
    </a>

    <div class="dash-sidebar-section">Account</div>
    <a href="{{ route('profile.edit') }}" class="dash-link {{ request()->routeIs('profile.*') ? 'active' : '' }}">
        <span class="dash-link-icon">☻</span> My Profile
    </a>
    <a href="{{ url('/') }}" class="dash-link" target="_blank">
        <span class="dash-link-icon">⌂</span> View Site
    </a>
</aside>
