@extends('layouts.app') @section('header_h')

Dodatkowe opcje

Dodatkowe opcje

@endsection @section('content')

Zawodnik

Wybierz zawodnika

Konkurencja

Wybierz kategorię

Opcje

Dodatkowe opcje

Podsumowanie

Podsumowanie

Dodatkowe opcje

Zawody

{{ $competition->name }}

Zawodnik

{{ $member->name }} {{ $member->surname }}

Konkurencja

{{ $category->name }}

@if($errors->any())
Błąd walidacji — popraw poniższe pola:
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @foreach ($competition->ayn as $ayn) @if($loop->first)
@else
@endif {{ $ayn->question}}{{ preg_match('/\?/', $ayn->question) ? '' : '?' }}
@endforeach @foreach ($competition->atf as $atf)
{{ $atf->text_field}} atf_required ? 'required' : '' }}>
@endforeach {{-- ===================== UBEZPIECZENIE UDAO ===================== --}} @if($competition->insurance_enabled)
Ubezpieczenie UDAO
Czy chcesz skorzystać z ubezpieczenia?
{{-- Formularz ubezpieczenia (widoczny po wyborze TAK) --}} {{-- end x-show choice === yes --}}
@endif {{-- ===================== KONIEC UBEZPIECZENIA ===================== --}}
Klub - opcjonalnie
@forelse ($competition->clubs as $club) @if($loop->first)
Wybierz z listy, wpisz nowy lub pozostaw puste jeśli nie dotyczy
@endif @empty
Wprowadź nazwę klubu lub pozostaw puste jeśli nie dotyczy
@endforelse
@forelse ($competition->lst as $lst)
{{$lst->name}}
@empty @endforelse
Wstecz
@if (count($competition->categories) > 0)

Koszt uczestnictwa

@foreach ($competition->categories as $category)
{{ $category->name }}
@if (($category->members->count() >= $category->limit) AND ($category->limit > 0))
Brak miejsc
@else @if ($category->promoCost->count() > 0) @if ($category->promoCost->first()->cost == 0)
Bezpłatnie
@else
{{ $category->default_cost() }} zł
{{ ($category->promoCost->first()->cost) }} zł
@endif @elseif ($category->default_cost() == 0)
Bezpłatnie
@else
{{ ($category->default_cost()) }} zł
@endif @endif
@endforeach
@endif @if (count(auth()->user()->addedMembers($competition->id)) > 0)

Twoi zawodnicy zgłoszeni do zawodów

    @foreach (auth()->user()->addedMembers($competition->id) as $userMember) @if (isset($userMember->category()->where('competition_id', $competition->id)->first()->name))
  • {{ $userMember->name }} {{ $userMember->surname }} - {{ ($userMember->category()->where('competition_id', $competition->id)->firstOrFail()->name) }}
  • @endif @endforeach
@endif
@endsection