customer(); $block = SecurityBlock::query() ->where('uuid', $uuid) ->whereHas('instance', fn ($q) => $q->where('customer_id', $customer?->id)) ->first(); abort_if($block === null, 404); $this->uuid = $uuid; $this->ip = $block->ip; } public function confirm(): void { $this->dispatch('block-release-confirmed', uuid: $this->uuid); $this->closeModal(); } public function render() { return view('livewire.confirm-release-block'); } }