mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
lecturer lib added
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
<div>
|
||||
<x-button amber>
|
||||
<i class="fa fa-thin fa-book-open mr-2"></i>
|
||||
Öffnen
|
||||
</x-button>
|
||||
@if(str($row->value)->contains('http'))
|
||||
<x-button amber href="{{ $row->value }}" target="_blank">
|
||||
<i class="fa fa-thin fa-book-open mr-2"></i>
|
||||
Öffnen
|
||||
</x-button>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@@ -33,6 +33,10 @@
|
||||
class="{{ request()->routeIs('search.event') ? 'text-amber-500 underline' : 'text-gray-400' }} mr-5 font-medium leading-6 hover:text-gray-300">Termine</a>
|
||||
<a href="{{ route('library', ['country' => $c]) }}"
|
||||
class="{{ request()->routeIs('library') ? 'text-amber-500 underline' : 'text-gray-400' }} mr-5 font-medium leading-6 hover:text-gray-300">Bibliothek</a>
|
||||
@if(auth()->user()->is_lecturer)
|
||||
<a href="{{ route('library.lecturer', ['country' => $c]) }}"
|
||||
class="{{ request()->routeIs('library.lecturer') ? 'text-amber-500 underline' : 'text-gray-400' }} mr-5 font-medium leading-6 hover:text-gray-300">Dozenten-Bibliothek</a>
|
||||
@endif
|
||||
</nav>
|
||||
</div>
|
||||
@auth
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user