37 lines
1.5 KiB
PHP
37 lines
1.5 KiB
PHP
<div>
|
|
@if ($type === 'application')
|
|
<h1>Logs</h1>
|
|
<livewire:project.application.heading :application="$resource" />
|
|
<div class="pt-4">
|
|
@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
|
|
</div>
|
|
@elseif ($type === 'database')
|
|
<h1>Logs</h1>
|
|
<livewire:project.database.heading :database="$resource" />
|
|
<div class="pt-4">
|
|
<livewire:project.shared.get-logs :resource="$resource" :server="$server" :container="$container" />
|
|
</div>
|
|
@elseif ($type === 'service')
|
|
<livewire:project.service.navbar :service="$resource" :parameters="$parameters" :query="$query" />
|
|
<div class="flex gap-4 pt-6">
|
|
<div>
|
|
<a wire:navigate class="{{ request()->routeIs('project.service.show') ? 'text-white' : '' }}"
|
|
href="{{ route('project.service.show', $parameters) }}">
|
|
<button><- Back</button>
|
|
</a>
|
|
</div>
|
|
<div class="flex-1 pl-8">
|
|
<livewire:project.shared.get-logs :server="$server" :resource="$resource" :servicesubtype="$serviceSubType"
|
|
:container="$container" />
|
|
</div>
|
|
</div>
|
|
@endif
|
|
</div>
|