%PDF- %PDF-
| Direktori : /proc/self/root/data/www_bck/loslex_bck/demo/resources/views/layouts/ |
| Current File : //proc/self/root/data/www_bck/loslex_bck/demo/resources/views/layouts/navigation.blade.php |
@push('footerelements')
<x-modal maxWidth="md" zindex="z-2000" name="login-form" :show="$errors->hasBag('login')" focusable>
<div class="p-6 flex flex-col justify-center">
<x-application-logo class="h-24 object-scale-down text-gray-500" />
@include('auth.login-form')
</div>
</x-modal>
@endpush
<nav x-data="{ open: false }" class="bg-white dark:bg-gray-800 border-b border-gray-100 dark:border-gray-700">
<!-- Primary Navigation Menu -->
<div class="max-w-7xl mx-auto px-4 md:px-6 lg:px-8">
<div class="flex justify-between h-16">
<div class="flex">
<!-- Logo -->
<div class="shrink-0 flex items-center"><a href="{{ config('app.homepage') }}"><x-application-logo class="block h-16 w-auto fill-current text-gray-800 dark:text-gray-200" /></a></div>
<!-- Navigation Links -->
<div class="hidden space-x-4 md:-my-px md:ml-10 md:flex">
{{-- @auth <x-nav-link :href="route('dashboard')" :active="request()->routeIs('dashboard')">{{ __('Dashboard') }}</x-nav-link> @endauth --}}
<x-nav-link :href="route('contest.index')" :active="request()->routeIs('contest.index')">{{ __('Contest calendar') }}</x-nav-link>
<x-nav-link :href="route('cup.results')" :active="request()->routeIs('cup.results')">{{ __('Cup')}}</x-nav-link>
<x-nav-link :href="route('rules')" :active="request()->routeIs('rules')">{{ __('LOS Rules') }}</x-nav-link>
</div>
</div>
<div class="hidden space-x-1 items-center md:-my-px md:ml-10 md:flex">
@auth
<!-- Administration dropdown -->
@if (auth()->user()->is_admin || auth()->user()->can('create', \App\Models\Contest::class))
<x-dropdown align="left" width="48">
<x-slot name="trigger">
<button class="inline-flex items-center px-1 py-2 border border-transparent text-sm leading-4 font-medium rounded-md text-gray-500 dark:text-gray-400 bg-white dark:bg-gray-800 hover:text-gray-700 dark:hover:text-gray-300 focus:outline-none transition ease-in-out duration-150">
<div>{{ __('Administration') }}</div><x-dropdown-arrow/>
</button>
</x-slot>
<x-slot name="content">
<x-dropdown-link :href="route('contest.create')">{{ __('Create new contest') }}</x-dropdown-link>
@if(auth()->user()->is_admin)
<x-dropdown-link :href="route('organizer.index')">{{ __('Organizer groups') }}</x-dropdown-link>
{{-- <x-dropdown-link :href="route('users.list')">{{ __('Users') }}</x-dropdown-link> --}}
<x-dropdown-link :href="route('range.index')">{{ __('Ranges') }}</x-dropdown-link>
@endif
</x-slot>
</x-dropdown>
@endif
@endauth
<x-dropdown align="top" width="48">
<x-slot name="trigger">
<button class="inline-flex items-center px-1 py-2 border border-transparent text-sm leading-4 font-medium rounded-md text-gray-500 dark:text-gray-400 bg-white dark:bg-gray-800 hover:text-gray-700 dark:hover:text-gray-300 focus:outline-none transition ease-in-out duration-150">
<div>{{ __('Support and help') }}</div><x-dropdown-arrow/>
</button>
</x-slot>
<x-slot name="content">
<x-dropdown-link :href="route('support.contestregister')">{{ __('Registration to contest') }}</x-dropdown-link>
<x-dropdown-link :href="route('support.icsimport')">{{ __('Calendar exports') }}</x-dropdown-link>
@auth
@if (Auth::user()->organizer_groups()->count())
<x-dropdown-link :href="route('support.contestcreate')">{{ __('Contest creation') }}</x-dropdown-link>
{{-- <x-dropdown-link>{{ __('Contest maintenance') }}</x-dropdown-link> --}}
@endif
<x-dropdown-divider></x-dropdown-divider>
@endauth
<x-dropdown-link :href="route('gdpr')">{{ __('GDPR') }}</x-dropdown-link>
<x-dropdown-link :href="route('changelog')">{{ __('Changelog') }}</x-dropdown-link>
<x-dropdown-link :href="route('support.contact')">{{ __('Contact') }}</x-dropdown-link>
</x-slot>
</x-dropdown>
@auth
<!-- Settings Dropdown -->
<x-dropdown align="right" width="48">
<x-slot name="trigger">
<button class="inline-flex items-center px-1 py-2 border border-transparent text-sm leading-4 font-medium rounded-md text-gray-500 dark:text-gray-400 bg-white dark:bg-gray-800 hover:text-gray-700 dark:hover:text-gray-300 focus:outline-none transition ease-in-out duration-150">
<div>{{ Auth::user()->displayname }}</div><x-dropdown-arrow/>
</button>
</x-slot>
<x-slot name="content">
<x-dropdown-link :href="route('profile.edit')">{{ __('Profile') }}</x-dropdown-link>
<form method="POST" action="{{ route('logout') }}">@csrf<x-dropdown-link :href="route('logout')" onclick="event.preventDefault(); this.closest('form').submit();">{{ __('Log Out') }}</x-dropdown-link></form>
</x-slot>
</x-dropdown>
@endauth
@guest
<x-nav-button x-data="" x-on:click.prevent="$dispatch('open-modal', 'login-form')">{{__('Log in')}}</x-nav-button>
@if (Route::has('register')) <x-nav-link :href="route('register')" :active="request()->routeIs('register')">{{ __("Register")}}</x-navlink> @endif
@endguest
@include('layouts.langselector')
@include('layouts.darkmodeselector')
</div>
<!-- Hamburger -->
<div class="-mr-2 flex items-center md:hidden">
<div :class="{'hidden': ! open, 'inline-flex': open }" class="hidden">@include('layouts.langselector')</div>
<div :class="{'hidden': ! open, 'inline-flex': open }" class="hidden mr-2">@include('layouts.darkmodeselector')</div>
<button @click="open = ! open" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 dark:text-gray-500 hover:text-gray-500 dark:hover:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-900 focus:outline-none focus:bg-gray-100 dark:focus:bg-gray-900 focus:text-gray-500 dark:focus:text-gray-400 transition duration-150 ease-in-out">
<svg class="h-6 w-6" stroke="currentColor" fill="none" viewBox="0 0 24 24">
<path :class="{'hidden': open, 'inline-flex': ! open }" class="inline-flex" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
<path :class="{'hidden': ! open, 'inline-flex': open }" class="hidden" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
</div>
</div>
</div>
<!-- Responsive Navigation Menu -->
<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">
{{-- @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')" :active="request()->routeIs('cup.results')">{{ __('Cup') }}</x-responsive-nav-link>
<x-responsive-nav-link :href="route('rules')" :active="request()->routeIs('rules')">{{ __('LOS Rules') }}</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 text-center">{{__('Support and help')}}</div>
<x-responsive-nav-link :href="route('support.contestregister')">{{ __('Registration to contest') }}</x-responsive-nav-link>
<x-responsive-nav-link :href="route('support.icsimport')">{{ __('Calendar exports') }}</x-responsive-nav-link>
<x-responsive-nav-link :href="route('support.contestcreate')">{{ __('Contest creation') }}</x-responsive-nav-link>
<x-responsive-nav-link :href="route('gdpr')">{{ __('GDPR') }}</x-responsive-nav-link>
<x-responsive-nav-link :href="route('support.contact')">{{ __('Contact') }}</x-responsive-nav-link>
<x-responsive-nav-link :href="route('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 text-center">{{__('Administration')}}</div>
@if (auth()->user()->can('create', \App\Models\Contest::class))<x-responsive-nav-link :href="route('contest.create')">{{ __('Create new contest') }}</x-responsive-nav-link>@endif
@if (auth()->user()->is_admin)
<x-responsive-nav-link :href="route('organizer.index')">{{ __('Organizer groups') }}</x-responsive-nav-link>
<x-responsive-nav-link :href="route('range.index')">{{ __('Ranges') }}</x-responsive-nav-link>
@endif
</div>
@endauth
</div>
</nav>