Lae/resources/views/components/host-status.blade.php

35 lines
862 B
PHP
Raw Normal View History

2022-11-24 00:41:36 +00:00
<span>
@switch($status)
@case('running')
<span class="badge bg-success">运行中</span>
2022-11-25 07:49:55 +00:00
@break
2022-11-24 00:41:36 +00:00
@case('suspended')
<span class="badge bg-warning">已暂停</span>
2022-11-25 07:49:55 +00:00
@break
2022-11-24 00:41:36 +00:00
@case('stopped')
<span class="badge bg-danger">已停止</span>
2022-11-25 07:49:55 +00:00
@break
2022-11-24 00:41:36 +00:00
@case('pending')
<span class="badge bg-info">创建中</span>
2022-11-25 07:49:55 +00:00
@break
@case('error')
<span class="badge bg-danger">错误</span>
@break
2022-11-24 00:41:36 +00:00
@case('unavailable')
<span class="badge bg-secondary">不可用</span>
@break
@case('locked')
<span class="badge bg-danger">锁定</span>
@break
2022-11-24 00:41:36 +00:00
@default
2022-11-24 12:34:30 +00:00
<span class="badge bg-secondary">{{ $status }}</span>
2022-11-24 00:41:36 +00:00
@endswitch
</span>