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
@php
$oldBirthDate = old('insurance_birth_date', $member->date_of_birth);
$oldCitizenship = old('insurance_citizenship_code', array_search($member->nationality, config('countries')) ?: 'PL');
$oldChoice = old('insurance_choice', '');
$oldBirthCountry = old('insurance_birth_country_code', strtoupper(substr($member->nationality ?? 'PL', 0, 2)));
$oldInsurerBirthCountry = old('insurer_birth_country_code', 'PL');
$oldInsurerCitizenship = old('insurer_citizenship_code', 'PL');
@endphp
@if (count($competition->categories) > 0)
@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)
@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