@php
$tabs = [
    'profile'       => ['label' => 'Profile',       'icon' => 'bi-person',        'route' => 'settings.profile'],
    'invoice'       => ['label' => 'Invoice',        'icon' => 'bi-receipt',       'route' => 'settings.invoice'],
    'bank'          => ['label' => 'Bank Details',   'icon' => 'bi-bank',          'route' => 'settings.bank'],
    'notifications' => ['label' => 'Notifications',  'icon' => 'bi-bell',          'route' => 'settings.notifications'],
    'subscription'  => ['label' => 'Subscription',   'icon' => 'bi-patch-check',   'route' => 'settings.subscription'],
];
@endphp

<div class="d-flex flex-wrap gap-1 mb-4">
    @foreach($tabs as $key => $tab)
        <a href="{{ route($tab['route']) }}"
           class="btn btn-sm {{ ($active ?? '') === $key ? 'btn-dark' : 'btn-outline-secondary' }}"
           style="font-size:0.8rem;">
            <i class="bi {{ $tab['icon'] }} me-1"></i>{{ $tab['label'] }}
        </a>
    @endforeach
</div>
