fix selection

This commit is contained in:
2024-09-27 14:22:03 +10:00
parent 7baea36628
commit d72c08b4c9

View File

@@ -9,7 +9,7 @@
@isset($tabs) @isset($tabs)
<div class="mt-4 -mb-10 flex justify-end"> <div class="mt-4 -mb-10 flex justify-end">
@foreach($tabs as $tab) @foreach($tabs as $tab)
<a href="{{ $tab['route'] }}" class="rounded-t-md px-4 py-2 {{ (request()->routeIs($tab['route']) ? 'bg-gray-100 text-primary-color-dark' : 'text-white') }} hover:bg-primary-color-dark transition-colors">{{ $tab['title'] }}</a> <a href="{{ $tab['route'] }}" class="rounded-t-md px-4 py-2 {{ ('/' . request()->path() === parse_url($tab['route'], PHP_URL_PATH) ? 'bg-gray-100 text-primary-color-dark' : 'text-white hover:bg-primary-color-dark') }} transition-colors">{{ $tab['title'] }}</a>
@endforeach @endforeach
</div> </div>
@endisset @endisset