$value) :
$color = '';
if($value['isactive'] == 0){
$color ='red';
}
$cubiccapacity_name = ''; // Default to empty if no match
// Loop through $cubiccapacity to find a match
foreach ($cubiccapacity as $cc) {
if ($cc['id'] == $value['cubic_capacity_id']) {
$cubiccapacity_name = ' ( '.$cc['value'].' )'; // Get the name of the matching cubiccapacity
break;
}
}
?>