profile.blade.php 1.6 KB

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