@if (\Auth::user()->type == 'super admin')
@php $url='consultants' @endphp
@else
@php $url='save_consultant' @endphp
@endif
{{ Form::open([
'url' => $url,
'method' => 'post',
'id' => 'users_form',
'autocomplete' => 'off',
'enctype' => 'multipart/form-data',
]) }}
{{ Form::label('name', __('First Name'), ['class' => 'form-label']) }}
*
{{ Form::text('name', null, [
'class' => 'form-control',
'maxlength' => 35,
'placeholder' => __('Enter First Name'),
'oninput' => 'alphaOnly(this);',
'required' => 'required',
]) }}
@error('name')
{{ $message }}
@enderror
{{ Form::label('lname', __('Last Name'), ['class' => 'form-label']) }}*
{{ Form::text('lname', null, [
'class' => 'form-control',
'id' => 'lname',
'placeholder' => __('Enter Last Name'),
'autocomplete' => 'off',
'oninput' => 'alphaOnly(this);',
'required' => 'required',
]) }}
@php
$rndColor = Utility::rndRGBColorCode(); #function call
@endphp
@php
$password = Utility::randomPassword(); #function call
@endphp
{{ Form::label('email', __('Email Address'), ['class' => 'form-label']) }}
*
{{ Form::text('email', null, [
'class' => 'form-control',
'id' => 'email',
'placeholder' => __('Enter User Email'),
'autocomplete' => 'off',
'required' => 'required',
]) }}
{{ __('Email Already Exist!') }}
@error('email')
{{ $message }}
@enderror
{{ Form::label('gender', __('Gender'), ['class' => 'form-label']) }}
{!! Form::select('gender', $gender, 'null', ['class' => 'form-control', 'required' => 'required']) !!}
@error('role')
{{ $message }}
@enderror
@if (!$customFields->isEmpty())
@include('customFields.formBuilder')
@endif
{{ Form::close() }}