%PDF- %PDF-
Direktori : /www/loslex/test/resources/views/layouts/navigation/ |
Current File : //www/loslex/test/resources/views/layouts/navigation/primary.blade.php |
<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> --}} <x-dropdown align="top" width="48" :active="request()->routeIs('cup.results') || request()->routeIs('rules')"> <x-slot name="trigger"> <button class="inline-flex h-full 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>{{ __('LOS') }}</div><x-dropdown-arrow/> </button> </x-slot> <x-slot name="content"> <x-dropdown-link :href="route('cup.results', 2)">{{ __('Cup LOS :year', ['year' => 2025])}}</x-dropdown-link> <x-dropdown-link :href="route('cup.results')">{{ __('Cup LOS :year', ['year' => 2024])}}</x-dropdown-link> <x-dropdown-link :href="route('rules')">{{ __('LOS Rules') }}</x-dropdown-link> </x-slot> </x-dropdown> <x-nav-link :href="route('range.index')" :active="request()->routeIs('range.*')">{{ __('Ranges') }}</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" :active="request()->is('admin/*')"> <x-slot name="trigger"> <button class="inline-flex h-full 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('range.create')">{{ __('Add new range') }}</x-dropdown-link> <x-dropdown-link :href="route('organizer.index')">{{ __('Organizer groups') }}</x-dropdown-link> <x-dropdown-link :href="route('users.index')">{{ __('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" :active="request()->is('support/*') || request()->routeIs('gdpr') || request()->routeIs('changelog') || request()->routeIs('contact')"> <x-slot name="trigger"> <button class="inline-flex h-full 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 :href="route('support.contestmaintenance')">{{ __('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('contact')">{{ __('Contact') }}</x-dropdown-link> </x-slot> </x-dropdown> @auth <!-- Settings Dropdown --> <x-dropdown align="right" width="48" :active="request()->routeIs('profile*')"> <x-slot name="trigger"> <button class="inline-flex h-full 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"> @auth<div :class="{ 'hidden': open }" class="mr-2">{{ Auth::user()->displayname }}</div>@endauth <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>