--- id: 2-1 title: 2-1 Individual Client Account Management status: Done date: 2026-09-27 parent: 2 --- ## Description As an admin, I want to create, view, edit, and search individual client accounts, So that I can manage client information and provide them platform access. Context: Integrates with: Users table, Fortify authentication; Technology: Livewire Volt, Flux UI forms; Follows pattern: Admin CRUD patterns, class-based Volt components. - **Validation failure:** Display inline field errors using Flux UI error states - **Duplicate email:** Show "Email already exists" error on email field - **Duplicate National ID:** Show "National ID already registered" error - **Empty search results:** Display "No clients found" message with clear filters option. Full implementation history: docs/stories/story-2.1-individual-client-account-management.md ## Acceptance Criteria - [ ] Form with required fields: - [ ] Validation for all required fields - [ ] Duplicate email/National ID prevention with clear error message - [ ] Password strength indicator (optional) - [ ] Success message on creation - [ ] Display all individual clients (user_type = 'individual') - [ ] Columns: Name, Email, National ID, Phone, Status, Created Date - [ ] Pagination (10/25/50 per page) - [ ] Default sort by created date (newest first) - [ ] Search by name, email, or National ID - [ ] Filter by status (active/deactivated/all) - [ ] Real-time search with debounce (300ms) - [ ] Clear filters button - [ ] Edit all client information - [ ] Cannot change user_type from this form - [ ] Validation same as create - [ ] Success message on update - [ ] Display all client information - [ ] Show consultation history summary - [ ] Show timeline history summary - [ ] Quick links to related records - [ ] Bilingual form labels and messages - [ ] Proper form validation with error display - [ ] Audit log entries for all operations - [ ] Tests for CRUD operations