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>';
|
2024-03-15 12:17:10 +01:00
|
|
|
} else {
|
2023-06-21 11:42:36 +02:00
|
|
|
echo '<i class="fa fa-ban w3-text-red" aria-hidden="true"></i>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|