%PDF- %PDF-
Direktori : /www/loslex/test/resources/views/cup/ |
Current File : //www/loslex/test/resources/views/cup/los.blade.php |
<x-app-layout> <x-slot:contentwidth>max-w-full</x-slot> <x-slot name="pagetitle">{{ $cup->CupInfo->Name }}</x-slot> <x-slot name="header"><h2 class="font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight">{{ $cup->CupInfo->Name }}</h2></x-slot> @if ($cup->Divisions) <div class="w-fit" id="resultsTabContents" x-data="{ pin : true }"> <!--Tabs navigation--> <ul class="list-none w-full flex flex-wrap text-sm font-medium text-center text-gray-500 border-b border-gray-200 dark:border-gray-700 dark:text-gray-400" data-tabs-toggle="#resultsTabContents" role="tablist"> @foreach($cup->Divisions as $division) <li class="mr-2" role="presentation"> <button class="inline-block text-gray-500 hover:text-gray-600 hover:border-gray-300 rounded-t-lg py-4 px-4 text-sm font-medium text-center border-transparent border-b-2 dark:text-gray-400 hover:dark:border-gray-600 dark:hover:text-gray-300" id="division-{{ $division->BgDivision }}-tab" data-tabs-target="#division-{{ $division->BgDivision }}" type="button" role="tab" aria-controls="division-{{ $division->BgDivision }}" aria-selected="false">{{ __("contest." . $division->BgDivision) }}</button> </li> @endforeach </ul> <!--Tabs content--> @foreach($cup->Divisions as $division) <div class="hidden p-4 rounded-lg" id="division-{{ $division->BgDivision }}" role="tabpanel" aria-labelledby="division-{{ $division->BgDivision }}-tab"> <div class="border border-gray-400 rounded-lg p-2 mb-4 text-sm"> <div> @if ($cup->CupInfo->isBeforeDecisionDate()) {{ trans_choice('cup.predecisivepastcontests', $division->PastContests, ['value' => $division->PastContests, 'division' => __("contest." . $division->BgDivision)]) }} {{ trans_choice('cup.predecisivefuturecontests', $division->FutureContests, ['value' => $division->FutureContests, 'futurepzz' => $division->FutureUsedContests, 'ddate' => $cup->CupInfo->decisionDate->isoFormat('LL')]) }} @else {{ trans_choice('cup.postdecisivepastcontests', $division->PastContests, ['value' => $division->PastContests, 'division' => __("contest." . $division->BgDivision), 'bdd' => $division->UsedContestsBase, 'ddate' => $cup->CupInfo->decisionDate->isoFormat('LL')]) }} {{ trans_choice('cup.postdecisivefuturecontests', $division->FutureContests, ['value' => $division->FutureContests]) }} @endif </div> <div> {{ __('cup.cupresults', ['value' => $division->UsedContests]) }} </div> </div> @php $rank = 1; @endphp @foreach($division->EligibleShooters as $shooter) @include('cup.shooter', ['rank' => $rank++]) @endforeach <h3>{{__('cup.notqualified')}}</h3> @foreach($division->NotEligibleShooters as $shooter) @include('cup.shooter', ['rank' => $rank++]) @endforeach </div> @endforeach </div> @else <div class="">{{ __('There are no results in this cup yet!') }}</div> @endif </x-app-layout>