Soshot/app/Utils/ConvertStatus.php

18 lines
550 B
PHP
Raw Normal View History

2023-06-21 11:42:36 +02:00
<?php
namespace App\Utils;
class ConvertStatus {
static function convertToIcon($status) {
if ($status === 1) {
echo '<i class="fa fa-check w3-text-green" aria-hidden="true"></i>';
} elseif ($status === 2) {
echo '<i class="fa fa-check w3-text-red" aria-hidden="true"></i>';
} elseif ($status === 3) {
echo '<i class="fa fa-clock-o w3-text-orange" aria-hidden="true"></i>';
}else {
echo '<i class="fa fa-ban w3-text-red" aria-hidden="true"></i>';
}
}
}