complete story 15.2

This commit is contained in:
Naser Mansour
2026-01-09 18:53:04 +02:00
parent 959cc0e717
commit b2b287e156
9 changed files with 566 additions and 13 deletions
+31 -13
View File
@@ -189,19 +189,37 @@ Follow the existing pattern from `admin/clients/individual/index.blade.php`:
## Dev Checklist
- [ ] Add route for potential clients index
- [ ] Create Volt component `admin/potential-clients/index.blade.php`
- [ ] Implement search functionality with debounce
- [ ] Implement type filter dropdown
- [ ] Implement pagination with per-page selector
- [ ] Add navigation item to admin sidebar
- [ ] Style type badges with correct colors
- [ ] Handle empty state (no data)
- [ ] Handle empty state (no filter matches)
- [ ] Add English translations
- [ ] Add Arabic translations
- [ ] Test RTL layout
- [ ] Write feature tests for list and filtering
- [x] Add route for potential clients index
- [x] Create Volt component `admin/potential-clients/index.blade.php`
- [x] Implement search functionality with debounce
- [x] Implement type filter dropdown
- [x] Implement pagination with per-page selector
- [x] Add navigation item to admin sidebar
- [x] Style type badges with correct colors
- [x] Handle empty state (no data)
- [x] Handle empty state (no filter matches)
- [x] Add English translations
- [x] Add Arabic translations
- [x] Test RTL layout
- [x] Write feature tests for list and filtering
## File List
### Created
- `resources/views/livewire/admin/potential-clients/index.blade.php` - Volt component for list page
- `tests/Feature/Admin/PotentialClientListTest.php` - Feature tests for list and filtering
### Modified
- `routes/web.php` - Added potential clients route
- `resources/views/components/layouts/app/sidebar.blade.php` - Added navigation item
- `lang/en/potential-clients.php` - Added list-related translations
- `lang/ar/potential-clients.php` - Added list-related translations
- `lang/en/navigation.php` - Added potential_clients key
- `lang/ar/navigation.php` - Added potential_clients key
## Status
Ready for Review
## Estimation