@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
@unless($userForm['isEdit'])

Password setup is automatic

A secure password will be generated and emailed to the user. Passwords are managed by the system — users cannot change them.

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

Temporary Password (not yet changed)

{{ $user->plain_password }}

Share this password with the user to give them access.

@endif
Cancel
@endsection