%PDF- %PDF-
Direktori : /www/loslex/test/resources/views/layouts/navigation/ |
Current File : //www/loslex/test/resources/views/layouts/navigation/responsive.blade.php |
<div :class="{'block': open, 'hidden': ! open}" class="hidden md:hidden"> <!-- Responsive Settings Options --> <div class="pt-4 pb-1 border-b border-gray-200 dark:border-gray-600"> @auth <div class="px-4"> <div class="font-medium text-base text-gray-800 dark:text-gray-200">{{ Auth::user()->displayname }}</div> <div class="font-medium text-sm text-gray-500">{{ Auth::user()->email }}</div> </div> <div class="mt-3 space-y-1"> <x-responsive-nav-link :href="route('profile.edit')">{{ __('Profile') }}</x-responsive-nav-link> <!-- Authentication --> <form method="POST" action="{{ route('logout') }}"> @csrf <x-responsive-nav-link :href="route('logout')" onclick="event.preventDefault(); this.closest('form').submit();">{{ __('Log Out') }}</x-responsive-nav-link> </form> </div> @else <div class="mt-3 space-y-1"> <x-responsive-nav-button x-data="" x-on:click.prevent="$dispatch('open-modal', 'login-form')">{{__('Log in')}}</x-responsive-nav-button> <x-responsive-nav-link :href="route('register')">{{ __("Register") }}</x-responsive-nav-link> </div> @endauth </div> <!-- Responsive navigation links --> <div class="pt-2 pb-3 space-y-1 border-b border-gray-200 dark:border-gray-600"> <div class="font-medium dark:text-gray-200 text-center">{{__('LOS')}}</div> {{-- @auth <x-responsive-nav-link :href="route('dashboard')" :active="request()->routeIs('dashboard')">{{ __('Dashboard') }}</x-responsive-nav-link> @endauth --}} <x-responsive-nav-link :href="route('contest.index')" :active="request()->routeIs('contest.index')">{{ __('Contest calendar') }}</x-responsive-nav-link> <x-responsive-nav-link :href="route('cup.results', 2)" :active="request()->is('cup/2')">{{ __('Cup LOS :year', ['year' => 2025]) }}</x-responsive-nav-link> <x-responsive-nav-link :href="route('cup.results')" :active="request()->is('cup') || request()->is('cup/1')">{{ __('Cup LOS :year', ['year' => 2024]) }}</x-responsive-nav-link> <x-responsive-nav-link :href="route('rules')" :active="request()->routeIs('rules')">{{ __('LOS Rules') }}</x-responsive-nav-link> <x-responsive-nav-link :href="route('range.index')" :active="request()->routeIs('range.index')">{{ __('Ranges') }}</x-responsive-nav-link> </div> <div class="pt-2 pb-3 space-y-1 border-b border-gray-200 dark:border-gray-600"> <div class="font-medium dark:text-gray-200 text-center">{{__('Support and help')}}</div> <x-responsive-nav-link :href="route('support.contestregister')" :active="request()->routeIs('support.contestregister')">{{ __('Registration to contest') }}</x-responsive-nav-link> <x-responsive-nav-link :href="route('support.icsimport')" :active="request()->routeIs('support.icsimport')">{{ __('Calendar exports') }}</x-responsive-nav-link> <x-responsive-nav-link :href="route('support.contestcreate')" :active="request()->routeIs('support.contestcreate')">{{ __('Contest creation') }}</x-responsive-nav-link> <x-responsive-nav-link :href="route('gdpr')" :active="request()->routeIs('gdpr')">{{ __('GDPR') }}</x-responsive-nav-link> <x-responsive-nav-link :href="route('contact')" :active="request()->routeIs('contact')">{{ __('Contact') }}</x-responsive-nav-link> <x-responsive-nav-link :href="route('changelog')" :active="request()->routeIs('changelog')">{{ __('Changelog') }}</x-responsive-nav-link> </div> @auth <div class="pt-2 pb-3 space-y-1 border-b border-gray-200 dark:border-gray-600"> <div class="font-medium dark:text-gray-200 text-center">{{__('Administration')}}</div> @if (auth()->user()->can('create', \App\Models\Contest::class))<x-responsive-nav-link :href="route('contest.create')" :active="request()->routeIs('contest.create')">{{ __('Create new contest') }}</x-responsive-nav-link>@endif @if (auth()->user()->is_admin) <x-responsive-nav-link :href="route('range.create')" :active="request()->routeIs('range.create')">{{ __('Add new range') }}</x-responsive-nav-link> <x-responsive-nav-link :href="route('organizer.index')" :active="request()->routeIs('organizer.index')">{{ __('Organizer groups') }}</x-responsive-nav-link> <x-responsive-nav-link :href="route('users.index')" :active="request()->routeIs('users.index')">{{ __('Users') }}</x-responsive-nav-link> @endif </div> @endauth </div>