<?php if($value == 0){ ?>
	<span style="margin-top:-2px;margin-right:6px;color:#FFF;padding: 2px 4px;display:inline-block; background-color: #e67e22; border-radius: 3px;"><?= trans('netsti.system::lang.invoices.pending_status') ?></span>
<?php }else if($value == 1){ ?>
	<span style="margin-top:-2px;margin-right:6px;color:#FFF;padding: 2px 4px;display:inline-block; background-color: #3498db; border-radius: 3px;"><?= trans('netsti.system::lang.invoices.approved_status') ?></span>
<?php }else if($value == 2){ ?>
	<span style="margin-top:-2px;margin-right:6px;color:#FFF;padding: 2px 4px;display:inline-block; background-color: #95b753; border-radius: 3px;"><?= trans('netsti.system::lang.invoices.paid_status') ?></span>
<?php }else if($value == 3){ ?>
	<span style="margin-top:-2px;margin-right:6px;color:#FFF;padding: 2px 4px;display:inline-block; background-color: #e74c3c; border-radius: 3px;"><?= trans('netsti.system::lang.invoices.void_status') ?></span>
<?php } ?>

<?php if($record->checkOverdue() && $value < 2): ?>
	<span style="margin-top:-2px;margin-right:6px;color:#FFF;padding: 2px 4px;display:inline-block; background-color: #9b59b6; border-radius: 3px;"><?= trans('netsti.system::lang.invoices.overdue_status') ?></span>
<?php endif ?>