@extends('layouts.app') @section('page-title', isset($user) && $user?->exists ? 'Edit User' : 'Add User') @section('content') Back to Users
@csrf @if($userForm['isEdit']) @method('PUT') @endif

User information

Enter personal details and assign system access.

Profile picture (optional)

Add a clear photo so teammates can quickly identify this user.

JPG or PNG ยท Maximum 2MB

@error('avatar')

{{ $message }}

@enderror
@error('full_name')

{{ $message }}

@enderror
@error('email')

{{ $message }}

@enderror
@error('designation')

{{ $message }}

@enderror
Loading offices...
@error('office_id')

{{ $message }}

@enderror
@unless($userForm['isEdit'])

Password setup is automatic

A secure password will be generated and emailed to the user. They must change it on first login.

@endunless @if($userForm['isEdit'] && $user->plain_password)

Temporary Password (not yet changed)

{{ $user->plain_password }}

This password will be hidden once the user changes it.

@endif
Cancel
@endsection