@if ($participant->id)
{!! Form::model($participant, ['route' => ['admin.competitions.participants.update', ['competition' => $participant->competition, 'participant' => $participant]], 'method' => 'PUT', 'enctype' => 'multipart/form-data']) !!}
@else
{!! Form::model($participant, ['route' => ['admin.competitions.participants.store', $competition], 'method' => 'POST', 'enctype' => 'multipart/form-data']) !!}
@endif
{{-- participant --}}
{!! Form::label('participantable_id', 'Participant', ['class' => 'col-form-label']) !!}
{!! Form::select('participantable_id', $participant->participantable ? [$participant->participantable->uuid => $participant->participantable->name] : [], $participant->participantable?->uuid, [
'class' => 'form-select', 'data-kt-select2' => 'true',
'data-placeholder' => 'Select Participant',
'data-allow-clear' => 'true',
'data-remote' => route('resource-select', ['groupedCompany']),
]) !!}
{{-- refrence id --}}
{{ Form::label('reference_id', __('Reference ID'), ['class' => 'col-form-label']) }}
{{ Form::text('reference_id', null, ['class' => 'form-control', 'placeholder' => __('Reference ID')]) }}
{{-- currency --}}
{{ Form::label('currency', __('Currency'), ['class' => 'col-form-label']) }}
{!! Form::select('currency', $currency ?? [cCurrency($participant->currency)->getSymbol() => cCurrency($participant->currency)->getName()], $participant->currency, [
'data-placeholder' => 'Select Currency',
'class' => 'form-select', 'data-kt-select2' => 'true',
'data-remote' => route('resource-select', ['Currency']),
'data-allow-clear' => 'true',
'disabled' => true
])!!}
{{-- amount --}}
{{ Form::label('amount', __('Amount'), ['class' => 'col-form-label']) }}
{!! Form::number('amount', null, ['class' => 'form-control', 'placeholder' => __('0.00')]) !!}
{{ Form::label('team', __('Team'), ['class' => 'col-form-label']) }}
{{ Form::text('team', null, ['class' => 'form-control', 'placeholder' => __('Team')]) }}
{{-- actions --}}
{!! Form::close() !!}