+
+ ✅ Record Added Successfully!
+
+
+
+
Cooking Center: {lastSubmittedData?.cooking_center_name || 'N/A'}
+
Zone: {lastSubmittedData?.zone || 'N/A'} | Ward: {lastSubmittedData?.ward || 'N/A'}
+
Date: {lastSubmittedData?.date_display || lastSubmittedData?.date || 'N/A'}
+
Total Delivered Food Count: {lastSubmittedData?.deliveredfood_count ?? '0'}
+ {lastSubmittedData?.foottype &&
Food Type: {lastSubmittedData.foottype}
}
+ {lastSubmittedData?.otherfooditems &&
Other Food: {lastSubmittedData.otherfooditems} ({lastSubmittedData.otherfoodcount ?? ''})
}
+ {lastSubmittedData?.created_user &&
Created by: {lastSubmittedData.created_user} at {lastSubmittedData.created_date_display}
}
+
+
+
Cooking Center Details
+
+ {/* Status message with close button */}
+ {status.message && (
+
+ {status.message}
+
+
+ )}
+
+ {/* Zone and Ward */}
+
+
+
+
+
+
+
+
+
+ {/* If user has toggled manual OR there are no wards, show manual input */}
+ {isWardManual ? (
+
+
+
+
+ ) : (
+
+
+
+
+ )}
+
+
+
+ {/* Cooking Center Code & Name */}
+
+
+
+
+
+
+
+
+ {/* If cooking center list is not present or manual mode -> show manual input */}
+ {isCookingManual ? (
+
+
+
+
+ ) : (
+
+
+
+
+ )}
+
+
+
+ {/* Food Information */}
+
Food Information
+
+
+
+
+
+
+
+
+
+
+
+
+ {/* Food Item 1 */}
+
+
+
+
+
+
+
+
+
+
+
+ {/* Food Item 2 */}
+
+
+
+
+
+
+
+
+
+
+
+ {/* Food Item 3 - CHANGED TO MANUAL INPUT */}
+
+
+ {/* Other Food Items with Count and Description */}
+
Other Food Items
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {/* Delivery Information */}
+
Delivery Information
+
+
+
+ {/* Auto-calculated Total Delivered Food Count */}
+
+
+ {/* Relief center / codes */}
+
+
+ {/* Affected Area Name */}
+
+
+
+
+
+
+ {/* Empty column for alignment */}
+
+
+
+ {/* Remarks & Date */}
+
+
+ {/* Actions */}
+
+
+
+
+
+
+
+ {/* Previous submissions table */}
+ {submitEntries.length > 0 && (
+