2023-12-07 18:06:32 +00:00
|
|
|
<div>
|
2023-10-02 11:38:16 +00:00
|
|
|
@if ($type === 'application')
|
|
|
|
<h1>Logs</h1>
|
|
|
|
<livewire:project.application.heading :application="$resource" />
|
|
|
|
<div class="pt-4">
|
2023-11-27 10:54:55 +00:00
|
|
|
@forelse ($containers as $container)
|
|
|
|
@if ($loop->first)
|
|
|
|
<h2 class="pb-4">Logs</h2>
|
|
|
|
@endif
|
2023-12-01 09:34:30 +00:00
|
|
|
<livewire:project.shared.get-logs :server="$server" :resource="$resource" :container="$container" />
|
2023-11-27 10:54:55 +00:00
|
|
|
@empty
|
|
|
|
<div>No containers are not running.</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
|
|
|
|
<livewire:project.shared.get-logs :server="$server" :resource="$resource" :container="$container" />
|
|
|
|
@empty
|
|
|
|
<div>No containers are not running.</div>
|
|
|
|
@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
|
|
|
|
<livewire:project.shared.get-logs :server="$server" :resource="$resource" :container="$container" />
|
|
|
|
@empty
|
|
|
|
<div>No containers are not running.</div>
|
|
|
|
@endforelse
|
2023-10-02 11:38:16 +00:00
|
|
|
</div>
|
|
|
|
@endif
|
2023-12-07 18:06:32 +00:00
|
|
|
</div>
|