Resources

@if ($environment->can_delete_environment()) @else + New @endif
@if ($environment->can_delete_environment()) + Add New Resource @endif
@foreach ($environment->applications->sortBy('name') as $application)
{{ $application->name }}
{{ $application->description }}
@if (Str::of(data_get($application, 'status'))->startsWith('running'))
@elseif (Str::of(data_get($application, 'status'))->startsWith('exited'))
@endif
@endforeach @foreach ($environment->databases()->sortBy('name') as $database)
{{ $database->name }}
{{ $database->description }}
@if (Str::of(data_get($database, 'status'))->startsWith('running'))
@elseif (Str::of(data_get($database, 'status'))->startsWith('exited'))
@endif
@endforeach @foreach ($environment->services->sortBy('name') as $service)
{{ $service->name }}
{{ $service->description }}
@if (Str::of(serviceStatus($service))->startsWith('running'))
@elseif (Str::of(serviceStatus($service))->startsWith('degraded'))
@elseif (Str::of(serviceStatus($service))->startsWith('exited'))
@endif
@endforeach