@csrf
@if($customFields->isNotEmpty()) @foreach($customFields->sortBy('order') as $field)
@if($field->type !== 'checkbox') @if($field->file_path && \Storage::disk('public')->exists($field->file_path)) {{ $field->label }} @elseif($field->link) {{ $field->label }} @else {{ $field->label }} @endif @endif @switch($field->type) @case('text') @break @case('textarea') @break @case('number') @break @case('date') @break @case('checkbox') required) required @endif /> @if($field->file_path && \Storage::disk('public')->exists($field->file_path)) {{ $field->label }} @elseif($field->link) {{ $field->label }} @else {{ $field->label }} @endif @break @case('select') @break @case('multiselect')
@foreach($field->options ?? [] as $option)
id, []))) checked @endif /> {{ $option['value'] }}
@endforeach
@if($field->required) @endif @break @endswitch
@endforeach @endif
{{ __('auth.register') }} {{ __('auth.already_registered') }}