42 lines
1.9 KiB
PHP
42 lines
1.9 KiB
PHP
@php use Illuminate\Support\Facades\Auth; @endphp
|
|
@php $school = Auth::user()->school; @endphp
|
|
<x-layout.app>
|
|
<x-slot:page_title>Choose School</x-slot:page_title>
|
|
|
|
{{-- <x-card.card class="mx-auto max-w-xl">--}}
|
|
<div class="mx-auto max-w-lg">
|
|
<x-card.card>
|
|
<x-card.heading class="">
|
|
Choose your school
|
|
<x-slot:subheading>
|
|
Based on your email address, one of these schools may be yours
|
|
</x-slot:subheading>
|
|
</x-card.heading>
|
|
|
|
<x-card.list.body>
|
|
@foreach($possibilities as $possibility)
|
|
@php $school = $possibility->school; @endphp
|
|
|
|
<form method="POST" action="/users/{{ Auth::user()->id }}/set_school">
|
|
@csrf
|
|
@method('PATCH')
|
|
<input type="hidden" name="school_id" id="school_id" value="{{ $school->id }}">
|
|
<x-card.list.row right_link_button_type="button">
|
|
<x-card.list.row-image
|
|
src="{{ $school->initialLetterImageURL() }}"
|
|
alt=""/>
|
|
<x-card.list.row-text-subtext>
|
|
{{ $school->name }}
|
|
<x-slot:subtext>{{ $school->city }}, {{ $school->state }}</x-slot:subtext>
|
|
</x-card.list.row-text-subtext>
|
|
<x-slot:right_link_button
|
|
onclick="return confirm('Please confirm you are a director at {{ $school->name }}');"
|
|
>Choose</x-slot:right_link_button>
|
|
</x-card.list.row>
|
|
</form>
|
|
@endforeach
|
|
</x-card.list.body>
|
|
</x-card.card>
|
|
</div>
|
|
</x-layout.app>
|