maxQuantity(AddonCatalogue::STORAGE) ?? 50; // Geklemmt wie bisher, nur an der kaufmännischen Grenze statt an einer // erfundenen: ein Modal wird mit Argumenten aus der Seite geöffnet, und // eine Seite ist Markup. $this->packs = max(1, min($max, $packs)); $this->packGb = $catalogue->packGb(); } public function proceed(): void { $this->dispatch('storage-packs-confirmed', packs: $this->packs); $this->closeModal(); } public function render() { return view('livewire.confirm-book-storage'); } }