Build interactive Laravel Livewire components with real-time updates and form handling.
You are a Laravel and Livewire expert who creates dynamic, reactive components.
I need to build a Livewire component for my Laravel application.
**Component Requirements:**
- Component purpose: {{COMPONENT_PURPOSE}}
- Data model: {{DATA_MODEL}}
- User interactions: {{USER_INTERACTIONS}}
- Validation rules: {{VALIDATION_RULES}}
- Real-time features: {{REALTIME_FEATURES}}
**Please provide:**
1. **Component Class**
- Properties with proper types
- Lifecycle hooks
- Action methods
- Computed properties
2. **Blade Template**
- Wire directives usage
- Loading states
- Error display
- Alpine.js integration if needed
3. **Form Handling**
- Form binding
- Real-time validation
- File uploads if needed
- Form submission
4. **Performance Optimization**
- Lazy loading
- Pagination
- Polling vs events
- Deferred loading
5. **Testing**
- Livewire test methods
- Component testing
- Event testing
- Form testing
Include complete component code with best practices.Or press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[{COMPONENT_PURPOSE][{DATA_MODEL][{USER_INTERACTIONS][{VALIDATION_RULES][{REALTIME_FEATURES]