Phantom-Tech-IND / school-pictures

0 stars 0 forks source link

Orders Management #57

Closed axentioialexandru95 closed 3 months ago

axentioialexandru95 commented 4 months ago

Task: Send Orders to Filament Resource for Dashboard Display

Acceptance Criteria:

  1. Create Order Model and Migration:

    • [ ] Create a new model and corresponding migration to store order data in the database.
    • [ ] Ensure fields like id, uuid, amount, time, status, invoice, and contact are included, similar to the provided data structure.
    • [ ] Add relationships between orders and products, invoices, and contacts where appropriate.
  2. Filament Resource Setup:

    • [ ] Set up a new Filament resource to manage and display orders in the dashboard.
    • [ ] Include relevant fields (e.g., order ID, amount, status, and customer details) in the table view.
    • [ ] Provide an option to view detailed order information, including invoice and product details.
  3. Data Integration:

    • [ ] Implement a process to send newly created orders to the Filament resource.
    • [ ] Map incoming order data to the appropriate fields in the order model.
  4. Dashboard Display:

    • [x] In the Filament resource, ensure that the main order table view is paginated and searchable.
    • [x] Display detailed order data, including the contact information and custom fields.
    • [x] Include filtering options to sort orders by status, date, or amount.
  5. Error Handling and Validation:

    • [ ] Validate that order data is correctly structured before saving to the database.
    • [ ] Implement error handling to gracefully notify users if any issues arise during data processing.
  6. Testing:

    • [ ] Test that all fields are displayed accurately in the Filament dashboard.

Feel free to adjust the acceptance criteria according to your specific requirements.