'', 'description' => '', ]; public bool $isAllowed = false; public function mount(): void { if (NostrAuth::check()) { $currentPubkey = NostrAuth::pubkey(); $currentPleb = \App\Models\EinundzwanzigPleb::query()->where('pubkey', $currentPubkey)->first(); if ($currentPleb && $currentPleb->association_status->value > 1 && $currentPleb->paymentEvents()->where('year', date('Y'))->where('paid', true)->exists()) { $this->isAllowed = true; } } } public function save(): void { $this->validate([ 'form.name' => 'required|string|max:255', 'form.description' => 'required|string', ]); ProjectProposal::query()->create([ 'name' => $this->form['name'], 'description' => $this->form['description'], 'einundzwanzig_pleb_id' => \App\Models\EinundzwanzigPleb::query()->where('pubkey', NostrAuth::pubkey())->first()->id, ]); $this->redirectRoute('association.projectSupport'); } }; ?>
Fülle das Formular aus, um eine neue Projektförderung anzulegen.
Du bist nicht berechtigt, eine Projektförderung anzulegen.