auditionadmin/resources/views/judging/audition_entry_list.blade.php

39 lines
1.6 KiB
PHP

<x-layout.app>
<x-slot:page_title>Judging Dashboard</x-slot:page_title>
<x-card.card>
<x-card.heading>{{ $audition->name }}</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">{{ $subscore->name }}</x-table.th>
@endforeach
<x-table.th :sortable="true">Timestamp</x-table.th>
</tr>
</thead>
<x-table.body>
@foreach($entries as $entry)
<tr>
<x-table.td>
<a href="/judging/entry/{{$entry->id}}">
{{ $audition->name }} {{ $entry->draw_number }}
</a>
</x-table.td>
@foreach($subscores as $subscore)
<x-table.td>
@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>