Add client open mode preference (same tab / new window) to user settings

This commit is contained in:
root
2026-06-26 19:53:32 +02:00
parent 6add7cdfb1
commit 9c92cd297a
8 changed files with 200 additions and 37 deletions
@@ -12,7 +12,8 @@
</a>
</div>
<a data-turbolinks="false" href="{{ route('nitro-client') }}">
@php $openMode = auth()->user()->preferences['client_open_mode'] ?? 'same'; @endphp
<a data-turbolinks="false" href="{{ route('nitro-client') }}" @if($openMode === 'new_window') target="_blank" rel="noopener" @endif>
<button
class="cms-button bg-yellow-500 hover:bg-yellow-400 text-yellow-900 font-bold py-2 px-4 rounded-lg shadow-lg transition-all duration-300 hover:scale-105">
{{ __('Go to :hotel', ['hotel' => setting('hotel_name')]) }}