<aside class="sidebar">
    <div class="brand">
        <div class="brand-mark">RS</div>
        <div>
            <div class="brand-title">RapidSewa</div>
            <div class="brand-sub">Professional Admin</div>
        </div>
    </div>
    @foreach (config('rapidsewa_admin.menu') as $group => $items)
        <details open>
            <summary>{{ $group }}</summary>
            @foreach ($items as $item)
                @php
                    $href = isset($item['route']) ? route($item['route']) : route('admin.module.index', $item['module']);
                @endphp
                <a class="nav-link" href="{{ $href }}">
                    <span class="nav-icon">{{ $item['icon'] }}</span>
                    <span>{{ $item['label'] }}</span>
                </a>
            @endforeach
        </details>
    @endforeach
</aside>
