@php
$statusForPost = (string) $fault->status;
if (in_array($statusForPost, ['running', 'in_progress'], true)) {
$statusForPost = 'in_progress';
} elseif (in_array($statusForPost, ['resolved', 'approved'], true)) {
$statusForPost = 'resolved';
} elseif ($statusForPost === 'rejected') {
$statusForPost = 'rejected';
} else {
$statusForPost = 'open';
}
@endphp