Good evening!

Tell me how to correctly add html labe label- tags to the code:

$result[$key]['status']= "<span class="label label-.get_status_color($value['status']).">". $data['TransactionStatus'][$value['status']]. '</span>' 

The current version does not work. I would be grateful for any help or direction.

    1 answer 1

     $result[$key]['status']= '<span class="label label-'.get_status_color($value['status']).'">'. $data['TransactionStatus'][$value['status']]. '</span>'