@php $routeIs = fn (string|array $routes): bool => \Illuminate\Support\Str::is($routes, $activeRouteName); // Settings covers all configuration sub-pages (General, Webhooks, Domains, …), // not only project.application.configuration. Primary tabs that are NOT settings: // backups, console, deployment logs, runtime logs. $isSettingsRoute = $routeIs('project.application.*') && ! $routeIs([ 'project.application.backup.*', 'project.application.command', 'project.application.deployment.*', 'project.application.logs', ]); $applicationMenuItems = [ [ 'label' => 'Settings', 'route' => 'project.application.configuration', 'active' => $isSettingsRoute, ], ]; $applicationMenuItems = array_values(array_filter( $applicationMenuItems, fn (array $item): bool => $item['visible'] ?? true, )); @endphp

{{ $application->name }}

@if ($this->runningDeploymentUrl) @endif
@if (!($application->build_pack === 'dockercompose' && is_null($application->docker_compose_raw))) @can('deploy', $application) @if (str($application->status)->startsWith('exited')) {{ $application->stoppedAfterRestartLimit() ? 'Retry deployment' : 'Deploy' }} @if (!$application->destination->server->isSwarm()) @endif @if ($application->container_present !== false) @endif @else @if ($application->destination->server->isSwarm()) @if ($application->build_pack !== 'dockercompose') Update Service @else Stop @endif @else Deploy @if ($application->build_pack !== 'dockercompose') @endif @endif @unless ($application->destination->server->isSwarm() && $application->build_pack === 'dockercompose') @endunless @endif @endcan @endif
{{-- Desktop actions live in the fixed top bar so they cannot overlap page content. --}} @teleport('#resource-action-hud-slot')
@if ($this->runningDeploymentUrl) @endif @if ($application->build_pack === 'dockercompose' && is_null($application->docker_compose_raw)) Load a Compose file to deploy. @else
@can('deploy', $application) @if (str($application->status)->startsWith('exited')) {{ $application->stoppedAfterRestartLimit() ? 'Retry deployment' : 'Deploy' }} @if (!$application->destination->server->isSwarm()) @endif @if ($application->container_present !== false) @endif @else @if ($application->destination->server->isSwarm()) @if ($application->build_pack !== 'dockercompose') Update Service @else Stop @endif @else Deploy @if ($application->build_pack !== 'dockercompose') @endif @endif @unless ($application->destination->server->isSwarm() && $application->build_pack === 'dockercompose') @endunless @endif @endcan @endif
@endteleport