@props([
'title' => null,
'lastDeploymentLink' => null,
'resource' => null,
])
@if (str($resource->status)->startsWith('running'))
@elseif(str($resource->status)->startsWith('degraded'))
@elseif(str($resource->status)->startsWith('restarting') || str($resource->status)->startsWith('starting'))
@else
@endif
@if (isset($resource->restart_count) && $resource->restart_count > 0 && !str($resource->status)->startsWith('exited'))
({{ $resource->restart_count }}x restarts)
@endif
@if (!str($resource->status)->contains('exited') && $showRefreshButton)
@endif