Submit New Category
@if(empty($selected_tournament) || empty($selected_tournament_event))
Please select tournament and event first before entering data.
@endif
@if(!empty($selected_tournament_event))
Tournament Event: {{ $selected_tournament_event->name }}
@endif
@if(!empty($selected_tournament))
Tournament: {{ $selected_tournament->name }}
@endif
@if(!empty($tournament->events) && count($tournament->events) > 0 )
@foreach ($tournament->events as $tournament_event)
@if(!empty($tournament_event->categories) && count($tournament_event->categories) > 0 )
@foreach ($tournament_event->categories as $category)
@if($category->type != "doubles")
@if(!empty($category->options) && count($category->options) > 0 )
@foreach ($category->options as $option)
@endforeach
@endif
@else
@if(!empty($category->options) && count($category->options) > 0 )
@foreach ($category->options as $option)
@php
$double_partner_request = \App\Models\RegisteredOptions::check_double_partner_request(Auth::user()->id, $option->id);
@endphp
@if ($category->type === 'doubles')
@if(\App\Models\PlayerRegistration::hasConfirmedPartner($option->id))
@else
@if(!empty( $double_partner_request) && count( $double_partner_request ) > 0)
@endif
@endif
@endif
@endforeach
@endif
@endif
@endforeach
@endif
@endforeach
@endif
{{-- @error('selectedOptions')
{{ $message }}
@enderror
@error('selectedPartners')
{{ $message }}
@enderror
@if ($errors->any())
@foreach ($errors->all() as $error)
{{ $error }}
@endforeach
@endif --}}
@if ($errors->any())
@foreach ($errors->all() as $error)
Error:
{{ $error }}
@endforeach
@endif
{{-- @foreach ($errors->get('selectedOptions.*') as $errorMessages)
@foreach ($errorMessages as $errorMessage)
Error:
{{ $errorMessage }}
@endforeach
@endforeach --}}