2023-06-21 11:42:36 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Utils;
|
|
|
|
|
|
|
|
class ConvertStatus {
|
|
|
|
static function convertToIcon($status) {
|
|
|
|
if ($status === 1) {
|
2024-09-18 10:02:32 +02:00
|
|
|
echo '<i class="fa fa-check gen" aria-hidden="true"></i>';
|
2023-06-21 11:42:36 +02:00
|
|
|
} elseif ($status === 2) {
|
2024-09-18 10:02:32 +02:00
|
|
|
echo '<i class="fa fa-check notGen" aria-hidden="true"></i>';
|
2023-06-21 11:42:36 +02:00
|
|
|
} elseif ($status === 3) {
|
2024-09-18 10:02:32 +02:00
|
|
|
echo '<i class="fa fa-clock-o pending" aria-hidden="true"></i>';
|
2024-03-15 12:17:10 +01:00
|
|
|
} else {
|
2024-09-18 10:02:32 +02:00
|
|
|
echo '<i class="fa fa-ban notGen" aria-hidden="true"></i>';
|
2023-06-21 11:42:36 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|