2023-05-31 08:19:29 +00:00
|
|
|
<nav class="flex items-center gap-4 py-2 border-b-2 border-solid border-coolgray-200">
|
2023-05-22 13:47:40 +00:00
|
|
|
<a class="{{ request()->routeIs('project.application.configuration') ? 'text-white' : '' }}"
|
2023-05-09 07:54:43 +00:00
|
|
|
href="{{ route('project.application.configuration', [
|
|
|
|
'project_uuid' => Route::current()->parameters()['project_uuid'],
|
|
|
|
'application_uuid' => Route::current()->parameters()['application_uuid'],
|
|
|
|
'environment_name' => Route::current()->parameters()['environment_name'],
|
|
|
|
]) }}">
|
2023-05-22 20:30:33 +00:00
|
|
|
<button>Configuration</button>
|
2023-05-08 10:22:45 +00:00
|
|
|
</a>
|
2023-05-22 13:47:40 +00:00
|
|
|
<a class="{{ request()->routeIs('project.application.deployments') ? 'text-white' : '' }}"
|
2023-05-09 07:54:43 +00:00
|
|
|
href="{{ route('project.application.deployments', [
|
|
|
|
'project_uuid' => Route::current()->parameters()['project_uuid'],
|
|
|
|
'application_uuid' => Route::current()->parameters()['application_uuid'],
|
|
|
|
'environment_name' => Route::current()->parameters()['environment_name'],
|
|
|
|
]) }}">
|
2023-05-22 20:30:33 +00:00
|
|
|
<button>Deployments</button>
|
2023-05-16 18:47:59 +00:00
|
|
|
</a>
|
2023-05-18 13:19:23 +00:00
|
|
|
<div class="flex-1"></div>
|
2023-05-22 20:30:33 +00:00
|
|
|
|
2023-05-22 13:47:40 +00:00
|
|
|
<div class="dropdown dropdown-bottom">
|
2023-05-31 19:37:32 +00:00
|
|
|
<label tabindex="0">
|
|
|
|
<x-forms.button>
|
|
|
|
Open
|
|
|
|
<x-chevron-down />
|
|
|
|
</x-forms.button>
|
|
|
|
</label>
|
2023-05-22 13:47:40 +00:00
|
|
|
<ul tabindex="0"
|
2023-05-31 08:19:29 +00:00
|
|
|
class="mt-1 text-xs text-white normal-case rounded min-w-max dropdown-content menu bg-coolgray-200">
|
2023-05-26 08:20:09 +00:00
|
|
|
@if (data_get($application, 'fqdn'))
|
|
|
|
<li>
|
|
|
|
<a class="text-xs hover:no-underline hover:bg-coollabs" target="_blank"
|
|
|
|
href="{{ $application->fqdn }}">
|
|
|
|
{{ $application->fqdn }}
|
2023-05-31 08:19:29 +00:00
|
|
|
<x-external-link />
|
2023-05-26 08:20:09 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endif
|
2023-05-18 13:19:23 +00:00
|
|
|
@if (data_get($application, 'ports_mappings_array'))
|
|
|
|
@foreach ($application->ports_mappings_array as $port)
|
|
|
|
@if (config('app.env') === 'local')
|
|
|
|
<li>
|
2023-05-26 08:20:09 +00:00
|
|
|
<a class="text-xs hover:no-underline hover:bg-coollabs" target="_blank"
|
|
|
|
href="http://localhost:{{ explode(':', $port)[0] }}">Port
|
2023-05-18 13:19:23 +00:00
|
|
|
{{ explode(':', $port)[0] }}
|
2023-05-31 08:19:29 +00:00
|
|
|
<x-external-link />
|
2023-05-18 13:19:23 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@else
|
|
|
|
<li>
|
2023-05-26 08:20:09 +00:00
|
|
|
<a class="text-xs hover:no-underline hover:bg-coollabs" target="_blank"
|
|
|
|
href="http://{{ $application->destination->server->ip }}:{{ explode(':', $port)[0] }}">Port
|
2023-05-31 08:19:29 +00:00
|
|
|
{{ $port }}
|
|
|
|
<x-external-link />
|
|
|
|
</a>
|
2023-05-18 13:19:23 +00:00
|
|
|
</li>
|
|
|
|
@endif
|
|
|
|
@endforeach
|
2023-05-16 19:49:29 +00:00
|
|
|
@endif
|
2023-05-18 13:19:23 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
2023-05-22 13:47:40 +00:00
|
|
|
</div>
|
2023-05-16 19:49:29 +00:00
|
|
|
<livewire:project.application.deploy :applicationId="$application->id" />
|
2023-05-22 20:30:33 +00:00
|
|
|
<livewire:project.application.status :application="$application" />
|
2023-04-19 10:42:15 +00:00
|
|
|
</nav>
|