@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 (!($application->build_pack === 'dockercompose' && is_null($application->docker_compose_raw)))
@if (!str($application->status)->startsWith('exited')) @if (!$application->destination->server->isSwarm()) @can('deploy', $application) @else @endcan @endif @if ($application->build_pack !== 'dockercompose') @if ($application->destination->server->isSwarm()) @can('deploy', $application) @else @endcan @else @can('deploy', $application) @else @endcan @endif @endif @can('deploy', $application) @else @endcan @else @can('deploy', $application) @else @endcan @endif @if (!$application->destination->server->isSwarm()) @can('deploy', $application) @else @endcan @endif
@endif
{{-- Desktop actions live in the fixed top bar so they cannot overlap page content. --}} @teleport('#resource-action-hud-slot')
@if ($application->build_pack === 'dockercompose' && is_null($application->docker_compose_raw)) Load a Compose file to deploy. @else
@if (str($application->status)->startsWith('exited')) @if (!$application->destination->server->isSwarm()) @endif @else @if (!$application->destination->server->isSwarm()) @can('deploy', $application) @else @endcan @endif @if ($application->build_pack !== 'dockercompose') @if ($application->destination->server->isSwarm()) @can('deploy', $application) @else @endcan @else @can('deploy', $application) @else @endcan @endif @endif @can('deploy', $application) @else @endcan @endif
@endif
@endteleport