mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
lecturerMaterial.view
This commit is contained in:
@@ -27,6 +27,11 @@
|
|||||||
class="text-gray-400 mr-5 font-medium leading-6 hover:text-gray-300">
|
class="text-gray-400 mr-5 font-medium leading-6 hover:text-gray-300">
|
||||||
{{ __('Back to the overview') }}
|
{{ __('Back to the overview') }}
|
||||||
</a>
|
</a>
|
||||||
|
@elseif(str(request()->route()->getName())->contains('lecturerMaterial.view'))
|
||||||
|
<a href="{{ route('library.table.lecturer', ['country' => $country]) }}"
|
||||||
|
class="text-gray-400 mr-5 font-medium leading-6 hover:text-gray-300">
|
||||||
|
{{ __('Back to the overview') }}
|
||||||
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if(str(request()->route()->getName())->contains('school.'))
|
@if(str(request()->route()->getName())->contains('school.'))
|
||||||
|
|||||||
@@ -73,10 +73,13 @@
|
|||||||
class="mx-auto mt-12 grid max-w-lg gap-5 lg:max-w-none lg:grid-cols-3">
|
class="mx-auto mt-12 grid max-w-lg gap-5 lg:max-w-none lg:grid-cols-3">
|
||||||
|
|
||||||
@foreach($libraryItems as $libraryItem)
|
@foreach($libraryItems as $libraryItem)
|
||||||
|
@php
|
||||||
|
$link = $isLecturerPage ? route('lecturerMaterial.view', ['libraryItem' => $libraryItem]) : route('libraryItem.view', ['libraryItem' => $libraryItem]);
|
||||||
|
@endphp
|
||||||
<div wire:key="library_item_{{ $libraryItem->id }}"
|
<div wire:key="library_item_{{ $libraryItem->id }}"
|
||||||
class="flex flex-col overflow-hidden rounded-lg shadow-[#F7931A] shadow-sm">
|
class="flex flex-col overflow-hidden rounded-lg shadow-[#F7931A] shadow-sm">
|
||||||
<div class="flex-shrink-0">
|
<div class="flex-shrink-0">
|
||||||
<a href="{{ route('libraryItem.view', ['libraryItem' => $libraryItem]) }}">
|
<a href="{{ $link }}">
|
||||||
<img class="h-48 w-full object-contain"
|
<img class="h-48 w-full object-contain"
|
||||||
src="{{ $libraryItem->getFirstMediaUrl('main') }}"
|
src="{{ $libraryItem->getFirstMediaUrl('main') }}"
|
||||||
alt="{{ $libraryItem->name }}">
|
alt="{{ $libraryItem->name }}">
|
||||||
@@ -88,7 +91,7 @@
|
|||||||
<div
|
<div
|
||||||
class="text-amber-500">{{ $libraryItem->tags->pluck('name')->join(', ') }}</div>
|
class="text-amber-500">{{ $libraryItem->tags->pluck('name')->join(', ') }}</div>
|
||||||
</p>
|
</p>
|
||||||
<a href="{{ route('libraryItem.view', ['libraryItem' => $libraryItem]) }}"
|
<a href="{{ $link }}"
|
||||||
class="mt-2 block">
|
class="mt-2 block">
|
||||||
<p class="text-xl font-semibold text-gray-200">{{ $libraryItem->name }}</p>
|
<p class="text-xl font-semibold text-gray-200">{{ $libraryItem->name }}</p>
|
||||||
<p class="mt-3 text-base text-gray-300 line-clamp-6">{{ strip_tags($libraryItem->excerpt) }}</p>
|
<p class="mt-3 text-base text-gray-300 line-clamp-6">{{ strip_tags($libraryItem->excerpt) }}</p>
|
||||||
|
|||||||
@@ -21,6 +21,10 @@ Route::middleware([])
|
|||||||
->get('/library-item/{libraryItem:slug}', \App\Http\Livewire\News\InternArticleView::class)
|
->get('/library-item/{libraryItem:slug}', \App\Http\Livewire\News\InternArticleView::class)
|
||||||
->name('libraryItem.view');
|
->name('libraryItem.view');
|
||||||
|
|
||||||
|
Route::middleware([])
|
||||||
|
->get('/lecturer-material/{libraryItem:slug}', \App\Http\Livewire\News\InternArticleView::class)
|
||||||
|
->name('lecturerMaterial.view');
|
||||||
|
|
||||||
Route::middleware([])
|
Route::middleware([])
|
||||||
->get('/my-meetups', \App\Http\Livewire\Profile\Meetups::class)
|
->get('/my-meetups', \App\Http\Livewire\Profile\Meetups::class)
|
||||||
->name('profile.meetups');
|
->name('profile.meetups');
|
||||||
|
|||||||
Reference in New Issue
Block a user