2023-03-28 20:13:08 +00:00
|
|
|
<div>
|
2023-05-03 12:09:10 +00:00
|
|
|
|
2023-04-12 13:42:01 +00:00
|
|
|
@if ($application->status === 'running')
|
2023-05-03 12:09:10 +00:00
|
|
|
<x-inputs.button wire:click='start'>Restart</x-inputs.button>
|
|
|
|
<x-inputs.button wire:click='forceRebuild'>Force Rebuild</x-inputs.button>
|
|
|
|
<x-inputs.button wire:click='stop'>Stop</x-inputs.button>
|
2023-04-12 13:42:01 +00:00
|
|
|
@else
|
2023-05-03 12:09:10 +00:00
|
|
|
<x-inputs.button wire:click='start'>Start</x-inputs.button>
|
|
|
|
<x-inputs.button wire:click='forceRebuild'>Start (no cache)</x-inputs.button>
|
2023-04-12 13:42:01 +00:00
|
|
|
@endif
|
2023-05-03 12:09:10 +00:00
|
|
|
<x-inputs.button class="bg-red-500" confirmAction="delete"
|
|
|
|
confirm='Are you sure you would like to delete this application?'>
|
|
|
|
Delete</x-inputs.button>
|
2023-04-25 12:57:02 +00:00
|
|
|
<span wire:poll.5000ms='pollingStatus'>
|
2023-04-19 10:42:15 +00:00
|
|
|
@if ($application->status === 'running')
|
2023-04-26 12:29:33 +00:00
|
|
|
@if (data_get($application, 'fqdn'))
|
2023-04-24 11:25:02 +00:00
|
|
|
<a target="_blank" href="{{ data_get($application, 'fqdn') }}">Open URL</a>
|
|
|
|
@endif
|
|
|
|
|
2023-04-26 11:01:09 +00:00
|
|
|
@if (data_get($application, 'ports_mappings_array'))
|
|
|
|
@foreach ($application->ports_mappings_array as $port)
|
2023-05-03 06:55:03 +00:00
|
|
|
@if (config('app.env') === 'local')
|
2023-04-26 11:01:09 +00:00
|
|
|
<a target="_blank" href="http://localhost:{{ explode(':', $port)[0] }}">Open
|
|
|
|
{{ explode(':', $port)[0] }}</a>
|
2023-04-24 11:25:02 +00:00
|
|
|
@else
|
|
|
|
<a target="_blank"
|
|
|
|
href="http://{{ $application->destination->server->ip }}:{{ $port }}">Open
|
|
|
|
{{ $port }}</a>
|
|
|
|
@endif
|
|
|
|
@endforeach
|
2023-04-19 12:28:39 +00:00
|
|
|
@endif
|
2023-04-25 12:57:02 +00:00
|
|
|
<span class="text-xs text-pink-600" wire:loading.delay.longer>Loading current status...</span>
|
|
|
|
<span class="text-green-500" wire:loading.remove.delay.longer>{{ $application->status }}</span>
|
2023-04-19 10:42:15 +00:00
|
|
|
@else
|
2023-04-25 12:57:02 +00:00
|
|
|
<span class="text-xs text-pink-600" wire:loading.delay.longer>Loading current status...</span>
|
|
|
|
<span class="text-red-500" wire:loading.remove.delay.longer>{{ $application->status }}</span>
|
2023-04-19 10:42:15 +00:00
|
|
|
@endif
|
2023-04-25 12:57:02 +00:00
|
|
|
|
2023-04-19 10:42:15 +00:00
|
|
|
</span>
|
2023-03-28 20:13:08 +00:00
|
|
|
</div>
|