@inject('role_helper', 'App\Helpers\RoleHelper')
{{ym_input(['label'=>__('form.name'), 'type'=>'text','name'=>'name', 'required'=>true, ])}} {{ym_input([ 'label'=>__('form.email'), 'type'=>'email', 'name'=>'email', 'required'=>true, 'placeholder'=>'email@example.com', ])}} @if (!$model->exists) {{ym_input([ 'label'=>__('form.password'), 'type'=>'password', 'name'=>'password', 'required'=>true, 'placeholder'=>'xxxxxxxxx', ])}} {{ym_input([ 'label'=>__('form.confirm_password'), 'type'=>'password', 'name'=>'password_confirmation', 'required'=>true, 'placeholder'=>'xxxxxxxxx', ])}} @endif {{ym_select2([ 'label'=>__('form.roles'), 'type'=>'multiselect', 'name'=>'roles', 'required'=>true, 'placeholder'=>'Select Roles', 'id'=>'select-role', 'options'=>$role_helper->dropdown(), 'value'=>$model->roles->pluck('id'), ])}}