53 lines
2.0 KiB
PHP
53 lines
2.0 KiB
PHP
<x-layout.app>
|
|
<x-slot:page_title>Audition Seating - {{ $audition->name }}</x-slot:page_title>
|
|
|
|
<x-table.table>
|
|
<thead>
|
|
<tr>
|
|
<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</x-table.th>
|
|
<x-table.th>All Scores?</x-table.th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<x-table.body>
|
|
@foreach($entries as $entry)
|
|
<tr>
|
|
<x-table.td>{{ $entry->id }}</x-table.td>
|
|
<x-table.td>{{ $entry->draw_number }}</x-table.td>
|
|
<x-table.td>{{ $entry->student->full_name(true) }}</x-table.td>
|
|
<x-table.td>
|
|
@if($entry->student->isDoubler())
|
|
<x-doubler-block :student="$entry->student" />
|
|
@endif
|
|
</x-table.td>
|
|
{{-- @foreach($judges as $judge)--}}
|
|
{{-- <x-table.td>--}}
|
|
{{-- @php--}}
|
|
{{-- $thisJudgeScore = $entry->scoreFromJudge($judge->id)?->totalScore();--}}
|
|
{{-- @endphp--}}
|
|
{{-- {{ $thisJudgeScore ? number_format($thisJudgeScore,4) : '' }}--}}
|
|
{{-- </x-table.td>--}}
|
|
{{-- @endforeach--}}
|
|
<x-table.td>{{ number_format($entry->totalScore(), 4) }}</x-table.td>
|
|
<x-table.td>
|
|
@if($entry->fullyJudged())
|
|
<x-icons.checkmark color="green" />
|
|
@endif
|
|
|
|
</x-table.td>
|
|
</tr>
|
|
@endforeach
|
|
</x-table.body>
|
|
</x-table.table>
|
|
|
|
|
|
|
|
</x-layout.app>
|