{!! Form::text('name', $consultant->name ?? null, ['class' => 'form-control','required'=>"required"]) !!}
{!! Form::text('phone', $consultant->phone ?? null, ['class' => 'form-control','required'=>"required"]) !!}
{!! Form::email('email', $consultant->email ?? null, ['class' => 'form-control ','required'=>"required",]) !!}
@if(!($consultant ?? false))
@endif
@if(!($consultant ?? false))
{!! Form::password('password', ['class' => 'form-control','required'=>"required"]) !!}
@else
{!! Form::password('password', ['class' => 'form-control']) !!}
@endif
{!! Form::number('price_per_consultation', $consultant->price_per_consultation ?? null, ['class' => 'form-control','required'=>"required", 'step' => '.01',]) !!}
{!! Form::time('per_hour', $consultant->per_hour ?? Carbon\Carbon::now()->format('H:i'), ['class' => 'form-control','required'=>"required"]) !!}
{!! Form::number('percentage_taken', $consultant->percentage_taken ?? null, ['class' => 'form-control','required'=>"required", 'step' => '.1','max' => 100,'min' => 0]) !!}
{!! Form::label('name', __('Status')) !!}
@php
$options = [];
if($allStatus){
foreach($allStatus as $status) {
$options[$status] = __($status);
}
}
@endphp
{!! Form::select('status', $options,$consultant->status ?? null, ['class' => 'form-control','required' => 'required']) !!}
{!! Form::label('name', __('Your specialized countries'),['class' => 'h6 form-label required']) !!}
{!! Form::select('country_id', $countries, $consultant->country->id ?? null, ['class' => 'form-control','required'=>"required",'id'=>"country-select"]) !!}
{!! Form::select('city', $cities ?? [], $consultant->city ?? null , ['class' => 'form-control','required'=>"required",'id'=>"city-select"]) !!}
{!! Form::label('name', __('Your languages'),['class' => 'h6 form-label ']) !!}
{!! Form::date('date_of_birth', $consultant->date_of_birth ?? null, ['class' => 'form-control ']) !!}
{!! Form::text('national_id', $consultant->national_id ?? null, ['class' => 'form-control ']) !!}
{!! Form::select('gender',[null=>'','male'=>__('male'),'female'=>__('female')],$consultant->gender ?? null, ['class' => 'form-control ']) !!}
{!! Form::text('whatsapp',$consultant->whatsapp ?? null, ['class' => 'form-control ']) !!}
{!! Form::textarea('bio', $consultant->bio ?? null, ['class' => 'form-control ',]) !!}
specialized_countries ?? null)
value="{{$consultant->specialized_countries->pluck('id')?? null}}"
@endif >
languages ?? null)
value="{{$consultant->languages->pluck('id')?? null}}"
@endif>
{!! Form::label('name', __('Your Domains'),['class' => 'h5 form-label ']) !!}
{!! Form::label('name', __('Add domain')) !!}
{!! Form::button("+", ['class' => 'btn btn-info ','id'=>'addDomain']) !!}
@foreach ($consultant->domains ?? [] as $domain)
{!! Form::text('interests[]', $domain, ['class' => 'form-control ','required'=>'required']) !!}
{!! Form::label('name', __('Remove Input')) !!}
{!! Form::button("-", ['class' => 'btn btn-danger removeGroup ']) !!}
@endforeach
{!! Form::label('name', __('Your Interests'),['class' => 'h5 form-label ']) !!}
{!! Form::label('name', __('Add Interset')) !!}
{!! Form::button("+", ['class' => 'btn btn-info ','id'=>'addInterset']) !!}
@foreach ($consultant->interests ?? [] as $interest)
{!! Form::text('interests[]', $interest, ['class' => 'form-control ','required'=>'required']) !!}
{!! Form::label('name', __('Remove Input')) !!}
{!! Form::button("-", ['class' => 'btn btn-danger removeGroup ']) !!}
@endforeach
@push('css')
@endpush
@push('js')
@endpush