@php
    $isDashboard1 = request()->routeIs('admin.dashboard');
    $isDashboard2 = request()->routeIs('admin.dashboard.reporting');
@endphp

<div class="flex flex-wrap gap-2 border-b border-slate-200 pb-4 mb-6">
    <a
        href="{{ route('admin.dashboard') }}"
        class="rounded-xl px-4 py-2 text-sm font-semibold transition {{ $isDashboard1 ? 'bg-brand-green text-white shadow-sm' : 'bg-slate-100 text-slate-600 hover:bg-slate-200' }}"
    >
        Dashboard 1
    </a>
    <a
        href="{{ route('admin.dashboard.reporting') }}"
        class="rounded-xl px-4 py-2 text-sm font-semibold transition {{ $isDashboard2 ? 'bg-brand-green text-white shadow-sm' : 'bg-slate-100 text-slate-600 hover:bg-slate-200' }}"
    >
        Dashboard 2
    </a>
</div>
