{!! Form::label('username',trans('messages.username'),['class'=>'required']) !!}
{!! Form::label('email',trans('messages.email'),[]) !!}
{!! Form::label('password',trans('messages.password'),['class'=>'required']) !!}
{!! Form::label('password_confirmation',trans('messages.confirm').' '.trans('messages.password'),['class'=>'required']) !!}

{!! Form::label('first_name',trans('messages.name'),['class'=>'required']) !!}
{!! Form::label('nationality','IC '.trans('messages.type'),['class'=>'required']) !!} {!! Form::select('nationality',App\User::$nationality,'',['class'=>'form-control show-tick','title'=>trans('messages.select_one'),'id'=>'userNationality','onchange'=>'showDateIssued(this)']) !!}
{!! Form::label('date_of_birth',trans('messages.date_of').' '.trans('messages.birth'),['class'=>'required']) !!}
{!! Form::label('unique_identification_number',trans('messages.nric'),['class'=>'required']) !!}
{!! Form::label('phone',trans('messages.phone'),['class'=>'required']) !!}
{!! Form::label('nationality_country_code',trans('messages.nationality'),[])!!} {!! tooltip(trans('messages.passport').' '.trans('messages.issuing').' '.trans('messages.country')) !!} {!! Form::select('nationality_country_code', [null => trans('messages.select_one')] + config('country'),301,['class'=>'form-control','title'=>trans('messages.country')]) !!}
{!! Form::label('ethnic_group',trans('messages.ethnic_group'),[]) !!} {!! Form::select('ethnic_group',App\User::$ethnic_group,'',['class'=>'form-control show-tick','title' => trans('messages.select_one')]) !!}
{!! Form::label('shg_fund',trans('messages.shg_fund'),[]) !!} {!! Form::select('shg_fund',App\User::$shg_fund_type,'',['class'=>'form-control show-tick','title' => trans('messages.select_one')]) !!}

@if (env('COMPANY_ID') == 36) {{-- Fervour Custom Logic --}} @if (Laratrust::isAbleTo('change-user-role'))
{!! Form::label('role_id',trans('messages.user').' '.trans('messages.role'),['class'=>'required']) !!} {!! Form::select('role_id', $roles, 3,['class'=>'form-control show-tick','title' => trans('messages.select_one')]) !!}
@else
{!! Form::label('role_id',trans('messages.user').' '.trans('messages.role'),['class'=>'required']) !!} {!! Form::select('role_id', \App\Role::whereIn('id',[3,8])->pluck('name','id'), 3,['class'=>'form-control show-tick','title' => trans('messages.select_one')]) !!}
@endif @else
{!! Form::label('role_id',trans('messages.user').' '.trans('messages.role'),['class'=>'required']) !!} {!! Form::select('role_id', $roles, 3,['class'=>'form-control show-tick','title' => trans('messages.select_one')]) !!}
@endif
{!! Form::label('designation_id',trans('messages.user').' '.trans('messages.designation'),['class'=>'required']) !!} {!! Form::select('designation_id', $designations,'',['class'=>'form-control show-tick','title'=>trans('messages.select_one'),'id'=>'userDesignation','onchange'=>'showFields(this)']) !!}
{{ getCustomFields('user-registration-form') }}
@section('js') @endsection