@auth()

Изменить пользователя

{{ Form::open(['url' => route('users.update', $user), 'method' => 'PATCH', 'class' => 'w-50']) }}
{{ Form::label('name', 'Логин') }}
{{ Form::text('name', $user->name, ['class' => 'form-control rounded border-gray-300 w-1/3']) }}
@if ($errors->any()) {{ $errors->first('name') }} @endif
{{ Form::label('email', 'электронная почта') }}
{{ Form::text('email', $user->email, ['class' => 'form-control rounded border-gray-300 w-1/3']) }}
@if ($errors->any()) {{ $errors->first('email') }} @endif
{{ Form::label('password', 'Пароль') }}
{{ Form::text('password', '', ['class' => 'form-control rounded border-gray-300 w-1/3']) }}
@if ($errors->any()) {{ $errors->first('password') }} @endif
{{ Form::submit('изменить', ['class' => 'bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded']) }}
{{ Form::close() }}
@endauth