@php
use Illuminate\Support\Facades\Storage;
@endphp

<x-filament::page>
    <div class="space-y-6">
        <div class="rounded-xl bg-white p-6 shadow-sm">
            {{ $this->form }}
            <div class="mt-4 flex justify-end">
                <x-filament::button wire:click="save" color="primary">
                    Speichern
                </x-filament::button>
            </div>
        </div>
        @if($asset)
            <div class="rounded-xl bg-white p-4 shadow-sm">
                <p class="text-sm font-medium mb-2">Aktuelles Basis-Wasserzeichen</p>
                <img src="{{ Storage::disk('public')->url($asset) }}" alt="Watermark" class="max-h-32 object-contain">
            </div>
        @endif
    </div>
</x-filament::page>
