19 lines
615 B
PHP
19 lines
615 B
PHP
<x-app-layout>
|
|
<div class="max-w-2xl mx-auto p-4 sm:p-6 lg:p-8">
|
|
<form method="POST" action="{{ route('users.update', $user) }}">
|
|
@csrf
|
|
@method("patch")
|
|
<x-user-fields
|
|
:default_name="$user->name"
|
|
:default_email="$user->email"
|
|
:default_role="$user->role"
|
|
/>
|
|
|
|
<div class="mt-4 space-x-2">
|
|
<x-primary-button>{{ __("Save") }}</x-primary-button>
|
|
<a href="{{ route('users.index') }}">{{ __("Cancel") }}</a>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</x-app-layout>
|