Hide doubler blocks for declined seats
This commit is contained in:
parent
911f98b465
commit
7cf6539d36
|
|
@ -78,7 +78,7 @@ class TabulationService
|
||||||
$entry->rank = $n;
|
$entry->rank = $n;
|
||||||
$n++;
|
$n++;
|
||||||
} else {
|
} else {
|
||||||
$entry->rank = 'declined';
|
$entry->rank = $n . ' - declined';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$cache[$auditionId] = $entries->keyBy('id');
|
$cache[$auditionId] = $entries->keyBy('id');
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,9 @@
|
||||||
<ul role="list" class="">
|
<ul role="list" class="">
|
||||||
|
|
||||||
@foreach($doublerEntryInfo as $info)
|
@foreach($doublerEntryInfo as $info)
|
||||||
<li class="pb-2 pt-0 px-0 my-2 rounded-xl border border-gray-200 ">
|
@php($isopen = $info['status'] == 'undecided')
|
||||||
<div class="flex items-start gap-x-3 bg-gray-100 px-3 py-2">
|
<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">
|
<p class="text-sm font-semibold leading-6 text-gray-900">
|
||||||
<a href="/tabulation/auditions/{{ $info['auditionID'] }}">
|
<a href="/tabulation/auditions/{{ $info['auditionID'] }}">
|
||||||
{{ $info['auditionName'] }} - {{ $info['status'] }}
|
{{ $info['auditionName'] }} - {{ $info['status'] }}
|
||||||
|
|
@ -12,7 +13,7 @@
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</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">
|
<div class="mt-1 px-3 text-xs leading-5 text-gray-500">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="flex items-center gap-x-2">
|
<li class="flex items-center gap-x-2">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue