From 82e44b40682f2e3afdbd3ed64b5494cecf69ee75 Mon Sep 17 00:00:00 2001 From: Lupu Gheorghe <46172059+gheorghelupu17@users.noreply.github.com> Date: Fri, 29 Nov 2024 23:37:22 +0200 Subject: [PATCH] remove candidates if election has list (#114) --- resources/views/components/candidates/turnouts-table.blade.php | 2 +- resources/views/livewire/pages/election-turnouts.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/components/candidates/turnouts-table.blade.php b/resources/views/components/candidates/turnouts-table.blade.php index 0eb7123..d167ced 100644 --- a/resources/views/components/candidates/turnouts-table.blade.php +++ b/resources/views/components/candidates/turnouts-table.blade.php @@ -25,7 +25,7 @@ - {{ $item['party'] }} + {{ $item['party']??'Independent' }} @endforeach diff --git a/resources/views/livewire/pages/election-turnouts.blade.php b/resources/views/livewire/pages/election-turnouts.blade.php index 1e0c27f..ab5b3f2 100644 --- a/resources/views/livewire/pages/election-turnouts.blade.php +++ b/resources/views/livewire/pages/election-turnouts.blade.php @@ -70,7 +70,7 @@ :election="$election" show-embed /> - @if ($election->type->isNot(ElectionType::REFERENDUM) && $this->candidates->isNotEmpty()) + @if ($election->type->isNot(ElectionType::REFERENDUM) && !$election->has_lists) @endif