55 lines
2.5 KiB
PHP
55 lines
2.5 KiB
PHP
@php use Illuminate\Support\Facades\Auth; @endphp
|
|
<x-layout.app>
|
|
<x-slot:page_title>Judging Dashboard</x-slot:page_title>
|
|
<x-card.card>
|
|
<x-card.heading>
|
|
{{ $prelimDefinition->audition->name }} Prelims
|
|
@if($published)
|
|
<x-slot:subheading class="text-red-500">Results are published. Scores cannot be changed.</x-slot:subheading>
|
|
@endif
|
|
</x-card.heading>
|
|
<x-table.table>
|
|
<thead>
|
|
<tr>
|
|
<x-table.th :sortable="false"><a href="{{ url()->current() }}">Entry</a></x-table.th>
|
|
@foreach($subscores as $subscore)
|
|
<x-table.th :sortable="false" class="hidden md:table-cell">{{ $subscore->name }}</x-table.th>
|
|
@endforeach
|
|
<x-table.th :sortable="true">Timestamp</x-table.th>
|
|
</tr>
|
|
</thead>
|
|
<x-table.body>
|
|
@foreach($entries as $entry)
|
|
{{-- @continue($entry->hasFlag('no_show'))--}}
|
|
<tr>
|
|
<x-table.td>
|
|
@if(! $published && ! $entry->hasFlag('no_show'))
|
|
<a href="#">
|
|
@endif
|
|
{{ $prelimDefinition->audition->name }} {{ $entry->draw_number }}
|
|
@if($entry->hasFlag('no_show'))
|
|
<p class="text-red-600">No Show</p>
|
|
@endif
|
|
@if(! $published && ! $entry->hasFlag('no_show'))
|
|
</a>
|
|
@endif
|
|
</x-table.td>
|
|
{{-- @foreach($subscores as $subscore)--}}
|
|
{{-- <x-table.td class="hidden md:table-cell">--}}
|
|
{{-- @php--}}
|
|
{{-- if( $x = Auth::user()->scoresForEntry($entry->id)) echo $x[$subscore->id]['score'];--}}
|
|
{{-- @endphp--}}
|
|
{{-- </x-table.td>--}}
|
|
{{-- @endforeach--}}
|
|
|
|
|
|
{{-- <x-table.td>--}}
|
|
{{-- {{ Auth::user()->timeForEntryScores($entry->id)?->setTimezone('America/Chicago')->format('m/d/y H:i') }}--}}
|
|
{{-- </x-table.td>--}}
|
|
</tr>
|
|
@endforeach
|
|
</x-table.body>
|
|
</x-table.table>
|
|
</x-card.card>
|
|
</x-layout.app>
|