auditionadmin/resources/views/tabulation/auditionSeating-results-tab...

78 lines
3.8 KiB
PHP

<x-card.card class="px-3">
<x-table.table>
<thead>
<tr>
<x-table.th>Rank</x-table.th>
<x-table.th>ID</x-table.th>
<x-table.th>Draw #</x-table.th>
<x-table.th>Student Name</x-table.th>
<x-table.th>Doubler</x-table.th>
{{-- @foreach($judges as $judge)--}}
{{-- <x-table.th>{{ $judge->short_name() }}</x-table.th>--}}
{{-- @endforeach--}}
<x-table.th>Total Score
@if($audition->bonusScore()->count() > 0)
<br>
<div class="display: flex">
<x-icons.checkmark color="green"/>
Has Bonus
</div>
@endif
</x-table.th>
<x-table.th>All Scores?</x-table.th>
</tr>
</thead>
<x-table.body>
@foreach($entryData as $entry)
<tr>
<x-table.td>{{ $entry['rank'] }}</x-table.td>
<x-table.td>{{ $entry['id'] }}</x-table.td>
<x-table.td>{{ $entry['drawNumber'] }}</x-table.td>
<x-table.td class="flex flex-col">
<span>{{ $entry['studentName'] }}</span>
<span class="text-xs text-gray-400">{{ $entry['schoolName'] }}</span>
</x-table.td>
<x-table.td class="!py-0">
@if($entry['doubleData'])
@if($entry['doublerRequest'])
<p class="pt-3"><span class="font-semibold">Request: </span>{{$entry['doublerRequest']}}
</p>
@endif
@include('tabulation.auditionSeating-doubler-block-OLD')
{{-- DOUBLER<br>--}}
{{-- @foreach($entry['doubleData'] as $double)--}}
{{-- ID: {{ $double['entryId'] }} - {{ $double['name'] }} - {{ $double['rank'] }}<br>--}}
{{-- Unscored Entries: {{ $double['unscored_in_audition'] }}<br>--}}
{{-- @foreach($double['limits'] as $limit)--}}
{{-- {{$limit['ensemble']->name}}: {{ $limit['limit'] }}<br>--}}
{{-- @endforeach--}}
{{-- <hr>--}}
{{-- @endforeach--}}
@endif
{{-- @if($doublerService->studentIsDoubler($entry->student_id))--}}
{{-- @include('tabulation.auditionSeating-doubler-block')--}}
{{-- @endif--}}
</x-table.td>
<x-table.td>
<div class="display: flex">
{{ $entry['totalScore'] }}
@if($audition->bonusScore()->count() > 0 && $entry['hasBonusScores'])
<x-icons.checkmark color="green"/>
@endif
</div>
</x-table.td>
<x-table.td>
@if($entry['fullyScored'])
<x-icons.checkmark color="green"/>
@endif
</x-table.td>
</tr>
@endforeach
</x-table.body>
</x-table.table>
</x-card.card>