@extends('admin._layouts.master') @section('content') {!! Form::model($user, ['url' => $action, 'method' => $method]) !!}

@transTitleCase('.basic_info')

{!! FormGroup::text('username', transUc('models.user.email'), null, ['class' => 'form-control', 'placeholder' => 'Email']) !!} {!! FormGroup::text('fullname', transUc('models.user.fullname')) !!}
{!! FormGroup::password('password', transUc('models.user.password'), ['autocomplete' => 'new-password']) !!} {!! FormGroup::password('password_confirmation', transUc('models.user.password_confirmation'), ['autocomplete' => 'new-password']) !!}
{!! FormGroup::password('pin', transUc('models.user.pin')) !!} {!! FormGroup::password('pin_confirmation', transUc('models.user.pin_confirmation')) !!}

@transTitleCase('.permissions')

{{-- use array directly from translation files for account_type select input. Keys in the translation files are identical to the database. --}} {!! FormGroup::select('account_type', transUc('.account_type'), $userTypes) !!} {{------------------------------------------------------------------------------------------------------------- bool Settings --}} @include('admin.settings._partials.bool-settings', ['model' => 'user', 'instance' => $user])
{{--------------------------------------------------------------------------------- manually render non-boolean user settings --}} {{-- target tracking section --}}
{!! html()->select('_settings[target_tracking_section]', $targetTrackingSections, userSetting('target_tracking_section'))->class('form-control') !!}
@include('admin._partials.form-submit')
{!! Form::close() !!} @endsection @push('scripts') @endpush