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