!$compact,
'static' => $compact,
'w-full' => $fullWidth,
]) x-data="{ open: false }"
x-effect="$dispatch('resource-actions-toggled', { open })" @keydown.escape.window="open = false">
$fullWidth,
'left-1/2! right-auto! w-[calc(100vw-2rem)]! max-w-md! min-w-0! -translate-x-1/2' => $compact,
'right-0! left-auto! min-w-60! max-w-96!' => !$fullWidth && !$compact,
])>
@if ($hasLinks)
@if (data_get($application, 'gitBrancLocation'))
Git Repository
@endif
@if (data_get($application, 'build_pack') === 'dockercompose')
@foreach (collect(json_decode($application->docker_compose_domains)) as $fqdn)
@if (data_get($fqdn, 'domain'))
@foreach (explode(',', data_get($fqdn, 'domain')) as $domain)
Production
{{ getFqdnWithoutPort($domain) }}
@endforeach
@endif
@endforeach
@endif
@if (data_get($application, 'fqdn'))
@foreach (str(data_get($application, 'fqdn'))->explode(',') as $fqdn)
Production
{{ getFqdnWithoutPort($fqdn) }}
@endforeach
@endif
@if (data_get($application, 'previews', collect())->count() > 0)
@if (data_get($application, 'build_pack') === 'dockercompose')
@foreach ($application->previews as $preview)
@foreach (collect(json_decode($preview->docker_compose_domains)) as $fqdn)
@if (data_get($fqdn, 'domain'))
@foreach (explode(',', data_get($fqdn, 'domain')) as $domain)
PR #{{ data_get($preview, 'pull_request_id') }}
{{ getFqdnWithoutPort($domain) }}
@endforeach
@endif
@endforeach
@endforeach
@else
@foreach (data_get($application, 'previews') as $preview)
@if (data_get($preview, 'fqdn'))
PR #{{ data_get($preview, 'pull_request_id') }}
{{ getFqdnWithoutPort(data_get($preview, 'fqdn')) }}
@endif
@endforeach
@endif
@endif
@if (data_get($application, 'ports_mappings_array'))
@foreach ($application->ports_mappings_array as $port)
@if ($application->destination->server->id === 0)
Port {{ $port }}
@else
{{ $application->destination->server->ip }}:{{ explode(':', $port)[0] }}
@if (count($application->additional_servers) > 0)
@foreach ($application->additional_servers as $server)
{{ $server->ip }}:{{ explode(':', $port)[0] }}
@endforeach
@endif
@endif
@endforeach
@endif
@else
No links available
@endif