lasthourcloud/resources/views/components/applications/navbar.blade.php

36 lines
1.7 KiB
PHP
Raw Normal View History

2023-05-16 19:49:29 +00:00
<nav class="flex justify-center gap-4 py-2 border-b-2 border-solid border-coolgray-200 ">
2023-05-09 07:54:43 +00:00
<a
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-16 18:47:59 +00:00
Configuration
2023-05-08 10:22:45 +00:00
</a>
2023-05-09 07:54:43 +00:00
<a
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-16 18:47:59 +00:00
Deployments
</a>
2023-05-17 07:26:50 +00:00
<a target="_blank" href="{{ $application->gitBranchLocation }}">
2023-05-17 08:00:50 +00:00
Open on Git <img class="inline-flex w-4 h-4" src="{{ asset('svgs/external-link.svg') }}">
2023-05-08 10:22:45 +00:00
</a>
2023-05-16 19:49:29 +00:00
@if (data_get($application, 'ports_mappings_array'))
@foreach ($application->ports_mappings_array as $port)
@if (config('app.env') === 'local')
<a target="_blank" href="http://localhost:{{ explode(':', $port)[0] }}">Open
{{ explode(':', $port)[0] }} <img class="inline-flex w-4 h-4"
2023-05-17 08:00:50 +00:00
src="{{ asset('svgs/external-link.svg') }}"></a>
2023-05-16 19:49:29 +00:00
@else
<a target="_blank"
href="http://{{ $application->destination->server->ip }}:{{ explode(':', $port)[0] }}">Open
{{ $port }}</a>
@endif
@endforeach
@endif
<livewire:project.application.deploy :applicationId="$application->id" />
2023-04-19 10:42:15 +00:00
</nav>