<x-filament::widget>
    <x-filament::card>
        <form wire:submit.prevent="submit">
            <div class="flex items-end gap-1.5">
                <div class="flex-1">
                    {{ $this->form }}
                </div>
                <x-filament::button type="submit" class="h-[42px]">
                    保存
                </x-filament::button>
            </div>
        </form>
    </x-filament::card>

    {{-- 模拟弹窗 --}}
    @if ($showSuccessModal)
        <div class="fixed inset-0 flex items-center justify-center z-50 bg-black/50">
            <div class="bg-white rounded-xl p-6 shadow-xl w-96 text-center">
                <div class="text-2xl font-semibold text-green-600 mb-2">✅ 保存成功</div>
                <p class="text-gray-700 mb-4">触发价格已保存至数据库。</p>
                <x-filament::button color="success" wire:click="$set('showSuccessModal', false)">
                    我知道了
                </x-filament::button>
            </div>
        </div>
    @endif
</x-filament::widget>
