2023-09-25 10:49:55 +00:00
|
|
|
<div>
|
|
|
|
<form wire:submit.prevent='submit'>
|
|
|
|
<div class="flex items-center gap-2 pb-4">
|
|
|
|
@if ($database->human_name)
|
|
|
|
<h2>{{ Str::headline($database->human_name) }}</h2>
|
|
|
|
@else
|
|
|
|
<h2>{{ Str::headline($database->name) }}</h2>
|
|
|
|
@endif
|
|
|
|
<x-forms.button type="submit">Save</x-forms.button>
|
|
|
|
<a target="_blank" href="{{ $database->documentation() }}">Documentation <x-external-link /></a>
|
|
|
|
</div>
|
|
|
|
<div class="flex gap-2">
|
|
|
|
<x-forms.input label="Name" id="database.human_name" placeholder="Name"></x-forms.input>
|
|
|
|
<x-forms.input label="Description" id="database.description"></x-forms.input>
|
|
|
|
</div>
|
2023-09-25 13:48:43 +00:00
|
|
|
<h3 class="pt-2">Advanced</h3>
|
|
|
|
<div class="w-64">
|
|
|
|
<x-forms.checkbox instantSave label="Ignore from service status"
|
|
|
|
helper="If you do not need to monitor this resource, enable. Useful if this service is optional."
|
|
|
|
id="database.ignore_from_status"></x-forms.checkbox>
|
|
|
|
</div>
|
2023-09-25 10:49:55 +00:00
|
|
|
</form>
|
|
|
|
@if ($database->fileStorages()->get()->count() > 0)
|
|
|
|
<h3 class="py-4">Mounted Files (binds)</h3>
|
|
|
|
<div class="flex flex-col gap-4">
|
|
|
|
@foreach ($database->fileStorages()->get() as $fileStorage)
|
|
|
|
<livewire:project.service.file-storage :fileStorage="$fileStorage" wire:key="{{ $loop->index }}" />
|
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</div>
|