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

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

    <div class="dash-sidebar-section">Blogs</div>
    <a href="{{ route('reseller.blogs.index') }}" class="dash-link {{ request()->routeIs('reseller.blogs.index') || request()->routeIs('reseller.blogs.show') ? 'active' : '' }}">
        <span class="dash-link-icon">≡</span> My Blogs
    </a>
    <a href="{{ route('reseller.blogs.create') }}" class="dash-link {{ request()->routeIs('reseller.blogs.create') || request()->routeIs('reseller.blogs.edit') ? 'active' : '' }}">
        <span class="dash-link-icon">+</span> New Blog
    </a>

    <div class="dash-sidebar-section">Quota & Billing</div>
    <a href="{{ route('reseller.packages.index') }}" class="dash-link {{ request()->routeIs('reseller.packages.*') ? 'active' : '' }}">
        <span class="dash-link-icon">◆</span> Buy Package
    </a>
    <a href="{{ route('reseller.invoices.index') }}" class="dash-link {{ request()->routeIs('reseller.invoices.*') ? 'active' : '' }}">
        <span class="dash-link-icon">$</span> Invoices
    </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>

    <div class="px-3 mt-4">
        <div class="badge-quota d-block text-center">
            {{ auth()->user()->blogsRemaining() }} / {{ auth()->user()->blogs_quota }} blogs left
        </div>
    </div>
</aside>
