I am using ternary operator. here is my code :
<td>
{!! $cooking->deleted_at ?
'<button type="button" data-id=""
data-target="#restore-CF">Enable</button>'
:'<button type="button" data-id=""
data-target="#exampleModal-3">Disable</button>'!!}
</td>
When I inspect, in data-id=""
shows <?php echo e($cooking->id); ?>
, but its value is in number i.e 12. How to fix this??? I would be grateful to your help
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire