%PDF- %PDF-
Direktori : /www/loslex/test/resources/views/registration/ |
Current File : //www/loslex/test/resources/views/registration/show.blade.php |
<x-app-layout> @push('footerelements') <x-modal name="confirm-deletion" focusable> <div class="p-4"> <h3 class="text-center">{{__('Delete registration?')}}</h3> <div class="mt-6 flex justify-center"> <x-secondary-button x-on:click="$dispatch('close')">{{ __('Cancel') }}</x-secondary-button> <a href="{{ route('registration.destroy', [$registration->id, $registration->canceltoken]) }}"><x-danger-button class="ml-4">{{ __('Delete registration') }}</x-danger-button></a> </div> </div> </x-modal> @endpush <x-slot name="pagetitle">{{__('Registration details')}} - {{ $registration->contest->contestname }}</x-slot> <x-slot name="header"><h2 class="text-gray-800 dark:text-gray-200 leading-tight">{{ $registration->contest->contestname }}</h2></x-slot> <div class="m-auto grid grid-cols-[max-w-full_auto] gap-x-2 lg:gap-x-4 gap-y-1 w-full lg:w-3/4 pb-2"> <div class="col-span-2 text-center space-x-2 mb-6"> <a class="no-underline" href="{{route('contest.show', $registration->contest->id)}}"><x-primary-button>{{__('Display contest')}}</x-primary-button></a> @if (!$registration->contest->isAfterReg) <a class="no-underline" href="{{route('registration.edit', $registration->id)}}"><x-primary-button>{{__('Change registration')}}</x-primary-button></a> <x-danger-button x-data="" x-on:click.prevent="$dispatch('open-modal', 'confirm-deletion')">{{__('Delete registration')}}</x-danger-button> @endif </div> <div class="text-center text-lg font-bold align-top col-span-2 border-b">{{$registration->contest->contestname}}</div> @if (auth()->user()?->is_admin) <div class="text-right font-bold align-top">{{__('Name')}}</div> <div>{{$registration->user->displayname}}</div> @endif <div class="text-right font-bold align-top">{{__('Range')}}</div> <div>{{$registration->contest->range->name}}</div> <div class="text-right font-bold align-top">{{__('Date')}}</div> <div>{{ $registration->contest->date->isoFormat('LL') }}</div> <div class="text-right font-bold align-top">{{__('Presentation')}}</div> @if($registration->contest->squadshootstyle=='together') <div>{{ $registration->contest->presentation_start[0] }} - {{ $registration->contest->presentation_end[0] }}</div> @else <div>{{ $registration->contest->presentation_start[$registration->squad] }} - {{ $registration->contest->presentation_end[$registration->squad] }}</div> @endif <div class="text-right font-bold align-top">{{__('Contest duration')}}</div> @if($registration->contest->squadshootstyle=='together') <div>{{ $registration->contest->contest_start[0] }} - {{ $registration->contest->contest_end[0] }}</div> @else <div>{{ $registration->contest->contest_start[$registration->squad] }} - {{ $registration->contest->contest_end[$registration->squad] }}</div> @endif <div class="text-right font-bold align-top">{{__('Squad')}}</div> <div>{{ $registration->squad == 0 ? 'R' : $registration->squad }}</div> @if ($registration->division) <div class="text-right font-bold align-top">{{__('Division')}}</div> <div>{{ __('contest.' . $registration->division->division) }} {{ $registration->notcomp ? __('(Not competing)') : '' }}</div> @endif @if ($registration->rookie) <div class="text-right font-bold align-top">{{__('I\'m beginner')}}</div> <div>{{ __('contest.' . \App\Enums\ContestOptionsEnum::from($registration->rookie)->name) }}</div> @endif <div class="text-right font-bold align-top">{{__('Referee or helper at stage')}}</div> <div>{{ __('contest.' . \App\Enums\ContestOptionsEnum::from($registration->referee)->name) }}</div> <div class="text-right font-bold align-top">{{__('I\'ll help to build the contest')}}</div> <div>{{ __('contest.' . \App\Enums\ContestOptionsEnum::from($registration->builder)->name) }}</div> <div class="text-right font-bold align-top">{{__('Member of LEX')}}</div> <div> @php $validMemberStatus = $registration->user->is_valid_member($registration->contest->date); @endphp @if ($registration->lexmember && $validMemberStatus) {{ __('contest.' . \App\Enums\ContestOptionsEnum::YES->name) }} @else {{ __('contest.' . \App\Enums\ContestOptionsEnum::NO->name) }} @endif @if ($registration->lexmember) @if (!is_null($registration->user->lex_hash))<a class="inline" target="lexmembership" href="https://k.gunlex.cz/{{$registration->user->lex_hash}}">@endif <div class="@switch($validMemberStatus) @case(-2) fa-solid fa-circle-question text-blue-500 @break @case(-1) fa-solid fa-triangle-exclamation text-amber-500 @break @case(0) fa-solid fa-circle-xmark text-red-500 @break @case(1) fa-solid fa-circle-check text-green-500 @break @endswitch" title="{{$registration->user->lex_hash ?? __('Membership control code not provided')}}"></div> @if (!is_null($registration->user->lex_hash))</a>@endif @endif </div> <div class="text-right font-bold align-top">{{__('Note')}}</div> <div>{{ empty($registration->note) ? ' --- ' : $registration->note }}</div> <div class="text-right font-bold align-top">{{__('Payment status')}}</div> <div class="{{ $registration->paid ? "payment-status-paid" : "payment-status-not-paid" }}">{{ $registration->paid ? __('Paid') : __('Not paid') }}</div> @if (!$registration->paid) <div class="text-right font-bold align-top">{{__('Entry fees')}}</div> @if ($registration->user->is_valid_member() > 0) <div>{{ __('LEX members') }}: {{ $registration->contest->feelex }} Kč</div> @else <div>{{ __('Other contestants') }}: {{ $registration->contest->feeothers }} Kč</div> @endif @if ($registration->contest->accountnumber) {{-- <div class="text-right font-bold align-top">{{__('SPAYD')}}</div> <div>{{ $registration->spayd }}</div> --}} <div class="text-right font-bold align-top">{{__('Bank payment information')}}</div> <div> <div> <span class="font-semibold">{{ __('Account number') }}</span>: {{ $registration->contest->accountnumber }} <x-button-clipboard>{{ $registration->contest->accountnumber }}</x-button-clipboard> </div> @if ($registration->contest->accvarsym) <div> <span class="font-semibold">{{ __('Variable symbol') }}</span>: {{ $registration->contest->accvarsym }} <x-button-clipboard>{{ $registration->contest->accvarsym }}</x-button-clipboard> </div> @endif @if ($registration->contest->accnote) <div> <span class="font-semibold">{{ __('Payment note') }}</span>: {{ $registration->paymentnote }} <x-button-clipboard>{{ $registration->paymentnote }}</x-button-clipboard> </div> @endif </div> {{-- <div class="text-right font-bold align-top">{{ __('QR payment') }}</div> <div>{{ $registration->qr }}</div> --}} <div class="text-right font-bold align-top">{{ __('QR payment') }}</div> <div><img src="data:image/png;name=qrpayment.png;base64, {!! base64_encode($registration->qrimg) !!} "></div> @endif @if ($registration->contest->acccondition) <div class="text-right font-bold align-top">{{__('Payment conditions')}}:</div> <div>{{ $registration->contest->acccondition }}</div> @endif <div class="mt-4 col-span-2 italic">{!! __('tooltips.contactorg', ['email' => $registration->contest->organizerEmail ?? $registration->contest->director?->email, 'subject' => $registration->contest->contestname]) !!}</div> @endif </div> </x-app-layout>