@extends('layouts.app') @section('content')
User Creation Portal

Create New User Account

Advanced user registration with intelligent validation and real-time feedback

{{ \App\Models\User::count() }} Total Users
{{ $departments->count() ?? 0 }} Departments
{{ $branches->count() ?? 0 }} Branches
Create New User Account
Back to Users
1
Personal Info
2
Administrative
3
Location & Role
@if ($errors->any())
Please fix the following errors:
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf
Personal Information

Enter the user's basic personal details

✓ Valid name entered
✓ Valid email address
✓ Valid phone number format
Format: 255XXXXXXXXX (12 digits starting with 255)
✓ Rank selected
Password Generation

A secure password will be automatically generated and sent to the user via SMS after account creation.

Administrative Information

Set user roles, permissions and status

✓ Status set
✓ Role assigned
✓ Valid designation
Role & Permissions

Available Roles:

@foreach(\Spatie\Permission\Models\Role::all() as $role) {{ $role->name }} @endforeach

Default Status: Active

Users will be able to login immediately after creation if set to Active.

Location & Organization

Assign user to organizational units and locations

Organization Assignment
Total Regions
{{ count($regions) }} Available
Total Branches
{{ count($branches) }} Available
Total Departments
{{ count($departments) }} Available
Total Commands
{{ count($commands) }} Available
@endsection