51 lines
2.1 KiB
PHP
51 lines
2.1 KiB
PHP
@php use Illuminate\Support\Facades\Auth; @endphp
|
|
<x-layout.app>
|
|
<x-slot:page_title>User Profile</x-slot:page_title>
|
|
|
|
|
|
<!--
|
|
This example requires some changes to your config:
|
|
|
|
```
|
|
// tailwind.config.js
|
|
module.exports = {
|
|
// ...
|
|
plugins: [
|
|
// ...
|
|
require('@tailwindcss/forms'),
|
|
],
|
|
}
|
|
```
|
|
-->
|
|
<div class="space-y-10 divide-y divide-gray-900/10">
|
|
|
|
<x-layout.page-section
|
|
section_name="Personal Information"
|
|
section_description="Use a permanent address where you receive mail"
|
|
>
|
|
|
|
<form>
|
|
<div class="px-4 py-6 sm:p-8">
|
|
<div class="grid max-w-2xl grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6">
|
|
<x-auth.form-field name="first_name" label="First Name" value="{{ Auth::user()->first_name }}" div_classes="sm:col-span-3" />
|
|
<x-auth.form-field name="last_name" label="Last Name" value="{{ Auth::user()->last_name }}" div_classes="sm:col-span-3" />
|
|
<x-auth.form-field name="email" label="Email Address" value="{{ Auth::user()->email }}" div_classes="sm:col-span-3" />
|
|
<x-auth.form-field name="cell_phone" label="Cell Phone" value="{{ Auth::user()->cell_phone }}" div_classes="sm:col-span-3" />
|
|
<x-auth.form-field name="judging_preference" label="Judging Preference" value="{{ Auth::user()->judging_preference }}" div_classes="sm:col-span-5" />
|
|
|
|
</div>
|
|
</div>
|
|
<div class="flex items-center justify-end gap-x-6 border-t border-gray-900/10 px-4 py-4 sm:px-8">
|
|
<button type="button" class="text-sm font-semibold leading-6 text-gray-900">Cancel</button>
|
|
<button type="submit" class="rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600">Save</button>
|
|
</div>
|
|
</form>
|
|
|
|
</x-layout.page-section>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</x-layout.app>
|