Task #69
openCat Food Management & Listing Module
0%
Description
Implement a cat food listing and filtering feature that allows users to view and search cat food products based on category and name. The system should display product cards with image, caption, and description. Only valid cat food records should be shown from the database.
***pet_foods
Fields & Description
Field Description
id (PK) Unique ID for each cat food item
img Image path / URL of the product
caption Product name / title
description Product details
type Food category (must be cat)
***Validations
*Food category (type) must be cat
*caption is mandatory (minimum 3 characters)
*description is mandatory (minimum 10 characters)
*img must be selected and should be JPG/PNG format only
*Duplicate cat food items with the same caption should not be allowed
*Only records where type = 'cat' should be displayed
*If no cat food items are found, show a user-friendly message:
“No cat food items available at the moment.”