@extends('adminlte::page') @section('title', 'Add User') @section('content_header')

Add User

@endsection @section('content') @php use App\Models\User; @endphp
{!! html()->form('POST', route('users.store'))->id('addUserForm')->open() !!}

General

{{-- Full Name and Alias --}}
{!! html()->label('Full Name *', 'full_name')->toHtml() !!} {!! html()->text('full_name')->class('form-control')->value('')->placeholder('Enter Full Name') !!}
{!! html()->label('Alias *', 'alias')->toHtml() !!} {!! html()->text('alias')->class('form-control')->value('')->placeholder('Enter Alias') !!}
{{-- Email and Username --}}
{!! html()->label('Email Address *', 'email')->toHtml() !!} {!! html()->email('email')->class('form-control')->value('')->placeholder('Enter Email Address') !!}
{!! html()->label('Username *', 'username')->toHtml() !!} {!! html()->text('username')->class('form-control')->value('')->placeholder('Enter Username') !!}
{{-- Role and Site --}}
{!! html()->label('Role *', 'role')->toHtml() !!} {!! html()->select('role', ['' => 'Select Role'] + User::$user_types_names)->class('form-control')->value() !!} {{-- Default value (optional) --}}
{!! html()->label('Site *', 'site')->toHtml() !!} {!! html()->select('site[]', $masterSites->toArray())->class('form-control select2')->id('sel2Category')->attribute('multiple') !!}
{{-- Status --}}
{!! html()->label('Status *', 'is_active')->toHtml() !!} {!! html()->select('is_active', [ '' => 'Select Status', '1' => 'Active', '0' => 'Inactive', ])->class('form-control') !!}
{!! html()->label('Enable Add/Edit Opportunities', 'is_able_opportunities')->toHtml() !!}
{!! html()->checkbox('is_able_opportunities')->id('is_able_opportunities')->class('form-check-input') !!}
{{-- Action Buttons --}}
Cancel
{!! html()->form()->close() !!}
@endsection @push('js') @endpush