0
The following code works:
if($cc->is_removed){
$status = 'Removed';
}
elseif (! $cc->isActive){
$status = 'Inactive';
}
elseif ($cc->isActive){
$status = 'Active';
}
and on the same page the following code using ternary operators does not work: it never enters the 'Removed'.
{{ $cc->is_removed ? 'Removed' : !$cc->isActive ? 'Inactive' : 'Active' }}
Where am I going wrong?
It works. Thanks!
– zwitterion