javascript - Order Status Background Color according to the order status laravel

one text

Solution:

<td>
   {% if order['status'] == Completed %}
      <span class="label label-success">Accepted</span>
   {% elseif order['status'] == Cancelled %}
      <span class="label label-danger">Deleted</span>
   {% else %}
      <span class="label label-warning">Pending</span>
   {% endif %}
</td>

refer this link https://www.w3schools.com/bootstrap/tryit.asp?filename=trybs_labels2&stacked=h

Source