-1
I’m having a question on the condition I’m willing to put in my system. In case the site will check if the "Paid" is with the result 1; if you have 1, it will put "Delivered", but if you have 0 it is "Pending", now if the value is refunded it was to be "Redeemed" and take out the "Delivered" or "Pending", how can I do it?
Follows the code:
<?php if($transaction->paid == 1): ?>
<td><span class="badge badge-success">Entregue</span></td>
<?php else: ?>
<td><span class="badge badge-warning">Pendente</span>/td>
<?php endif; ?>
<?php if($transaction->status == refunded): ?>
<td><span class="badge badge-danger">Rembolsado</span></td>
<?php endif; ?>
Related: What is the difference between Else and elseif?
– Icaro Martins
Related: In PHP the correct is Else if or elseif?
– Icaro Martins