@php $nav = [ 'Wallets' => 'pocket-money.index', 'Transactions' => 'pocket-money.transactions', ]; $current = request()->route()?->getName() ?? ''; @endphp
@foreach($nav as $label => $route) {{ $label }} @endforeach