From 28b755575fc37df01f4fcfc4118425db09de4eda Mon Sep 17 00:00:00 2001 From: HolgerHatGarKeineNode Date: Mon, 19 Jan 2026 23:46:59 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Refactor=20Blade=20template:=20repl?= =?UTF-8?q?ace=20custom=20button=20with=20Flux=20component,=20improve=20la?= =?UTF-8?q?yout=20consistency,=20and=20enhance=20voting=20section=20struct?= =?UTF-8?q?ure=20for=20better=20readability=20and=20maintainability.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../project-support/show.blade.php | 103 +++++++++--------- 1 file changed, 49 insertions(+), 54 deletions(-) diff --git a/resources/views/livewire/association/project-support/show.blade.php b/resources/views/livewire/association/project-support/show.blade.php index 4425804..6f52500 100644 --- a/resources/views/livewire/association/project-support/show.blade.php +++ b/resources/views/livewire/association/project-support/show.blade.php @@ -81,17 +81,12 @@ new class extends Component {
@if($projectProposal->accepted || $isAllowed)
-
-
+
+
- - - - - Zurück zur Übersicht - + + Zurück zur Übersicht +
{{ $projectProposal->created_at->translatedFormat('d.m.Y') }} @@ -134,58 +129,58 @@ new class extends Component {
+
- @if($isAllowed && !$projectProposal->accepted) -
-
- @if(!$ownVoteExists) -
- - - Zustimmen - - - - Ablehnen - -
- @else -

Du hast bereits abgestimmt.

- @endif -
- -
-
- Zustimmungen des Vorstands ({{ count($this->boardVotes->where('value', 1)) }}) + @if($isAllowed && !$projectProposal->accepted) +
+
+ @if(!$ownVoteExists) +
+ + + Zustimmen + + + + Ablehnen +
-
+ @else +

Du hast bereits abgestimmt.

+ @endif +
-
-
- Ablehnungen des Vorstands ({{ count($this->boardVotes->where('value', 0)) }}) -
-
- -
-
- Zustimmungen der übrigen Mitglieder - ({{ count($this->otherVotes->where('value', 1)) }}) -
-
- -
-
- Ablehnungen der übrigen Mitglieder - ({{ count($this->otherVotes->where('value', 0)) }}) -
+
+
+ Zustimmungen des Vorstands ({{ count($this->boardVotes->where('value', 1)) }})
- @endif -
+ +
+
+ Ablehnungen des Vorstands ({{ count($this->boardVotes->where('value', 0)) }}) +
+
+ +
+
+ Zustimmungen der übrigen Mitglieder + ({{ count($this->otherVotes->where('value', 1)) }}) +
+
+ +
+
+ Ablehnungen der übrigen Mitglieder + ({{ count($this->otherVotes->where('value', 0)) }}) +
+
+
+ @endif
@else -
+
Zugriff auf Projektförderung nicht möglich