im trying to add more ternary operator inside an echo but i dont know how. below is my current codes
echo "<td onclick='window.location = 'edit_visa.php?id=$visa_id'><input type='text' class='form-control' size='8' value='$visa_status' ". (($date_today >= $expired) ? "style='background-color : #e60000; font-weight: bold; color: white;'" : "") (($date_today != $expired) ? "style=\"background-color : #e60000; font-weight: bold; color: white;\"" : ""). "></td>";
this is what i tried but no luck