diff --git a/resources/views/livewire/association/profile.blade.php b/resources/views/livewire/association/profile.blade.php index b9540ad..656dc66 100644 --- a/resources/views/livewire/association/profile.blade.php +++ b/resources/views/livewire/association/profile.blade.php @@ -54,12 +54,12 @@ new class extends Component { $this->currentPubkey = NostrAuth::pubkey(); $this->currentPleb = EinundzwanzigPleb::query() ->with([ - 'paymentEvents' => fn ($query) => $query->where('year', date('Y')), + 'paymentEvents' => fn($query) => $query->where('year', date('Y')), ]) ->where('pubkey', $this->currentPubkey)->first(); if ($this->currentPleb) { $this->email = $this->currentPleb->email; - $this->showEmail = ! $this->no; + $this->showEmail = !$this->no; if ($this->currentPleb->association_status === AssociationStatus::ACTIVE) { $this->amountToPay = config('app.env') === 'production' ? 21000 : 1; } @@ -80,12 +80,12 @@ new class extends Component { $this->currentPubkey = $pubkey; $this->currentPleb = EinundzwanzigPleb::query() ->with([ - 'paymentEvents' => fn ($query) => $query->where('year', date('Y')), + 'paymentEvents' => fn($query) => $query->where('year', date('Y')), ]) ->where('pubkey', $pubkey)->first(); $this->email = $this->currentPleb->email; $this->no = $this->currentPleb->no_email; - $this->showEmail = ! $this->no; + $this->showEmail = !$this->no; if ($this->currentPleb->association_status === AssociationStatus::ACTIVE) { $this->amountToPay = config('app.env') === 'production' ? 21000 : 1; } @@ -113,7 +113,7 @@ new class extends Component { public function updatedNo(): void { - $this->showEmail = ! $this->no; + $this->showEmail = !$this->no; $this->currentPleb->update([ 'no_email' => $this->no, ]); @@ -220,7 +220,7 @@ new class extends Component { public function save($type): void { $this->form->validate(); - if (! $this->form->check) { + if (!$this->form->check) { $this->js('alert("Du musst den Statuten zustimmen.")'); return; @@ -285,7 +285,7 @@ new class extends Component { $this->events = collect($response[config('services.relay')]) ->map(function ($event) { - if (! isset($event->event)) { + if (!isset($event->event)) { return false; } @@ -319,8 +319,6 @@ new class extends Component { -
-
@@ -341,20 +339,20 @@ new class extends Component {
- -
+ +
- -
-

Aktueller Status

+ +
+

+ Aktueller Status +

-
- - @if(!$currentPleb) +
-
Empfohlene Nostr - Login und Signer-Apps +
+ Empfohlene Nostr Login und Signer-Apps
@@ -367,7 +365,8 @@ new class extends Component { href="https://github.com/greenart7c3/Amber"> Amber -
Perfekt für mobile Android Geräte. Eine App, in +
Perfekt für mobile Android Geräte. Eine + App, in der man alle Keys/nsecs verwalten kann.
@@ -392,7 +391,8 @@ new class extends Component { Alby - Bitcoin Lightning Wallet & Nostr
- Browser-Erweiterung in die man seinen Key/nsec eingeben kann. + Browser-Erweiterung in die man seinen Key/nsec eingeben + kann. Pro Alby-Konto ein nsec.
@@ -431,92 +431,92 @@ new class extends Component {
- -
-
- - nos2x-fox - -
- Browser-Erweiterung für Firefox Browser. Multi-Key fähig. -
+ +
+
+ + nos2x-fox + +
+ Browser-Erweiterung für Firefox Browser. Multi-Key fähig.
- -
-
- Browser Firefox -
-
- - @endif - -
- - @if($currentPubkey && $currentPleb->association_status->value < 2) - -
- - - -
Profil in der Datenbank vorhanden.
+ +
+
+ Browser Firefox
- -
- @endif -
-
+
+ -
+
+ + @if($currentPubkey && $currentPleb->association_status->value < 2) + +
+ + + +
Profil in der Datenbank vorhanden.
+
+
+ @endif +
+
+ + +

Einundzwanzig Mitglied werden

Nur Personen können Mitglied werden und zahlen 21.000 Satoshis im Jahr.
- Firmen melden - sich bitte direkt an den Vorstand. + + Firmen melden sich bitte direkt an den Vorstand. +

-
-
-
- - - - -
+
+
+
+ + + + +
- + Mit deinem aktuellen Nostr-Profil Mitglied werden -
-
- @if($currentPubkey) - -
+
+
+ +
-
- - NEIN - Ich informiere mich selbst in der News Sektion und gebe keine E-Mail Adresse raus. - - - + class="flex flex-col sm:flex-row space-y-2 sm:space-y-0 sm:space-x-2 text-amber-500"> + + NEIN + Ich informiere mich selbst in der News + Sektion und gebe keine E-Mail Adresse raus. + + + +
- @if($showEmail) -
- - Fax-Nummer - - - - - E-Mail Adresse - - - -
-
- +
+ + Fax-Nummer + + + + + E-Mail Adresse + + + +
+
+ Speichern -
- @endif -
-
-
-
-@endif -@endif -
-
- @endif - - -
- @if($currentPleb && $currentPleb->association_status->value > 1) -
-
-
-
- - - -
-
- Du bist derzeit ein Mitglied des Vereins. -
-
-
-
- -
- @endif -
- -
- @if($currentPleb && $currentPleb->association_status->value > 1) - -
-
- - - -
-
-

Nostr Event für die Zahlung des - Mitgliedsbeitrags: {{ $currentPleb->paymentEvents->last()->event_id }} -

-
- @if(isset($latestEvent)) -

{{ $latestEvent['content'] }}

-
- @if(!$currentYearIsPaid) -
- - - Pay {{ $amountToPay }} Sats - -
- @else - @if($currentYearIsPaid) -
- - - aktuelles Jahr bezahlt - -
- @endif - @endif -
- @else -
- - - Unser Nostr-Relay konnte derzeit nicht erreicht - werden, um eine Zahlung zu initialisieren. Bitte - versuche es später noch einmal. - -
- @endif -
-
-

- bisherige Zahlungen

- - - - - - - - - - - - - - @foreach($payments as $payment) - - - - - - - @endforeach - -
-
- Sats: - {{ $payment->amount }} -
-
-
Jahr:{{ $payment->year }} -
-
-
{{ $payment->event_id }}
-
- @if($payment->btc_pay_invoice) - - Quittung - - @endif -
-
-
- @endif -
- + + +
- - - - +
+ @if($currentPleb && $currentPleb->association_status->value > 1) +
+ +
+
+ + + +
+
+ Du bist derzeit ein Mitglied des Vereins. +
+
+
+
+
+
+ @endif +
+
+ @if($currentPleb && $currentPleb->association_status->value > 1) + +
+
+ + + +
+
+

+ Nostr Event für die Zahlung des Mitgliedsbeitrags: {{ $currentPleb->paymentEvents->last()->event_id }} +

+
+ @if(isset($latestEvent)) +

{{ $latestEvent['content'] }}

+
+ @if(!$currentYearIsPaid) +
+ + + Pay {{ $amountToPay }} Sats + +
+ @elseif($currentYearIsPaid) +
+ + + aktuelles Jahr bezahlt + +
+ @endif +
+ @else +
+ + + Unser Nostr-Relay konnte derzeit nicht erreicht + werden, um eine Zahlung zu initialisieren. Bitte + versuche es später noch einmal. + +
+ @endif +
+
+

+ bisherige Zahlungen

+ + + + + + + + + + + + + + @foreach($payments as $payment) + + + + + + + @endforeach + +
+
+ Sats: + {{ $payment->amount }} +
+
+
Jahr:{{ $payment->year }} +
+
+
{{ $payment->event_id }}
+
+ @if($payment->btc_pay_invoice) + + Quittung + + @endif +
+
+
+
+
+
+
+ @endif +
+
diff --git a/resources/views/livewire/association/project-support/index.blade.php b/resources/views/livewire/association/project-support/index.blade.php index db50119..f24d4de 100644 --- a/resources/views/livewire/association/project-support/index.blade.php +++ b/resources/views/livewire/association/project-support/index.blade.php @@ -1,8 +1,10 @@ 'handleNostrLoggedIn', @@ -30,7 +32,7 @@ new class extends Component { $this->loadProjects(); if (NostrAuth::check()) { $this->currentPubkey = NostrAuth::pubkey(); - $this->currentPleb = \App\Models\EinundzwanzigPleb::query()->where('pubkey', $this->currentPubkey)->first(); + $this->currentPleb = EinundzwanzigPleb::query()->where('pubkey', $this->currentPubkey)->first(); $this->isAllowed = true; } } @@ -63,7 +65,7 @@ new class extends Component { { NostrAuth::login($pubkey); $this->currentPubkey = $pubkey; - $this->currentPleb = \App\Models\EinundzwanzigPleb::query()->where('pubkey', $pubkey)->first(); + $this->currentPleb = EinundzwanzigPleb::query()->where('pubkey', $pubkey)->first(); $this->isAllowed = true; } @@ -97,94 +99,91 @@ new class extends Component { ?>
-
- - -
- - -
-

- Einundzwanzig Projektunterstützungen -

-
- - -
- - -
- - - - - @if($currentPleb && $currentPleb->association_status->value > 1 && $currentPleb->paymentEvents()->where('year', date('Y'))->where('paid', true)->exists()) - - Projekt einreichen - - @endif -
+
+ +
+ +
+

+ Einundzwanzig Projektunterstützungen +

- -
-
    -
  • - -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • -
-
-
{{ $projects->count() }} Projekte
+ +
- -
- @foreach($this->projects as $project) - - @endforeach -
+ +
+ + - - -
-
- Projektunterstützung löschen - -

Bist du sicher, dass du diese Projektunterstützung löschen möchtest?

-

Diese Aktion kann nicht rückgängig gemacht werden.

-
-
-
- - - Abbrechen - - Ja, löschen -
-
-
+ + @if($currentPleb && $currentPleb->association_status->value > 1 && $currentPleb->paymentEvents()->where('year', date('Y'))->where('paid', true)->exists()) + + Projekt einreichen + + @endif +
+ + +
+
    +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
+
+
{{ $projects->count() }} Projekte
+ + +
+ @foreach($this->projects as $project) + + @endforeach +
+ + +
+
+ Projektunterstützung löschen + +

Bist du sicher, dass du diese Projektunterstützung löschen möchtest?

+

Diese Aktion kann nicht rückgängig gemacht werden.

+
+
+
+ + + Abbrechen + + Ja, löschen +
+
+
+