25 lines
1.4 KiB
PHP
25 lines
1.4 KiB
PHP
<x-layout.app>
|
|
<x-card.card class="mx-auto max-w-lg">
|
|
<x-card.heading>Edit User</x-card.heading>
|
|
<x-form.form method="PATCH" action="{{ route('admin.users.update', $user) }}">
|
|
<x-form.body-grid>
|
|
<x-form.field name="first_name" label_text="First Name" colspan="3" value="{{ $user->first_name }}" />
|
|
<x-form.field name="last_name" label_text="Last Name" colspan="3" value="{{ $user->last_name }}" />
|
|
<x-form.field name="email" label_text="Email Address" colspan="3" value="{{ $user->email }}" />
|
|
<x-form.field name="cell_phone" label_text="Cell Phone" colspan="3" value="{{ $user->cell_phone }}" />
|
|
<x-form.field name="judging_preference" label_text="Judging Preference" colspan="6" value="{{ $user->judging_preference }}" />
|
|
<x-form.select name="school_id" colspan="6">
|
|
<x-slot:label>School</x-slot:label>
|
|
@foreach ($schools as $school)
|
|
<option value="{{ $school->id }}" @if ($user->school_id == $school->id) selected @endif>{{ $school->name }}</option>
|
|
@endforeach
|
|
|
|
</x-form.select>
|
|
</x-form.body-grid>
|
|
<x-form.footer class="py-5">
|
|
<x-form.button>Update User</x-form.button>
|
|
</x-form.footer>
|
|
</x-form.form>
|
|
</x-card.card>
|
|
</x-layout.app>
|