{{ Form::label('title', 'Profile information', ['class' => 'label form__label required']) }}
{{ Form::select('title', config('enums.titles'), $agent->user->title ?? null, ['class' => 'input input--select form__input form__input--title', 'required' => 'required', 'placeholder' => 'Title']) }} @role('new-agent') {{ Form::text('first_name', auth()->user()->first_name ?? null, ['class' => 'input form__input', 'placeholder' => 'First name', 'required' => 'required']) }} @else {{ Form::text('first_name', $agent->user->first_name ?? null, ['class' => 'input form__input', 'placeholder' => 'First name', 'required' => 'required']) }} @endrole
@role('new-agent') {{ Form::text('last_name', auth()->user()->last_name ?? null, ['class' => 'input form__input', 'placeholder' => 'Last name', 'required' => 'required']) }} {{ Form::email('email', auth()->user()->email ?? null, ['class' => 'input form__input', 'placeholder' => 'Email address', 'required' => 'required']) }} @else {{ Form::text('last_name', $agent->user->last_name ?? null, ['class' => 'input form__input', 'placeholder' => 'Last name', 'required' => 'required']) }} {{ Form::email('email', $agent->user->email ?? null, ['class' => 'input form__input', 'placeholder' => 'Email address', 'required' => 'required']) }} @endrole @hasanyrole('new-agent|agent') {{ Form::password('password', ['class' => 'input form__input', 'placeholder' => 'Password']) }} @endhasanyrole {{ Form::text('contact_number', null, ['class' => 'input form__input', 'placeholder' => 'Contact number', 'required' => 'required']) }}
{{ Form::label('gender', 'Gender', ['class' => 'label form__label required']) }}
  • {{ Form::radio('gender', 0, null, ['class' => 'choices__radio', 'required' => 'required']) }} {{ Form::label('gender', 'Male', ['class' => 'label choices__label']) }}
  • {{ Form::radio('gender', 1, null, ['class' => 'choices__radio', 'required' => 'required']) }} {{ Form::label('gender', 'Female', ['class' => 'label choices__label']) }}
{{ Form::label('address_line_1', 'Address', ['class' => 'label form__label required']) }} {{ Form::text('address_line_1', old('address_line_1'), ['class' => 'input form__input', 'placeholder' => 'Address line 1', 'required' => 'required']) }} {{ Form::text('address_line_2', old('address_line_2'), ['class' => 'input form__input', 'placeholder' => 'Address line 2']) }} {{ Form::text('county', old('county'), ['class' => 'input form__input', 'placeholder' => 'County', 'required' => 'required']) }} {{ Form::text('postcode', old('postcode'), ['class' => 'input form__input form__input--small', 'placeholder' => 'Postcode', 'required' => 'required']) }}
{{ Form::label('can_provide_affidavit', 'Can you provide a sworn affidavit?', ['class' => 'label form__label form__label--long required']) }}
  • {{ Form::radio('can_provide_affidavit', 0, null, ['class' => 'choices__radio']) }} {{ Form::label('can_provide_affidavit', 'No', ['class' => 'label choices__label']) }}
  • {{ Form::radio('can_provide_affidavit', 1, null, ['class' => 'choices__radio']) }} {{ Form::label('can_provide_affidavit', 'Yes', ['class' => 'label choices__label']) }}
{{ Form::label('can_provide_affirmation', 'Can you provide a sworn affirmation?', ['class' => 'label form__label form__label--long required']) }}
  • {{ Form::radio('can_provide_affirmation', 0, null, [ 'class' => 'choices__radio' ]) }} {{ Form::label('can_provide_affirmation', 'No', ['class' => 'label choices__label']) }}
  • {{ Form::radio('can_provide_affirmation', 1, null, [ 'class' => 'choices__radio' ]) }} {{ Form::label('can_provide_affirmation', 'Yes', [ 'class' => 'label choices__label' ]) }}
{{ Form::label('interpreter_types[]', 'Interpreter Type:', ['class' => 'label form__label required']) }} @foreach (App\Agent::$agentTypes as $key => $agentType)
{{ Form::checkbox('interpreter_types[]', $key, isset($agent) ? $agent->user->getRoleNames()->contains($key) : null, [ 'class' => 'form__radio interpreter-type' ]) }} {{ Form::label('interpreter_types', $agentType, ['class' => 'label form__label form__label--radio']) }}
@endforeach
{{ Form::label('skills[]', 'Skills / Services', ['class' => 'label form__label required']) }}
@foreach ($skills as $skill)
{{ Form::checkbox('skills[]', $skill->id, isset($agent) ? $agent->skills->contains($skill) : null, [ 'class' => 'form__radio', ]) }} {{ Form::label('skills', $skill->skill, ['class' => 'label form__label form__label--radio']) }}
@endforeach
{{ Form::label('languages[]', 'Please add your languages', ['class' => 'label form__label required']) }}

If you don't see your language you can type the name of the language and press enter to add it

{{ Form::select('languages[]', $languages, isset($agent) ? $agent->languages : null, [ 'class' => 'input input--select form__input', 'required' => 'required', 'id' => 'languagesSelect', 'multiple' => 'multiple' ]) }}
{{ Form::label('skype_details', 'Skype details', [ 'class' => 'label form__label' ]) }} {{ Form::textarea('skype_details', null, [ 'class' => 'input input--textarea form__input', 'placeholder' => 'Skype details' ]) }}
@if (isset($agent)) Profile Picture @endif
{{ Form::label('documents', 'Please upload a profile picture', ['class' => 'label form__label required']) }} @if (isset($agent)) @else @endif
{{ Form::label('contact_method', 'Please select how you would like to be notified', ['class' => 'label form__label']) }} @foreach ($contactMethods as $key => $contactMethod)
{{ Form::checkbox('contact_method[]', $contactMethod->id, isset($agent) ? $agent->contactMethods->contains($contactMethod) : $key == 0, ['class' => 'form__radio']) }} {{ Form::label('contact_method', $contactMethod->contact_method, ['class' => 'label form__label form__label--radio']) }}
@endforeach
@role('admin')
{{ Form::label('restrict_job_notifications', 'Notifications:', ['class' => 'label form__label']) }}
{{ Form::hidden('restrict_job_notifications', 0) }} {{ Form::checkbox('restrict_job_notifications', 1, null, ['class' => 'form__radio']) }} {{ Form::label('restrict_job_notifications', 'Restrict job notifications', ['class' => 'label form__label form__label--radio']) }}
@endrole
@push('scripts') @endpush