coolify/resources/views/components/status/stopped.blade.php

15 lines
461 B
PHP
Raw Permalink Normal View History

2023-07-28 19:36:19 +00:00
@props([
2023-09-22 13:29:19 +00:00
'status' => 'Stopped',
'noLoading' => false,
2023-07-28 19:36:19 +00:00
])
@php
if (str($status)->contains('(')) {
$displayStatus = str($status)->before('(')->trim()->headline()->value();
} elseif (str($status)->contains(':')) {
$displayStatus = str(explode(':', $status)[0])->headline()->value();
} else {
$displayStatus = str($status)->headline()->value();
}
@endphp
<x-status-badge status="{{ $displayStatus }}" type="error" />