lundi 3 mai 2021

how to set color warning when status "Waiting Confirmation"?

i want to make warning label for "waiting confirmation" status, the code as below :

->editColumn('status', function ($aduan) {
           $color = ($aduan->status == 'Pending') ? 'label-danger' : 'label-success';
           return '<span class="label ' . $color . '">' . $aduan->status . '</span>';
  })


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/33ctRMK
via IFTTT

Aucun commentaire:

Enregistrer un commentaire