Hide doubler blocks for declined seats

This commit is contained in:
Matt Young 2024-06-21 15:32:44 -05:00
parent 911f98b465
commit 7cf6539d36
2 changed files with 5 additions and 4 deletions

View File

@ -78,7 +78,7 @@ class TabulationService
$entry->rank = $n;
$n++;
} else {
$entry->rank = 'declined';
$entry->rank = $n . ' - declined';
}
}
$cache[$auditionId] = $entries->keyBy('id');

View File

@ -3,8 +3,9 @@
<ul role="list" class="">
@foreach($doublerEntryInfo as $info)
<li class="pb-2 pt-0 px-0 my-2 rounded-xl border border-gray-200 ">
<div class="flex items-start gap-x-3 bg-gray-100 px-3 py-2">
@php($isopen = $info['status'] == 'undecided')
<li class="pb-2 pt-0 px-0 my-2 rounded-xl border border-gray-200 " x-data="{ open: {{ $isopen ? 'true':'false' }} }">
<div class="flex items-start gap-x-3 bg-gray-100 px-3 py-2" x-on:click=" open = ! open ">
<p class="text-sm font-semibold leading-6 text-gray-900">
<a href="/tabulation/auditions/{{ $info['auditionID'] }}">
{{ $info['auditionName'] }} - {{ $info['status'] }}
@ -12,7 +13,7 @@
</p>
</div>
<div class="grid grid-cols-2">
<div class="grid grid-cols-2" x-show="open">
<div class="mt-1 px-3 text-xs leading-5 text-gray-500">
<ul>
<li class="flex items-center gap-x-2">