@php use App\Models\CountryCurrency; $country_currencies = CountryCurrency::select(DB::raw('CONCAT(country_name, " (", code, ")") as code'), 'id')->pluck('code', '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('role', __('Role')) !!}
{!! Form::label('password', __('Password')) !!} {!! Form::password('password', ['class' => 'form-control','maxlength' => 191,'minlength' => 8]) !!}
{!! Form::label('pin', __('PIN')) !!}* {!! Form::password('pin', ['class' => 'form-control','required','minlength' => 4,'maxlength' => 8]) !!}
{!! Form::label('phone', __('Phone')) !!} {!! Form::text('phone', null, ['class' => 'form-control','maxlength' => 191]) !!}
{!! Form::label('address', __('Address')) !!} {!! Form::text('address', null, ['class' => 'form-control','maxlength' => 191]) !!}
{!! Form::label('country_currency_id', __('Currency')) !!} {!! Form::select('country_currency_id', $country_currencies, null, ['class' => 'form-control select2','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::button(' '. __("Submit"), ['type' => 'submit', 'class' => 'btn btn-primary '] ) }} {{ __('Cancel') }}
{{-- @include('includes.ckeditor') --}} @section('script') @endsection