Files
coolify/resources/views/components/application/settings-section.blade.php
T
Andras Bacsai dc6777a71d feat(server): paginate Docker images with adjustable page size
Reset pagination when search or page size changes and clamp page bounds.
Move disk usage badges beside the Images heading.
2026-10-13 10:02:19 +02:00

34 lines
1.1 KiB
PHP

@props([
'title',
'description' => null,
'helper' => null,
'flush' => false,
])
<section {{ $attributes->merge(['class' => 'application-settings-section', 'data-settings-section-title' => $title]) }}>
<header>
<div @class(['min-w-0 py-0.5', 'flex flex-wrap items-center gap-2' => isset($badges)])>
@if (filled($description ?? $helper))
<h3>
<x-helper :helper="$description ?? $helper" :label="'More information about '.$title">
<x-slot:trigger>
<span class="underline underline-offset-4">{{ $title }}</span>
</x-slot:trigger>
</x-helper>
</h3>
@else
<h3>{{ $title }}</h3>
@endif
{{ $badges ?? '' }}
</div>
@isset($actions)
<div class="flex min-w-0 max-w-full flex-wrap items-center gap-2">
{{ $actions }}
</div>
@endisset
</header>
<div class="application-settings-section-body {{ $flush ? 'is-flush' : '' }}">
{{ $slot }}
</div>
</section>