24 lines
1.4 KiB
PHP
24 lines
1.4 KiB
PHP
<x-layout.app>
|
|
<x-slot:page_title>Select Sign-In Sheets to Print</x-slot:page_title>
|
|
<x-form.form method="POST" action="{{route('admin.signInSheets.print')}}">
|
|
<x-card.card class="mb-5 mx-auto max-w-3xl" id="room-card" x-data="{ allChecked: false }">
|
|
<x-card.heading>
|
|
Rooms
|
|
<x-slot:right_side>
|
|
<button @click="allChecked = true" class="rounded bg-indigo-50 px-2 py-1 text-xs font-semibold text-indigo-600 shadow-sm hover:bg-indigo-100 mr-3" type="button">Check All</button>
|
|
<button @click="allChecked = false" class="rounded bg-indigo-50 px-2 py-1 text-xs font-semibold text-indigo-600 shadow-sm hover:bg-indigo-100" type="button">Uncheck All</button>
|
|
</x-slot:right_side>
|
|
</x-card.heading>
|
|
<div class="grid gap-y-3 md:grid-cols-2 lg:grid-cols-3 px-5 my-3 pb-3 border-b border-gray-100">
|
|
@foreach($rooms as $room)
|
|
<div id="room-div-{{$room->id}}" class="flex align-middle">
|
|
<x-form.checkbox id="roomCheckbox-{{$room->id}}" name="room[{{$room->id}}]" x-bind:checked="allChecked"/>
|
|
{{$room->name}}
|
|
</div>
|
|
@endforeach
|
|
</div>
|
|
</x-card.card>
|
|
<x-form.button class="mt-5 mx-auto max-w-3xl" type="submit">Print Sign-In Sheets</x-form.button>
|
|
</x-form.form>
|
|
</x-layout.app>
|