@php use App\Models\CountryCurrency; $country_currencies = CountryCurrency::selectRaw('CONCAT(country_name, " - ", code) as concatenated_name,id') ->pluck('concatenated_name', 'id'); @endphp @extends(Auth::user()->extender()) @section('title'){{__('Create')}} {{ __('Users') }} @endsection @section('content') @include('includes.page_header',['title'=>__('Create')." ". __('Users'),'url'=>route(Auth::user()->user_dashboard()),'icon' => $icon??'','permission'=>'PriorityRoute-view'])
{!! Form::open(['route' => 'user_creation.storeuser', 'files' => true]) !!}
{!! Form::label('name', __('Name')) !!} {!! Form::text('name', null, ['class' => 'form-control','placeholder' => 'Name','required']) !!}
{!! Form::label('email', __('Email')) !!} {!! Form::email('email', null, ['class' => 'form-control','placeholder' => 'Email','required']) !!}
{!! Form::label('phone', __('Phone')) !!} {!! Form::tel('phone', null, ['class' => 'form-control','placeholder' => 'Phone','required']) !!}
{!! Form::label('password', __('Password')) !!} {!! Form::text('password', null, ['class' => 'form-control','placeholder' => 'Password','required']) !!}
{!! Form::label('pin', __('PIN')) !!} {!! Form::text('pin', null, ['class' => 'form-control','placeholder' => 'PIN','required']) !!}
{!! 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')) !!} {!! Form::number('initial_balance', 0, ['class' => 'form-control','placeholder' => 'Initial Balance','required','readonly'=>'readonly']) !!}
{!! Form::label('commission', __('Commission')) !!} {!! Form::number('commission', 0, ['class' => 'form-control','placeholder' => 'Commission','steps'=>'any','required','readonly'=>'readonly']) !!}
{!! Form::label('parent_role_id', __('Role')) !!} {!! Form::select('parent_role_id', $parent_roles, null, ['class' => 'form-control','placeholder' => 'Role','required']) !!}

{{ Form::button(' '.__('Create'), ['type' => 'submit', 'class' => 'btn btn-primary '] ) }} {{ __("Cancel") }}
{!! Form::close() !!}
@endsection