@auth
diff --git a/resources/views/layouts/guest.blade.php b/resources/views/layouts/guest.blade.php
index 921b2cd4..2c2c44d3 100644
--- a/resources/views/layouts/guest.blade.php
+++ b/resources/views/layouts/guest.blade.php
@@ -10,17 +10,51 @@
+
@vite(['resources/css/app.css', 'resources/js/app.js'])
@livewireStyles
-
+
{{ $slot }}
@stack('modals')
@livewireScripts
diff --git a/resources/views/livewire/frontend/comment-book-case.blade.php b/resources/views/livewire/frontend/comment-book-case.blade.php
new file mode 100644
index 00000000..006075c1
--- /dev/null
+++ b/resources/views/livewire/frontend/comment-book-case.blade.php
@@ -0,0 +1,123 @@
+
+
+
+ {{-- HEADER --}}
+
+
+
+
+
+ @auth
+
+ @else
+
+ @endauth
+
+
+
+
+ {{-- MAIN --}}
+
+
+
+
+
+ Zurück zur Übersicht
+
+
+
+
+
+
+ {{--
+

+
--}}
+
+
+
+
+ @map([
+ 'lat' => $bookCase->lat,
+ 'lng' => $bookCase->lon,
+ 'zoom' => 24,
+ 'markers' => [
+ [
+ 'title' => $bookCase->title,
+ 'lat' => $bookCase->lat,
+ 'lng' => $bookCase->lon,
+ 'url' => 'https://gonoware.com',
+ 'icon' => asset('img/btc-logo-6219386_1280.png'),
+ 'icon_size' => [42, 42],
+ ],
+ ],
+ ])
+
+
+
+
+
+
+
+
+
+ {{-- FOOTER --}}
+
+
diff --git a/resources/views/livewire/frontend/header.blade.php b/resources/views/livewire/frontend/header.blade.php
index 7bf81ef8..4321e9fd 100644
--- a/resources/views/livewire/frontend/header.blade.php
+++ b/resources/views/livewire/frontend/header.blade.php
@@ -33,6 +33,8 @@
class="{{ request()->routeIs('search.event') ? 'text-amber-500 underline' : 'text-gray-400' }} mr-5 font-medium leading-6 hover:text-gray-300">Termine
Bibliothek
+
Bücher-Schränke
@if(auth()->user()?->is_lecturer)
Dozenten-Bibliothek
diff --git a/resources/views/livewire/frontend/search-book-case.blade.php b/resources/views/livewire/frontend/search-book-case.blade.php
index bc613c15..436fafee 100644
--- a/resources/views/livewire/frontend/search-book-case.blade.php
+++ b/resources/views/livewire/frontend/search-book-case.blade.php
@@ -35,6 +35,8 @@
class="{{ request()->routeIs('search.event') ? 'text-amber-500 underline' : 'text-gray-400' }} mr-5 font-medium leading-6 hover:text-gray-300">Termine
Bibliothek
+
Bücher-Schränke
@if(auth()->user()?->is_lecturer)
Dozenten-Bibliothek
@@ -79,7 +81,7 @@
init() {
this.earth = new Earth(this.$refs.myearth, {
location : {lat: {{ $bookCases->first()->lat }}, lng: {{ $bookCases->first()->lon }}},
- zoom: 2,
+ zoom: 1,
light: 'sun',
polarLimit: 0.6,
diff --git a/resources/views/modals/book_cases/orange_pill.blade.php b/resources/views/modals/book_cases/orange_pill.blade.php
new file mode 100644
index 00000000..e1d89d5c
--- /dev/null
+++ b/resources/views/modals/book_cases/orange_pill.blade.php
@@ -0,0 +1,42 @@
+
+
+
+ {{ __('Orange Pill Book Case') }}
+
+
+
+
+
+
+
+
+
+ 💊 @lang('Orange Pill Now')
+
+
+
diff --git a/resources/views/vendor/comments/components/avatar.blade.php b/resources/views/vendor/comments/components/avatar.blade.php
new file mode 100644
index 00000000..7c3d4f08
--- /dev/null
+++ b/resources/views/vendor/comments/components/avatar.blade.php
@@ -0,0 +1,15 @@
+@php
+ $defaultImage = Spatie\Comments\Support\Config::getGravatarDefaultImage();
+ $defaultAvatar = "https://www.gravatar.com/avatar/unknown?d={$defaultImage}";
+
+ if ($user = auth()->user()) {
+ $segment = md5(strtolower($user->email));
+ $defaultAvatar = "https://www.gravatar.com/avatar/{$segment}?d={$defaultImage}";
+ }
+@endphp
+
+
diff --git a/resources/views/vendor/comments/components/button.blade.php b/resources/views/vendor/comments/components/button.blade.php
new file mode 100644
index 00000000..3ca9d0e8
--- /dev/null
+++ b/resources/views/vendor/comments/components/button.blade.php
@@ -0,0 +1,12 @@
+
diff --git a/resources/views/vendor/comments/components/date.blade.php b/resources/views/vendor/comments/components/date.blade.php
new file mode 100644
index 00000000..9f8fe9cf
--- /dev/null
+++ b/resources/views/vendor/comments/components/date.blade.php
@@ -0,0 +1,7 @@
+
diff --git a/resources/views/vendor/comments/components/editors/easymde.blade.php b/resources/views/vendor/comments/components/editors/easymde.blade.php
new file mode 100644
index 00000000..d315053a
--- /dev/null
+++ b/resources/views/vendor/comments/components/editors/easymde.blade.php
@@ -0,0 +1,104 @@
+
+
+@push('comments-scripts')
+
+@endpush
diff --git a/resources/views/vendor/comments/components/editors/textarea.blade.php b/resources/views/vendor/comments/components/editors/textarea.blade.php
new file mode 100644
index 00000000..9da655da
--- /dev/null
+++ b/resources/views/vendor/comments/components/editors/textarea.blade.php
@@ -0,0 +1 @@
+
diff --git a/resources/views/vendor/comments/components/icons/close.blade.php b/resources/views/vendor/comments/components/icons/close.blade.php
new file mode 100644
index 00000000..ee17689f
--- /dev/null
+++ b/resources/views/vendor/comments/components/icons/close.blade.php
@@ -0,0 +1 @@
+
diff --git a/resources/views/vendor/comments/components/icons/copy.blade.php b/resources/views/vendor/comments/components/icons/copy.blade.php
new file mode 100644
index 00000000..3ed38263
--- /dev/null
+++ b/resources/views/vendor/comments/components/icons/copy.blade.php
@@ -0,0 +1 @@
+
diff --git a/resources/views/vendor/comments/components/icons/delete.blade.php b/resources/views/vendor/comments/components/icons/delete.blade.php
new file mode 100644
index 00000000..42d105a1
--- /dev/null
+++ b/resources/views/vendor/comments/components/icons/delete.blade.php
@@ -0,0 +1 @@
+
diff --git a/resources/views/vendor/comments/components/icons/edit.blade.php b/resources/views/vendor/comments/components/icons/edit.blade.php
new file mode 100644
index 00000000..eaf2288f
--- /dev/null
+++ b/resources/views/vendor/comments/components/icons/edit.blade.php
@@ -0,0 +1 @@
+
diff --git a/resources/views/vendor/comments/components/icons/menu.blade.php b/resources/views/vendor/comments/components/icons/menu.blade.php
new file mode 100644
index 00000000..a3aaf2ca
--- /dev/null
+++ b/resources/views/vendor/comments/components/icons/menu.blade.php
@@ -0,0 +1 @@
+
diff --git a/resources/views/vendor/comments/components/icons/smile.blade.php b/resources/views/vendor/comments/components/icons/smile.blade.php
new file mode 100644
index 00000000..511534cf
--- /dev/null
+++ b/resources/views/vendor/comments/components/icons/smile.blade.php
@@ -0,0 +1 @@
+
diff --git a/resources/views/vendor/comments/components/modal.blade.php b/resources/views/vendor/comments/components/modal.blade.php
new file mode 100644
index 00000000..94d1b4d3
--- /dev/null
+++ b/resources/views/vendor/comments/components/modal.blade.php
@@ -0,0 +1,14 @@
+
$compact ?? false, 'is-left' => $left ?? false, 'is-bottom' => $bottom ?? false])
+ {{ $attributes }}
+>
+ @isset($title)
+
+ @endisset
+
+
diff --git a/resources/views/vendor/comments/components/scripts.blade.php b/resources/views/vendor/comments/components/scripts.blade.php
new file mode 100644
index 00000000..fa709f54
--- /dev/null
+++ b/resources/views/vendor/comments/components/scripts.blade.php
@@ -0,0 +1,9 @@
+
+@stack('comments-scripts')
diff --git a/resources/views/vendor/comments/components/styles.blade.php b/resources/views/vendor/comments/components/styles.blade.php
new file mode 100644
index 00000000..2eb158a0
--- /dev/null
+++ b/resources/views/vendor/comments/components/styles.blade.php
@@ -0,0 +1,3 @@
+
diff --git a/resources/views/vendor/comments/extraCommentHeaderActions.blade.php b/resources/views/vendor/comments/extraCommentHeaderActions.blade.php
new file mode 100644
index 00000000..e69de29b
diff --git a/resources/views/vendor/comments/livewire/comment.blade.php b/resources/views/vendor/comments/livewire/comment.blade.php
new file mode 100644
index 00000000..57a4898a
--- /dev/null
+++ b/resources/views/vendor/comments/livewire/comment.blade.php
@@ -0,0 +1,196 @@
+
diff --git a/resources/views/vendor/comments/livewire/comments.blade.php b/resources/views/vendor/comments/livewire/comments.blade.php
new file mode 100644
index 00000000..9404da6d
--- /dev/null
+++ b/resources/views/vendor/comments/livewire/comments.blade.php
@@ -0,0 +1,61 @@
+@php
+ use Spatie\Comments\Enums\NotificationSubscriptionType;
+@endphp
+
+
diff --git a/resources/views/vendor/comments/livewire/partials/newComment.blade.php b/resources/views/vendor/comments/livewire/partials/newComment.blade.php
new file mode 100644
index 00000000..c6172b9b
--- /dev/null
+++ b/resources/views/vendor/comments/livewire/partials/newComment.blade.php
@@ -0,0 +1,24 @@
+@if($writable)
+ @can('createComment', $model)
+
+ @endcan
+@endif
diff --git a/resources/views/vendor/comments/livewire/partials/replyTo.blade.php b/resources/views/vendor/comments/livewire/partials/replyTo.blade.php
new file mode 100644
index 00000000..e3c6ddf9
--- /dev/null
+++ b/resources/views/vendor/comments/livewire/partials/replyTo.blade.php
@@ -0,0 +1,47 @@
+@if($writable)
+
+@endif
diff --git a/resources/views/vendor/comments/mail/approvedCommentNotification.blade.php b/resources/views/vendor/comments/mail/approvedCommentNotification.blade.php
new file mode 100644
index 00000000..4e18abed
--- /dev/null
+++ b/resources/views/vendor/comments/mail/approvedCommentNotification.blade.php
@@ -0,0 +1,24 @@
+@component('mail::message')
+# {{ __('comments::notifications.approved_comment_mail_title', [
+ 'commentable_name' => $topLevelComment->commentable->commentableName(),
+ 'commentable_url' => $topLevelComment->commentable->commentUrl(),
+ 'commentator_name' => $comment->commentatorProperties()->name ?? 'anonymous',
+]) }}
+
+{{ __('comments::notifications.approved_comment_mail_body', [
+ 'commentable_name' => $topLevelComment->commentable->commentableName(),
+ 'commentable_url' => $topLevelComment->commentable->commentUrl(),
+ 'commentator_name' => $comment->commentatorProperties()->name ?? 'anonymous',
+]) }}
+
+{!! $comment->text !!}
+
+@component('mail::button', ['url' => $comment->commentUrl()])
+{{ __('comments::notifications.view_comment') }}
+@endcomponent
+
+@if($unsubscribeUrl = $commentator->unsubscribeFromCommentNotificationsUrl($comment))
+
Unsubscribe from receive notification about {{ $topLevelComment->commentable->commentableName() }}
+@endif
+
+@endcomponent
diff --git a/resources/views/vendor/comments/mail/pendingCommentNotification.blade.php b/resources/views/vendor/comments/mail/pendingCommentNotification.blade.php
new file mode 100644
index 00000000..ea3eb0c3
--- /dev/null
+++ b/resources/views/vendor/comments/mail/pendingCommentNotification.blade.php
@@ -0,0 +1,20 @@
+@component('mail::message')
+
+{{ __('comments::notifications.pending_comment_mail_body', [
+ 'commentable_name' => $topLevelComment->commentable->commentableName(),
+ 'commentator_name' => $comment->commentatorProperties()->name ?? 'anonymous',
+]) }}
+
+[{{ __('comments::notifications.view_comment') }}]({{ $comment->commentUrl() }})
+
+{!! $comment->text !!}
+
+@component('mail::button', ['url' => $comment->approveUrl()])
+ {{ __('comments::notifications.approve_comment') }}
+@endcomponent
+
+@component('mail::button', ['url' => $comment->rejectUrl()])
+ {{ __('comments::notifications.reject_comment') }}
+@endcomponent
+
+@endcomponent
diff --git a/resources/views/vendor/comments/signed/approval/approveComment.blade.php b/resources/views/vendor/comments/signed/approval/approveComment.blade.php
new file mode 100644
index 00000000..b2d1e25f
--- /dev/null
+++ b/resources/views/vendor/comments/signed/approval/approveComment.blade.php
@@ -0,0 +1,5 @@
+
+
+ The comment has been approved.
+
+
diff --git a/resources/views/vendor/comments/signed/approval/approveCommentConfirmation.blade.php b/resources/views/vendor/comments/signed/approval/approveCommentConfirmation.blade.php
new file mode 100644
index 00000000..feadafed
--- /dev/null
+++ b/resources/views/vendor/comments/signed/approval/approveCommentConfirmation.blade.php
@@ -0,0 +1,15 @@
+
+
+ Do you want to approve the comment?
+
+
+
+
+
+
+
diff --git a/resources/views/vendor/comments/signed/approval/rejectComment.blade.php b/resources/views/vendor/comments/signed/approval/rejectComment.blade.php
new file mode 100644
index 00000000..91c7048c
--- /dev/null
+++ b/resources/views/vendor/comments/signed/approval/rejectComment.blade.php
@@ -0,0 +1,5 @@
+
+
+ The comment has been rejected.
+
+
diff --git a/resources/views/vendor/comments/signed/approval/rejectCommentApproval.blade.php b/resources/views/vendor/comments/signed/approval/rejectCommentApproval.blade.php
new file mode 100644
index 00000000..a49a06b3
--- /dev/null
+++ b/resources/views/vendor/comments/signed/approval/rejectCommentApproval.blade.php
@@ -0,0 +1,14 @@
+
+
+ Do you want to reject the comment?
+
+
+
+
+
+
diff --git a/resources/views/vendor/comments/signed/notificationSubscription/unsubscribe.blade.php b/resources/views/vendor/comments/signed/notificationSubscription/unsubscribe.blade.php
new file mode 100644
index 00000000..23c836cc
--- /dev/null
+++ b/resources/views/vendor/comments/signed/notificationSubscription/unsubscribe.blade.php
@@ -0,0 +1,5 @@
+
+
+ You have been unsubscribed.
+
+
diff --git a/resources/views/vendor/comments/signed/notificationSubscription/unsubscribeAll.blade.php b/resources/views/vendor/comments/signed/notificationSubscription/unsubscribeAll.blade.php
new file mode 100644
index 00000000..5e76192c
--- /dev/null
+++ b/resources/views/vendor/comments/signed/notificationSubscription/unsubscribeAll.blade.php
@@ -0,0 +1,5 @@
+
+
+ You have been unsubscribed from every comment notification.
+
+
diff --git a/resources/views/vendor/comments/signed/notificationSubscription/unsubscribeAllApproval.blade.php b/resources/views/vendor/comments/signed/notificationSubscription/unsubscribeAllApproval.blade.php
new file mode 100644
index 00000000..ed1672af
--- /dev/null
+++ b/resources/views/vendor/comments/signed/notificationSubscription/unsubscribeAllApproval.blade.php
@@ -0,0 +1,14 @@
+
+
+ Do you want to unsubscribe from every comment notification?
+
+
+
+
+
+
diff --git a/resources/views/vendor/comments/signed/notificationSubscription/unsubscribeApproval.blade.php b/resources/views/vendor/comments/signed/notificationSubscription/unsubscribeApproval.blade.php
new file mode 100644
index 00000000..e68876ff
--- /dev/null
+++ b/resources/views/vendor/comments/signed/notificationSubscription/unsubscribeApproval.blade.php
@@ -0,0 +1,14 @@
+
+
+ Do you want to unsubscribe?
+
+
+
+
+
+
diff --git a/resources/views/vendor/comments/signed/signedLayout.blade.php b/resources/views/vendor/comments/signed/signedLayout.blade.php
new file mode 100644
index 00000000..d634ae1b
--- /dev/null
+++ b/resources/views/vendor/comments/signed/signedLayout.blade.php
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+ {{ $slot }}
+
+
+
diff --git a/routes/web.php b/routes/web.php
index fba03b74..a4bb22c0 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -42,6 +42,9 @@ Route::get('/dozenten', \App\Http\Livewire\Guest\Welcome::class)
Route::get('/buecher-schraenke', \App\Http\Livewire\Frontend\SearchBookCase::class)
->name('search.bookcases');
+Route::get('/buecher-schrank/{bookCase}', \App\Http\Livewire\Frontend\CommentBookCase::class)
+ ->name('comment.bookcase');
+
Route::middleware([
'auth:sanctum',
config('jetstream.auth_session'),