2023-12-07 18:06:32 +00:00
|
|
|
<div>
|
2024-06-07 09:01:10 +00:00
|
|
|
<x-slot:title>
|
|
|
|
{{ data_get_str($resource, 'name')->limit(10) }} > Logs | Coolify
|
|
|
|
</x-slot>
|
2024-04-12 10:44:49 +00:00
|
|
|
<livewire:project.shared.configuration-checker :resource="$resource" />
|
2023-10-02 11:38:16 +00:00
|
|
|
@if ($type === 'application')
|
|
|
|
<h1>Logs</h1>
|
|
|
|
<livewire:project.application.heading :application="$resource" />
|
|
|
|
<div class="pt-4">
|
2024-05-30 10:28:29 +00:00
|
|
|
<h2>Logs</h2>
|
|
|
|
<div class="subtitle">Here you can see the logs of the application.</div>
|
2024-03-02 13:55:39 +00:00
|
|
|
<div class="pt-2" wire:loading wire:target="loadContainers">
|
|
|
|
Loading containers...
|
|
|
|
</div>
|
2024-03-18 07:53:44 +00:00
|
|
|
@forelse ($servers as $server)
|
2024-05-30 10:28:29 +00:00
|
|
|
<div class="py-2">
|
|
|
|
<h2 wire:loading.remove x-init="$wire.loadContainers({{ $server->id }})">Server: {{ $server->name }}</h2>
|
|
|
|
<div wire:loading.remove wire:target="loadContainers">
|
|
|
|
@forelse (data_get($server,'containers',[]) as $container)
|
|
|
|
<livewire:project.shared.get-logs :server="$server" :resource="$resource" :container="data_get($container, 'Names')" />
|
|
|
|
@empty
|
2024-06-11 15:35:26 +00:00
|
|
|
<div class="pt-2">No containers are running on server: {{ $server->name }}</div>
|
2024-05-30 10:28:29 +00:00
|
|
|
@endforelse
|
|
|
|
</div>
|
2024-03-02 13:55:39 +00:00
|
|
|
</div>
|
2024-03-18 07:53:44 +00:00
|
|
|
@empty
|
|
|
|
<div>No functional server found for the application.</div>
|
|
|
|
@endforelse
|
2023-10-02 11:38:16 +00:00
|
|
|
</div>
|
|
|
|
@elseif ($type === 'database')
|
|
|
|
<h1>Logs</h1>
|
|
|
|
<livewire:project.database.heading :database="$resource" />
|
|
|
|
<div class="pt-4">
|
2023-12-11 10:27:41 +00:00
|
|
|
@forelse ($containers as $container)
|
|
|
|
@if ($loop->first)
|
|
|
|
<h2 class="pb-4">Logs</h2>
|
|
|
|
@endif
|
2024-03-18 07:53:44 +00:00
|
|
|
@if (data_get($servers, '0'))
|
|
|
|
<livewire:project.shared.get-logs :server="data_get($servers, '0')" :resource="$resource" :container="$container" />
|
|
|
|
@else
|
|
|
|
<div> No functional server found for the database.</div>
|
|
|
|
@endif
|
2023-12-11 10:27:41 +00:00
|
|
|
@empty
|
2024-06-11 15:35:26 +00:00
|
|
|
<div class="pt-2">No containers are running.</div>
|
2023-12-11 10:27:41 +00:00
|
|
|
@endforelse
|
2023-10-02 11:38:16 +00:00
|
|
|
</div>
|
|
|
|
@elseif ($type === 'service')
|
2023-12-11 10:27:41 +00:00
|
|
|
<div>
|
|
|
|
@forelse ($containers as $container)
|
|
|
|
@if ($loop->first)
|
|
|
|
<h2 class="pb-4">Logs</h2>
|
|
|
|
@endif
|
2024-03-18 07:53:44 +00:00
|
|
|
@if (data_get($servers, '0'))
|
|
|
|
<livewire:project.shared.get-logs :server="data_get($servers, '0')" :resource="$resource" :container="$container" />
|
|
|
|
@else
|
|
|
|
<div> No functional server found for the service.</div>
|
|
|
|
@endif
|
2023-12-11 10:27:41 +00:00
|
|
|
@empty
|
2024-06-11 15:35:26 +00:00
|
|
|
<div class="pt-2">No containers are running.</div>
|
2023-12-11 10:27:41 +00:00
|
|
|
@endforelse
|
2023-10-02 11:38:16 +00:00
|
|
|
</div>
|
|
|
|
@endif
|
2023-12-07 18:06:32 +00:00
|
|
|
</div>
|