diff --git a/resources/js/nostrApp.js b/resources/js/nostrApp.js index 142a8c8..79a64ab 100644 --- a/resources/js/nostrApp.js +++ b/resources/js/nostrApp.js @@ -1,6 +1,5 @@ export default (livewireComponent) => ({ - isAllowed: livewireComponent.entangle('isAllowed', true), signThisEvent: livewireComponent.entangle('signThisEvent'), showLog: livewireComponent.entangle('showLog', true), diff --git a/resources/views/pages/association/election/[Election:year].blade.php b/resources/views/pages/association/election/[Election:year].blade.php index 6adf8e9..d98fb26 100644 --- a/resources/views/pages/association/election/[Election:year].blade.php +++ b/resources/views/pages/association/election/[Election:year].blade.php @@ -162,539 +162,560 @@ $signEvent = function ($event) { :seo="new \RalphJSmit\Laravel\SEO\Support\SEOData(title: 'Wahlen ' . $election->year, description: 'Wahlen des Vereins im Jahr ' . $election->year)" > @volt -
+
+ @if($isAllowed) +
- @php - $positions = [ - 'presidency' => ['icon' => 'fa-crown', 'title' => 'Präsidium'], - 'board' => ['icon' => 'fa-users', 'title' => 'Vizepräsidium'], - ]; - $loadedEvents = collect($events) - ->map(function($event) { - $profile = \App\Models\Profile::query() - ->where('pubkey', $event['pubkey']) - ->first() - ?->toArray(); - $votedFor = \App\Models\Profile::query() - ->where('pubkey', str($event['content'])->before(',')->toString()) - ->first() - ?->toArray(); - - return [ - 'id' => $event['id'], - 'kind' => $event['kind'], - 'content' => $event['content'], - 'pubkey' => $event['pubkey'], - 'tags' => $event['tags'], - 'created_at' => $event['created_at'], - 'profile' => $profile, - 'votedFor' => $votedFor, - 'type' => str($event['content'])->after(',')->toString(), + @php + $positions = [ + 'presidency' => ['icon' => 'fa-crown', 'title' => 'Präsidium'], + 'board' => ['icon' => 'fa-users', 'title' => 'Vizepräsidium'], ]; - }) - ->sortByDesc('created_at') - ->unique(fn ($event) => $event['pubkey'] . $event['type']) - ->values(); - $loadedBoardEvents = collect($boardEvents) - ->map(function($event) { - $profile = \App\Models\Profile::query() - ->where('pubkey', $event['pubkey']) - ->first() - ?->toArray(); - $votedFor = \App\Models\Profile::query() - ->where('pubkey', str($event['content'])->before(',')->toString()) - ->first() - ?->toArray(); + $loadedEvents = collect($events) + ->map(function($event) { + $profile = \App\Models\Profile::query() + ->where('pubkey', $event['pubkey']) + ->first() + ?->toArray(); + $votedFor = \App\Models\Profile::query() + ->where('pubkey', str($event['content'])->before(',')->toString()) + ->first() + ?->toArray(); - return [ - 'id' => $event['id'], - 'kind' => $event['kind'], - 'content' => $event['content'], - 'pubkey' => $event['pubkey'], - 'tags' => $event['tags'], - 'created_at' => $event['created_at'], - 'profile' => $profile, - 'votedFor' => $votedFor, - 'type' => str($event['content'])->after(',')->toString(), - ]; - }) - ->sortByDesc('created_at') - ->values(); - @endphp + return [ + 'id' => $event['id'], + 'kind' => $event['kind'], + 'content' => $event['content'], + 'pubkey' => $event['pubkey'], + 'tags' => $event['tags'], + 'created_at' => $event['created_at'], + 'profile' => $profile, + 'votedFor' => $votedFor, + 'type' => str($event['content'])->after(',')->toString(), + ]; + }) + ->sortByDesc('created_at') + ->unique(fn ($event) => $event['pubkey'] . $event['type']) + ->values(); + $loadedBoardEvents = collect($boardEvents) + ->map(function($event) { + $profile = \App\Models\Profile::query() + ->where('pubkey', $event['pubkey']) + ->first() + ?->toArray(); + $votedFor = \App\Models\Profile::query() + ->where('pubkey', str($event['content'])->before(',')->toString()) + ->first() + ?->toArray(); - -
-
+ return [ + 'id' => $event['id'], + 'kind' => $event['kind'], + 'content' => $event['content'], + 'pubkey' => $event['pubkey'], + 'tags' => $event['tags'], + 'created_at' => $event['created_at'], + 'profile' => $profile, + 'votedFor' => $votedFor, + 'type' => str($event['content'])->after(',')->toString(), + ]; + }) + ->sortByDesc('created_at') + ->values(); + @endphp - - + +
+
+ + + @if($currentPubkey) + + @php + $electionConfig = collect(json_decode($election->candidates, true, 512, JSON_THROW_ON_ERROR)) + ->map(function ($c) use ($loadedEvents, $currentPubkey) { + $candidates = \App\Models\Profile::query() + ->whereIn('pubkey', $c['c']) + ->get() + ->map(function ($p) use ($loadedEvents, $c, $currentPubkey) { + $votedClass = ' bg-green-500/20 text-green-700'; + $notVotedClass = ' bg-gray-500/20 text-gray-100'; + $hasVoted = $loadedEvents + ->filter(fn($e) => $e['type'] === $c['type'] && $e['pubkey'] === $currentPubkey) + ->firstWhere('votedFor.pubkey', $p->pubkey); + + return [ + 'pubkey' => $p->pubkey, + 'name' => $p->name, + 'picture' => $p->picture, + 'votedClass' => $hasVoted ? $votedClass : $notVotedClass, + ]; + }); + + return [ + 'type' => $c['type'], + 'c' => $c['c'], + 'candidates' => $candidates, + ]; + }); + $electionConfigBoard = collect(json_decode($election->candidates, true, 512, JSON_THROW_ON_ERROR)) + ->map(function ($c) use ($loadedBoardEvents, $currentPubkey) { + $candidates = \App\Models\Profile::query() + ->whereIn('pubkey', $c['c']) + ->get() + ->map(function ($p) use ($loadedBoardEvents, $c, $currentPubkey) { + $votedClass = ' bg-green-500/20 text-green-700'; + $notVotedClass = ' bg-gray-500/20 text-gray-100'; + $hasVoted = $loadedBoardEvents + ->filter(fn($e) => $e['type'] === $c['type'] && $e['pubkey'] === $currentPubkey) + ->firstWhere('votedFor.pubkey', $p->pubkey); + + return [ + 'pubkey' => $p->pubkey, + 'name' => $p->name, + 'picture' => $p->picture, + 'votedClass' => $hasVoted ? $votedClass : $notVotedClass, + 'hasVoted' => $hasVoted, + ]; + }); + + return [ + 'type' => $c['type'], + 'c' => $c['c'], + 'candidates' => $candidates, + ]; + }); + @endphp + +
+ + +
+
+
+
+ @if($isNotClosed) + + @else + + @endif +
+
+
-
- -
- -
- - - -
- -
-
- Plebs -
-
    - @foreach($plebs as $pleb) -
  • -
    - A -
    -
    -
    - {{ $pleb['profile']['name'] ?? $pleb['pubkey'] }} + + +
    + + +
    +

    + Wahlen +

    + +
    + + +
    + + +
    +

    + Wahl des Präsidiums +

    + @php + $president = $positions['presidency']; + $board = $positions['board']; + @endphp +
    +
    +
    +
    +
    +
    -
    - +
    +
    +
    +

    {{ $president['title'] }}

    +
    +
    + @php + $votedResult = $loadedEvents->filter(fn ($event) => $event['pubkey'] === $currentPubkey)->firstWhere('type', 'presidency'); + @endphp + @if($votedResult) + Du hast "{{ $votedResult['votedFor']['name'] ?? 'error' }}" gewählt + @else + Wähle deinen Kandidaten für das Präsidium. + @endif
    -
    -
    - @foreach($positions as $name => $p) - @php - $votedResult = $loadedEvents->filter(fn ($e) => $e['pubkey'] === $pleb['pubkey'])->firstWhere('type', $name); - @endphp -
    - @if($votedResult) - +
    +
    + @foreach($electionConfig->firstWhere('type', 'presidency')['candidates'] ?? [] as $c) +
    +
    + {{ $c['name'] }} + {{ $c['name'] }} +
    @endforeach
    -
    +
    -
  • - @endforeach -
+
+ +

+ Wahl der übrigen Vorstandsmitglieder +

+
+ +
+
+
+
+ Klicke auf den Kandidaten, um seine Position als Vorstandsmitglied zu bestätigen. +
+
+
+
+ @foreach($electionConfigBoard->firstWhere('type', 'board')['candidates'] ?? [] as $c) +
+
+ {{ $c['name'] }} + {{ $c['name'] }} +
+
+ @endforeach +
+
+
+
+ +
+
+ +
+ + + + +
+
- + @endif - - - - @if($currentPubkey) - - @php - $electionConfig = collect(json_decode($election->candidates, true, 512, JSON_THROW_ON_ERROR)) - ->map(function ($c) use ($loadedEvents, $currentPubkey) { - $candidates = \App\Models\Profile::query() - ->whereIn('pubkey', $c['c']) - ->get() - ->map(function ($p) use ($loadedEvents, $c, $currentPubkey) { - $votedClass = ' bg-green-500/20 text-green-700'; - $notVotedClass = ' bg-gray-500/20 text-gray-100'; - $hasVoted = $loadedEvents - ->filter(fn($e) => $e['type'] === $c['type'] && $e['pubkey'] === $currentPubkey) - ->firstWhere('votedFor.pubkey', $p->pubkey); - - return [ - 'pubkey' => $p->pubkey, - 'name' => $p->name, - 'picture' => $p->picture, - 'votedClass' => $hasVoted ? $votedClass : $notVotedClass, - ]; - }); - - return [ - 'type' => $c['type'], - 'c' => $c['c'], - 'candidates' => $candidates, - ]; - }); - $electionConfigBoard = collect(json_decode($election->candidates, true, 512, JSON_THROW_ON_ERROR)) - ->map(function ($c) use ($loadedBoardEvents, $currentPubkey) { - $candidates = \App\Models\Profile::query() - ->whereIn('pubkey', $c['c']) - ->get() - ->map(function ($p) use ($loadedBoardEvents, $c, $currentPubkey) { - $votedClass = ' bg-green-500/20 text-green-700'; - $notVotedClass = ' bg-gray-500/20 text-gray-100'; - $hasVoted = $loadedBoardEvents - ->filter(fn($e) => $e['type'] === $c['type'] && $e['pubkey'] === $currentPubkey) - ->firstWhere('votedFor.pubkey', $p->pubkey); - - return [ - 'pubkey' => $p->pubkey, - 'name' => $p->name, - 'picture' => $p->picture, - 'votedClass' => $hasVoted ? $votedClass : $notVotedClass, - 'hasVoted' => $hasVoted, - ]; - }); - - return [ - 'type' => $c['type'], - 'c' => $c['c'], - 'candidates' => $candidates, - ]; - }); - @endphp - -
- - -
-
-
-
- @if($isNotClosed) - - @else - - @endif -
-
- -
-
+ @else +
+
+
+

Wahlen

+

+ Du bist nicht berechtigt, die Wahlen einzusehen. +

- - -
- - -
-

- Wahlen -

- -
- - -
- - -
-

- Wahl des Präsidiums -

- @php - $president = $positions['presidency']; - $board = $positions['board']; - @endphp -
-
-
-
-
- -
-
-
-
-

{{ $president['title'] }}

-
-
- @php - $votedResult = $loadedEvents->filter(fn ($event) => $event['pubkey'] === $currentPubkey)->firstWhere('type', 'presidency'); - @endphp - @if($votedResult) - Du hast "{{ $votedResult['votedFor']['name'] ?? 'error' }}" gewählt - @else - Wähle deinen Kandidaten für das Präsidium. - @endif -
-
-
-
- @foreach($electionConfig->firstWhere('type', 'presidency')['candidates'] ?? [] as $c) -
-
- {{ $c['name'] }} - {{ $c['name'] }} -
-
- @endforeach -
-
-
-
-
- -

- Wahl der übrigen Vorstandsmitglieder -

-
- -
-
-
-
- Klicke auf den Kandidaten, um seine Position als Vorstandsmitglied zu bestätigen. -
-
-
-
- @foreach($electionConfigBoard->firstWhere('type', 'board')['candidates'] ?? [] as $c) -
-
- {{ $c['name'] }} - {{ $c['name'] }} -
-
- @endforeach -
-
-
-
- -
-
- -
- - - - - -
-
@endif diff --git a/resources/views/pages/association/election/index.blade.php b/resources/views/pages/association/election/index.blade.php index 24fc5af..186f0ec 100644 --- a/resources/views/pages/association/election/index.blade.php +++ b/resources/views/pages/association/election/index.blade.php @@ -54,20 +54,36 @@ $saveElection = function ($index) { @volt -
- @foreach($elections as $election) -
-
- {{ $election['year'] }} -
-
- -
-
- +
+ @if($isAllowed) +
+ @foreach($elections as $election) +
+
+ {{ $election['year'] }} +
+
+ +
+
+ +
+
+ @endforeach +
+ @else +
+
+
+

Einstellungen

+

+ Du bist nicht berechtigt, die Einstellungen zu bearbeiten. +

+
- @endforeach + @endif
@endvolt diff --git a/resources/views/pages/association/members/admin.blade.php b/resources/views/pages/association/members/admin.blade.php index 10213aa..e654599 100644 --- a/resources/views/pages/association/members/admin.blade.php +++ b/resources/views/pages/association/members/admin.blade.php @@ -48,8 +48,23 @@ on([ @volt -
- +
+ @if($isAllowed) +
+ +
+ @else +
+
+
+

Mitglieder

+

+ Du bist nicht berechtigt, Mitglieder zu bearbeiten. +

+
+
+
+ @endif
@endvolt diff --git a/resources/views/pages/association/project-support/[ProjectProposal:slug].blade.php b/resources/views/pages/association/project-support/[ProjectProposal:slug].blade.php index 0e37a84..ed20d2a 100644 --- a/resources/views/pages/association/project-support/[ProjectProposal:slug].blade.php +++ b/resources/views/pages/association/project-support/[ProjectProposal:slug].blade.php @@ -112,189 +112,213 @@ $handleNotApprove = function () { ?> - + @volt -
+
+ @if($isAllowed) +
- -
+ +
- -
- -
- {{ $projectProposal->created_at->translatedFormat('d.m.Y') }} -
-
- -

- {{ $projectProposal->name }} -

- - {!! $projectProposal->description !!} - -
- -
- -
- - User 04 - -
Eingereicht von -
{{ $projectProposal->einundzwanzigPleb->profile->name }}
+ + - -
- -
- Webseite +
+ {{ $projectProposal->created_at->translatedFormat('d.m.Y') }}
-
- {{ number_format($projectProposal->support_in_sats, 0, ',', '.') }} Sats -
-
-
+
+ +

+ {{ $projectProposal->name }} +

+ + {!! $projectProposal->description !!} + +
-
- Meetup -
- -
- - -
-

- Ablehnungen ({{ count($reasons) }}) -

-
    - @foreach($reasons as $reason) -
  • - - {{ $reason->einundzwanzigPleb->profile->name }} +
    + +
    + + User 04 -
    -
    - {{ $reason->einundzwanzigPleb->profile->name }} -
    -
    {{ $reason->reason }}
    +
    Eingereicht von +
    {{ $projectProposal->einundzwanzigPleb->profile->name }}
    -
  • - @endforeach -
-
- -
- - -
- - -
- @if(!$ownVoteExists) -
- - - +
+ +
+ +
+ Webseite +
+
+ {{ number_format($projectProposal->support_in_sats, 0, ',', '.') }} Sats +
+
- @else -
-

Du hast bereits abgestimmt.

-
- @endif -
- -
-
-
- Zustimmungen des Vorstands ({{ count($boardVotes) }}) -
-
-
    - @foreach($boardVotes as $vote) -
  • -
    -
    -
    - {{ $vote->einundzwanzigPleb->profile->name }} +
    + Meetup +
    + +
    + + +
    +

    + Ablehnungen ({{ count($reasons) }}) +

    +
      + @foreach($reasons as $reason) +
    • + + {{ $reason->einundzwanzigPleb->profile->name }} + +
      +
      + {{ $reason->einundzwanzigPleb->profile->name }} +
      +
      {{ $reason->reason }}
      -
      +
    • + @endforeach +
    +
    + +
    + + +
    + + +
    + @if(!$ownVoteExists) +
    + + + +
    + @else +
    +

    Du hast bereits abgestimmt.

    +
    + @endif +
    + + +
    +
    +
    + Zustimmungen des Vorstands ({{ count($boardVotes) }}) +
    +
    +
      + @foreach($boardVotes as $vote) +
    • +
      +
      +
      + {{ $vote->einundzwanzigPleb->profile->name }} +
      +
      {{ $vote->einundzwanzigPleb->profile->name }} +
      +
      -
    -
    -
  • - @endforeach -
-
- - -
-
-
- Zustimmungen der übrigen Mitglieder ({{ count($otherVotes) }}) + + @endforeach +
-
-
    - @foreach($otherVotes as $vote) -
  • -
    -
    -
    - {{ $vote->einundzwanzigPleb->profile->name }} -
    -
    + + +
    +
    +
    + Zustimmungen der übrigen Mitglieder ({{ count($otherVotes) }}) +
    +
    +
      + @foreach($otherVotes as $vote) +
    • +
      +
      +
      + {{ $vote->einundzwanzigPleb->profile->name }} +
      +
      {{ $vote->einundzwanzigPleb->profile->name }} +
      +
      -
    -
    -
  • - @endforeach -
+ + @endforeach + +
+ +
+
- -
- + @else +
+
+
+

+ Projekt-Unterstützung +

+

+ Du bist nicht berechtigt, die Projekt-Unterstützungen einzusehen. +

+
+
+
+ @endif
@endvolt diff --git a/resources/views/pages/association/project-support/form/[ProjectProposal:slug].blade.php b/resources/views/pages/association/project-support/form/[ProjectProposal:slug].blade.php index 3659e74..bcaa26d 100644 --- a/resources/views/pages/association/project-support/form/[ProjectProposal:slug].blade.php +++ b/resources/views/pages/association/project-support/form/[ProjectProposal:slug].blade.php @@ -72,72 +72,86 @@ $save = function () { @volt -
-
-
-
+
+ @if($isAllowed) +
+ +
+
- -
- @if ($image && method_exists($image, 'temporaryUrl') && str($image->getMimeType())->contains(['image/jpeg','image/jpg', 'image/png', 'image/gif', 'image/svg+xml', 'image/webp'])) -
{{ __('Preview') }}:
- - @endif - @if (isset($projectProposal) && $projectProposal->getFirstMediaUrl('main')) -
{{ __('Current picture') }}:
- - @endif + +
+ @if ($image && method_exists($image, 'temporaryUrl') && str($image->getMimeType())->contains(['image/jpeg','image/jpg', 'image/png', 'image/gif', 'image/svg+xml', 'image/webp'])) +
{{ __('Preview') }}:
+ + @endif + @if (isset($projectProposal) && $projectProposal->getFirstMediaUrl('main')) +
{{ __('Current picture') }}:
+ + @endif +
+ + @error('image') {{ $message }} @enderror +
+ + + + + + + + + + + + + + + +
+ {{ __('Beschreibung') }} +
+
{{ __('Bitte verfasse einen ausführlichen und verständlichen Antragstext, damit die Abstimmung über eine mögliche Förderung erfolgen kann.') }}
+
+
{{ __('Für Bilder in Markdown verwende bitte z.B. Imgur oder einen anderen Anbieter.') }}
+ + @error('form.description') {{ $message }} @enderror +
+ + + + + {{ __('Zurück') }} + + + + {{ __('Speichern') }} + +
- - @error('image') {{ $message }} @enderror -
- - - - - - - - - - - - - - - -
- {{ __('Beschreibung') }} -
-
{{ __('Bitte verfasse einen ausführlichen und verständlichen Antragstext, damit die Abstimmung über eine mögliche Förderung erfolgen kann.') }}
-
-
{{ __('Für Bilder in Markdown verwende bitte z.B. Imgur oder einen anderen Anbieter.') }}
- - @error('form.description') {{ $message }} @enderror -
- - - - - {{ __('Zurück') }} - - - - {{ __('Speichern') }} - - +
+ +
+ @else +
+
+
+

Projekt-Unterstützung

+

+ Du bist nicht berechtigt, die Projekt-Unterstützungen zu bearbeiten. +

+
- + @endif
@endvolt diff --git a/resources/views/pages/association/project-support/form/create.blade.php b/resources/views/pages/association/project-support/form/create.blade.php index b33e066..bbc0ebe 100644 --- a/resources/views/pages/association/project-support/form/create.blade.php +++ b/resources/views/pages/association/project-support/form/create.blade.php @@ -64,72 +64,88 @@ $save = function () { @volt -
-
-
-
+
+ @if($isAllowed) +
+ +
+
- -
- @if ($image && method_exists($image, 'temporaryUrl') && str($image->getMimeType())->contains(['image/jpeg','image/jpg', 'image/png', 'image/gif', 'image/svg+xml', 'image/webp'])) -
{{ __('Preview') }}:
- - @endif - @if (isset($projectProposal) && $projectProposal->getFirstMediaUrl('main')) -
{{ __('Current picture') }}:
- - @endif + +
+ @if ($image && method_exists($image, 'temporaryUrl') && str($image->getMimeType())->contains(['image/jpeg','image/jpg', 'image/png', 'image/gif', 'image/svg+xml', 'image/webp'])) +
{{ __('Preview') }}:
+ + @endif + @if (isset($projectProposal) && $projectProposal->getFirstMediaUrl('main')) +
{{ __('Current picture') }}:
+ + @endif +
+ + @error('image') {{ $message }} @enderror +
+ + + + + + + + + + + + + + + +
+ {{ __('Beschreibung') }} +
+
{{ __('Bitte verfasse einen ausführlichen und verständlichen Antragstext, damit die Abstimmung über eine mögliche Förderung erfolgen kann.') }}
+
+
{{ __('Für Bilder in Markdown verwende bitte z.B. Imgur oder einen anderen Anbieter.') }}
+ + @error('form.description') {{ $message }} @enderror +
+ + + + + {{ __('Zurück') }} + + + + {{ __('Save') }} + +
- - @error('image') {{ $message }} @enderror -
- - - - - - - - - - - - - - - -
- {{ __('Beschreibung') }} -
-
{{ __('Bitte verfasse einen ausführlichen und verständlichen Antragstext, damit die Abstimmung über eine mögliche Förderung erfolgen kann.') }}
-
-
{{ __('Für Bilder in Markdown verwende bitte z.B. Imgur oder einen anderen Anbieter.') }}
- - @error('form.description') {{ $message }} @enderror -
- - - - - {{ __('Zurück') }} - - - - {{ __('Save') }} - - +
+ +
+ @else +
+
+
+

+ Projekt-Unterstützung

+

+ Du bist nicht berechtigt, die Projekt-Unterstützungen zu bearbeiten. +

+
- + @endif
@endvolt diff --git a/resources/views/pages/association/project-support/index.blade.php b/resources/views/pages/association/project-support/index.blade.php index 792d76d..eefd86c 100644 --- a/resources/views/pages/association/project-support/index.blade.php +++ b/resources/views/pages/association/project-support/index.blade.php @@ -73,146 +73,164 @@ $delete = function ($id) { :seo="new \RalphJSmit\Laravel\SEO\Support\SEOData(title: 'Projekt Unterstützungen', description: 'Einundzwanzig Projektunterstützungen')" > @volt -
+
+ @if($isAllowed) +
- -
+ +
- -
-

- Einundzwanzig Projektunterstützungen -

-
+ +
+

+ Einundzwanzig Projektunterstützungen +

+
- -
+ +
- -
- - + +
+ + - - @if($currentPleb && $currentPleb->association_status->value > 2) - - @endif -
+ + @if($currentPleb && $currentPleb->association_status->value > 2) + + @endif +
-
+
- - {{--
-
    -
  • - -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • -
-
--}} -
{{ count($projects) }} Projekte
+ + {{--
+
    +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
+
--}} +
{{ count($projects) }} Projekte
- -
+ +
- @foreach($projects as $project) -
- - - Meetup 01 - - - -
-
-
- Eingereicht von: {{ $project->einundzwanzigPleb->profile->name }} -
- -

- {{ $project->name }} -

+ @foreach($projects as $project) +
- -
- -
- {{ number_format($project->support_in_sats, 0, ',', '.') }} Sats -
-
- Webseite -
- - @if($project->votes->where('value', true)->count() > 0) -
-
- Anzahl der Unterstützer: +{{ $project->votes->where('value', true)->count() }} + +
+
+
+ Eingereicht von: {{ $project->einundzwanzigPleb->profile->name }} +
+ +

+ {{ $project->name }} +

+
+
+ {!! strip_tags($project->description) !!}
- @endif -
-
- @if( - ($currentPleb && $currentPleb->id === $project->einundzwanzig_pleb_id) - || ($currentPleb && in_array($currentPleb->npub, config('einundzwanzig.config.current_board'), true)) - ) - - - @endif - @if($currentPleb && $currentPleb->association_status->value > 2) - - @endif -
+ +
+ +
+ {{ number_format($project->support_in_sats, 0, ',', '.') }} Sats +
+
+ Webseite +
+ + @if($project->votes->where('value', true)->count() > 0) +
+
+ Anzahl der Unterstützer: + +{{ $project->votes->where('value', true)->count() }} +
+
+ @endif +
+
+ @if( + ($currentPleb && $currentPleb->id === $project->einundzwanzig_pleb_id) + || ($currentPleb && in_array($currentPleb->npub, config('einundzwanzig.config.current_board'), true)) + ) + + + @endif + @if($currentPleb && $currentPleb->association_status->value > 2) + + @endif +
+
+
+ @endforeach + +
+ +
+ @else +
+
+
+

+ Projektunterstützungen

+

+ Du bist nicht berechtigt, die Projektunterstützungen einzusehen. +

- - @endforeach - -
- +
+
+ @endif
@endvolt