diff --git a/src/Pages/EquipmentTallyPage/EquipmentTallyPage.tsx b/src/Pages/EquipmentTallyPage/EquipmentTallyPage.tsx index 91ce1ef..6e703ab 100644 --- a/src/Pages/EquipmentTallyPage/EquipmentTallyPage.tsx +++ b/src/Pages/EquipmentTallyPage/EquipmentTallyPage.tsx @@ -194,13 +194,41 @@ export default function EquipmentTallyPage() { {equipment.category} - { - equipment_instances.data?.filter( - (equipment_instance) => - equipment_instance.equipment_name == - equipment.name - ).length - } +
+

+ Available: + { + equipment_instances.data?.filter( + (equipment_instance) => + equipment_instance.equipment_name == + equipment.name && + equipment_instance.status == "Available" + ).length + } +

+

+ Pending: + { + equipment_instances.data?.filter( + (equipment_instance) => + equipment_instance.equipment_name == + equipment.name && + equipment_instance.status == "Pending" + ).length + } +

+

+ Broken: + { + equipment_instances.data?.filter( + (equipment_instance) => + equipment_instance.equipment_name == + equipment.name && + equipment_instance.status == "Broken" + ).length + } +

+
))