You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
2.1 KiB
41 lines
2.1 KiB
@use(App\UI\Enums\InputType)
|
|
<div class="row justify-content-center">
|
|
<div class="row gx-4 row-gap-4">
|
|
@foreach ($this->settings as $group)
|
|
<div class="col-sm-12 col-md-6">
|
|
<div class="row row-gap-4 gx-4">
|
|
@foreach ($group as $title => $section)
|
|
<div class="col-sm-12">
|
|
<x-card :title="$title">
|
|
@foreach ($section as $field)
|
|
<x-form.vertical-group :label="$field->label()">
|
|
<x-slot:action>
|
|
<button
|
|
class="btn btn-sm btn-info"
|
|
data-coreui-toggle="modal"
|
|
data-coreui-target="#update-setting-modal"
|
|
data-id="{{ $field->value }}"
|
|
>
|
|
@svg('tabler-edit', ['width' => 16, 'height' => 16])
|
|
</button>
|
|
</x-slot:action>
|
|
@if ($field->schema()->getSchema()->type->isFile())
|
|
<img
|
|
class="card-img mt-1 border"
|
|
src="{{ $this->settingsValue[$field->value] ?? '' }}"
|
|
alt=""
|
|
/>
|
|
@else
|
|
{{ $this->settingsValue[$field->value] ?? '-' }}
|
|
@endif
|
|
</x-form.vertical-group>
|
|
@endforeach
|
|
</x-card>
|
|
</div>
|
|
@endforeach
|
|
</div>
|
|
</div>
|
|
@endforeach
|
|
</div>
|
|
<livewire:pages::system.settings.update-setting-modal />
|
|
</div>
|
|
|