| 12345678910111213141516171819202122232425262728 |
- @extends('layouts.app', ['title' => 'Профиль'])
- @section('content')
- <div class="px-3 col-xxl-8 offset-xxl-1">
- <form action="{{ route('profile.store') }}" method="post">
- @csrf
- @include('partials.input', ['name' => 'email', 'title' => 'E-mail', 'disabled' => true, 'value' => $user->email])
- @include('partials.input', ['name' => 'name', 'title' => 'Имя', 'required' => true, 'value' => $user->name])
- @include('partials.input', ['name' => 'role', 'title' => 'Роль', 'disabled' => true, 'value' => getRoles($user->role)])
- <div class="row pwd-change-link mb-3">
- <div class="offset-md-4">
- <a onclick="$('.pwg-change').removeClass('d-none'); $('.pwd-change-link').addClass('d-none');" class="text-secondary" href="#">Сменить пароль</a>
- </div>
- </div>
- <div class="pwg-change @if(!$errors->any()) d-none @endif">
- @include('partials.input', ['name' => 'current_password', 'type' => 'password', 'title' => 'Текущий пароль'])
- @include('partials.input', ['name' => 'password', 'type' => 'password', 'title' => 'Новый пароль'])
- @include('partials.input', ['name' => 'password_confirmation', 'type' => 'password', 'title' => 'Подтверждение пароля'])
- </div>
- @include('partials.submit', [''])
- {{-- <a href="#" class="btn btn-outline-info my-3 d-inline-block d-md-none" onclick="$('#logout').submit();">Выход</a>--}}
- </form>
- </div>
- @endsection
|