libraryItem forms added

This commit is contained in:
HolgerHatGarKeineNode
2023-02-11 20:13:16 +01:00
parent fbb1a781cc
commit b528f509dd
24 changed files with 576 additions and 53 deletions

View File

@@ -188,6 +188,19 @@
<p class="px-0 mb-2 text-lg text-gray-600 md:text-xl lg:px-24">
{{ __('Choose a topic that is right for you.') }}
</p>
@auth
@if(str(request()->route()->getName())->contains('lecturer'))
<x-button :href="route('library.libraryItem.form', ['country' => $c, 'lecturer' => true, 'fromUrl' => url()->route('library.table.libraryItems', ['country' => $country])])">
<i class="fa fa-thin fa-plus"></i>
{{ __('Submit contents') }}
</x-button>
@else
<x-button :href="route('library.libraryItem.form', ['country' => $c, 'fromUrl' => url()->route('library.table.libraryItems', ['country' => $country])])">
<i class="fa fa-thin fa-plus"></i>
{{ __('Submit contents') }}
</x-button>
@endif
@endauth
</div>
@endif