An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
@if ($availableS3Storages->isEmpty())
<x-application.settings-section title="S3 storage"
description="Send backup archives to a validated object storage destination." flush>
<x-empty title="No validated S3 storage"
description="Add and validate an S3 storage destination before enabling remote backups."
icon-name="storages">
<x-slot:contents>
<a class="button" {{ wireNavigate() }} href="{{ route('storage.index') }}">Open S3 storage</a>
</x-slot:contents>
</x-empty>
</x-application.settings-section>
@else
<x-application.settings-section title="S3 storage"
description="Choose where remote backups are stored and whether local copies are retained.">
<x-slot:actions>
@if (! $saveS3)
<x-forms.button type="button" wire:click="toggleS3" wire:loading.attr="disabled"
wire:target="toggleS3" isHighlighted>Enable S3</x-forms.button>
@else
<x-forms.button type="button" wire:click="toggleS3" wire:loading.attr="disabled"
wire:target="toggleS3">Disable S3</x-forms.button>
@endif
</x-slot:actions>
<div class="grid gap-4 sm:grid-cols-2">
<x-forms.listbox id="s3StorageIds" label="S3 storages" multiple live portal
helper="Each backup is uploaded to every selected storage." placeholder="Select S3 storages"
:options="$availableS3Storages->map(fn ($storage) => [
'value' => $storage->id,
'label' => $storage->name.($storage->is_usable ? '' : ' (unavailable)'),
])->all()" />
<x-forms.listbox id="disableLocalBackup" label="Local copy" portal :disabled="! $saveS3"
:options="[
['value' => false, 'label' => 'Keep local backup'],
['value' => true, 'label' => 'Delete after S3 upload'],
]" />
</div>
</x-application.settings-section>
@endif