|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /var/www/account.appointkrypt.com/resources/views/users/ |
Upload File : |
@php
if(Auth::user()->type=='super admin')
{
$name = __('Customer');
}
else{
$name =__('User');
}
@endphp
{{Form::open(array('url'=>'users','method'=>'post'))}}
<div class="modal-body">
<div class="row">
<div class="col-md-12">
<div class="form-group">
{{Form::label('name',__('Name'),['class'=>'form-label']) }}
{{Form::text('name',null,array('class'=>'form-control','placeholder'=>__('Enter '.($name).' Name'),'required'=>'required'))}}
@error('name')
<small class="invalid-name" role="alert">
<strong class="text-danger">{{ $message }}</strong>
</small>
@enderror
</div>
</div>
@if(Auth::user()->type == 'super admin')
<div class="col-md-12">
<div class="form-group">
{{Form::label('Business_name',__('Business Name'),['class'=>'form-label']) }}
{{Form::text('Business_name',null,array('class'=>'form-control','placeholder'=>__('Enter Business Name'),'required'=>'required'))}}
@error('name')
<small class="invalid-name" role="alert">
<strong class="text-danger">{{ $message }}</strong>
</small>
@enderror
</div>
</div>
@endif
<div class="col-md-12">
<div class="form-group">
{{Form::label('email',__('Email'),['class'=>'form-label'])}}
{{Form::text('email',null,array('class'=>'form-control','placeholder'=>__('Enter '.($name).' Email'),'required'=>'required'))}}
@error('email')
<small class="invalid-email" role="alert">
<strong class="text-danger">{{ $message }}</strong>
</small>
@enderror
</div>
</div>
@if(Auth::user()->type != 'super admin')
<div class="col-md-12">
<div class="form-group">
{{ Form::label('roles', __('Roles'),['class'=>'form-label']) }}
{{ Form::select('roles',$roles, null, ['class' => 'form-control', 'id' => 'user_id', 'data-toggle' => 'select']) }}
<div class=" text-xs">
{{ __('Please create role here. ') }}
<a href="{{ route('roles.index') }}"><b>{{ __('Create role') }}</b></a>
</div>
</div>
</div>
<div class="col-md-12">
<div class="form-group">
{{Form::label('mobile_no',__('Mobile No'),['class'=>'form-label'])}}
{{Form::text('mobile_no',null,array('class'=>'form-control','placeholder'=>__('Enter User Mobile No')))}}
<div class=" text-xs text-danger">
{{ __('Please add mobile number with country code. (ex. +91)') }}
</div>
@error('mobile_no')
<small class="invalid-mobile" role="alert">
<strong class="text-danger">{{ $message }}</strong>
</small>
@enderror
</div>
</div>
@endif
<div class="col-md-5 mb-3">
<label for="password_switch">{{ __('Login is enable') }}</label>
<div class="form-check form-switch custom-switch-v1 float-end">
<input type="checkbox" name="password_switch" class="form-check-input input-primary pointer" value="on" id="password_switch" {{ company_setting('password_switch')=='on'?' checked ':'' }}>
<label class="form-check-label" for="password_switch"></label>
</div>
</div>
<div class="col-md-12 ps_div d-block">
<div class="form-group">
{{Form::label('password',__('Password'),['class'=>'form-label'])}}
{{Form::password('password',array('class'=>'form-control','placeholder'=>__('Enter User Password'),'minlength'=>"6"))}}
@error('password')
<small class="invalid-password" role="alert">
<strong class="text-danger">{{ $message }}</strong>
</small>
@enderror
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-light" data-bs-dismiss="modal">{{__('Cancel')}}</button>
{{Form::submit(__('Create'),array('class'=>'btn btn-primary'))}}
</div>
{{Form::close()}}