27 lines
953 B
PHP
27 lines
953 B
PHP
@php
|
|
use Filament\Support\Enums\GridDirection;
|
|
use Filament\Support\Icons\Heroicon;
|
|
use Illuminate\Support\Facades\Storage;
|
|
use Illuminate\View\ComponentAttributeBag;
|
|
|
|
$stacked = (new ComponentAttributeBag())->grid(['default' => 1], GridDirection::Column);
|
|
$assetPath = is_array($asset ?? null) ? ($asset[0] ?? null) : $asset;
|
|
@endphp
|
|
|
|
<x-filament::page>
|
|
<x-filament::section :icon="Heroicon::Photo">
|
|
<div {{ $stacked }}>
|
|
{{ $this->form }}
|
|
<x-filament::button wire:click="save" color="primary" :icon="Heroicon::CheckCircle">
|
|
Speichern
|
|
</x-filament::button>
|
|
</div>
|
|
</x-filament::section>
|
|
|
|
@if($assetPath)
|
|
<x-filament::section heading="Aktuelles Basis-Wasserzeichen" :icon="Heroicon::Photo">
|
|
<img src="{{ Storage::disk('public')->url($assetPath) }}" alt="Watermark" />
|
|
</x-filament::section>
|
|
@endif
|
|
</x-filament::page>
|