Soshot/app/Utils/ConvertStatus.php

18 lines
524 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) {
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>';
} 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
}
}
}