Soshot/app/Utils/ConvertStatus.php
2024-09-18 10:46:46 +02:00

17 lines
524 B
PHP

<?php
namespace App\Utils;
class ConvertStatus {
static function convertToIcon($status) {
if ($status === 1) {
echo '<i class="fa fa-check gen" aria-hidden="true"></i>';
} elseif ($status === 2) {
echo '<i class="fa fa-check notGen" aria-hidden="true"></i>';
} elseif ($status === 3) {
echo '<i class="fa fa-clock-o pending" aria-hidden="true"></i>';
} else {
echo '<i class="fa fa-ban notGen" aria-hidden="true"></i>';
}
}
}