null]); state(['currentPleb' => null]); form(\App\Livewire\Forms\ApplicationForm::class); on([ 'nostrLoggedIn' => function ($pubkey) { $this->currentPubkey = $pubkey; $this->currentPleb = \App\Models\EinundzwanzigPleb::query()->where('pubkey', $pubkey)->first(); }, ]); $save = function ($type) { $this->form->validate(); $this->currentPleb ->update([ 'application_for' => $type, 'application_text' => $this->form->reason, ]); }; ?> @volt

Einundzwanzig ist, was du draus machst

Meine Mitgliedschaft
{{--
Experience
--}}

Aktueller Status

@if($currentPubkey)
Profil in der Datenbank vorhanden. Bewerbung kann erfolgen.
@endif
@if($currentPubkey && !$currentPleb->application_for && $currentPleb->association_status->value < 2)

passives Mitglied werden

@endif
@if($currentPubkey && !$currentPleb->application_for && $currentPleb->association_status->value < 2)

aktives Mitglied werden

@endif
@if($currentPubkey && $currentPleb->application_for)
Du hast dich erfolgreich mit folgendem Grund beworben:
{{ $currentPleb->application_text }}
@endif
@if($currentPleb && $currentPleb->association_status->value > 1)
Dein aktueller Status: {{ $currentPleb->association_status->label() }}
@endif
{{----}}
@endvolt