lecturer lib added

This commit is contained in:
Benjamin Takats
2022-12-05 20:49:00 +01:00
parent fd2dee5590
commit cf9939543e
8 changed files with 32 additions and 12 deletions

View File

@@ -28,7 +28,7 @@
@php
$currentLibraryClass = $currentTab === $library->name ? 'border-amber-500 text-amber-600' : 'border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300';
@endphp
<a href="{{ route('library', ['country' => $country, 'currentTab' => $library->name]) }}"
<a href="{{ route(request()->route()->getName(), ['country' => $country, 'currentTab' => $library->name]) }}"
class="{{ $currentLibraryClass }} whitespace-nowrap pb-4 px-1 border-b-2 font-medium text-sm">{{ $library->name }}</a>
@endforeach
</nav>