26 lines
1.1 KiB
PHP
26 lines
1.1 KiB
PHP
<x-card.card>
|
|
<x-card.heading>
|
|
Seating Proposal
|
|
<x-slot:subheading>Results are not yet published</x-slot:subheading>
|
|
</x-card.heading>
|
|
@foreach($seatingProposal as $proposedEnsemble)
|
|
<h3 class="m-3 font-semibold">{{ $proposedEnsemble['ensemble_name'] }}</h3>
|
|
<x-card.list.body>
|
|
@if(isset($proposedEnsemble['seats']))
|
|
@foreach($proposedEnsemble['seats'] as $seat)
|
|
<x-card.list.row>{{ $seat['seat'] }}
|
|
. {{ $seat['entry_name'] }}</x-card.list.row>
|
|
@endforeach
|
|
@endif
|
|
</x-card.list.body>
|
|
@endforeach
|
|
<x-form.form method="POST" action="{{ route('seating.audition.clearDraft',[$audition]) }}">
|
|
<x-form.button class="mb-3">Clear Draft</x-form.button>
|
|
</x-form.form>
|
|
{{-- TODO Hide the publish button if there are no seats --}}
|
|
<x-form.form method="POST"
|
|
action="{{ route('seating.audition.publishSeats',[$audition]) }}">
|
|
<x-form.button class="mb-3">Publish</x-form.button>
|
|
</x-form.form>
|
|
</x-card.card>
|