@if ($type === 'application')

Logs

@if (Str::of($status)->startsWith('running')) @else Application is not running. @endif
@elseif ($type === 'database')

Logs

@if (Str::of($status)->startsWith('running')) @else Database is not running. @endif
@elseif ($type === 'service')
@if (serviceStatus($resource) === 'running') @else Service is not running. @endif
@endif