@php use App\Models\CountryCurrency; $country_currencies = CountryCurrency::selectRaw('CONCAT(country_name, " - ", code) as concatenated_name,id') ->pluck('concatenated_name', 'id'); @endphp
{!! Form::label('name', __('Name')) !!}* {!! Form::text('name', null, ['class' => 'form-control','required','maxlength' => 191]) !!}
{!! Form::label('email', __('Email')) !!}* {!! Form::email('email', null, ['class' => 'form-control','required','maxlength' => 191]) !!}
{!! Form::label('phone', __('Phone')) !!} {!! Form::text('phone', null, ['class' => 'form-control','maxlength' => 191]) !!}
{!! Form::label('password', __('Password')) !!}* {!! Form::password('password', ['class' => 'form-control','required','minlength' => 8,'maxlength' => 191]) !!}
{!! Form::label('pin', __('PIN')) !!}* {!! Form::password('pin', ['class' => 'form-control','required','minlength' => 4,'maxlength' => 8]) !!}
{!! Form::label('address', __('Address')) !!} {!! Form::text('address', null, ['class' => 'form-control','maxlength' => 191]) !!}
{!! Form::label('country_currency_id', __('Country Currency')) !!} {!! Form::select('country_currency_id', $country_currencies, null, ['class' => 'form-control select2m','placeholder' => 'Currency','required']) !!}
{!! Form::label('initial_balance', __('Initial Balance on New User Currency')) !!} {!! Form::number('initial_balance', 0, ['class' => 'form-control','placeholder' => 'Initial Balance on New User Currency','required','readonly'=>'readonly']) !!}
{!! Form::label('commission', __('Commission Percentage')) !!} {!! Form::number('commission', 0, ['class' => 'form-control','placeholder' => 'Commission Percentage','steps'=>'any','required']) !!}
{!! Form::label('parent_role_id', __('Role')) !!} {!! Form::select('parent_role_id', $parent_roles, null, ['class' => 'form-control','placeholder' => 'Role','required']) !!}
@isset($user) @endisset

{!! Form::label('image', __('Image')) !!} {!! Form::file('image',['class' => 'form-control dropify']) !!}
{{ Form::button(' '.__('Submit'), ['type' => 'submit', 'class' => 'btn btn-primary '] ) }} {{ __('Cancel') }}
@include('includes.dropify')