password.blade.php 2.52 KB
@extends('layout.admin', ['title' => 'Смена пароля'])

@section('content')
    <section class="favorites">
        <div class="favorites-top">
            <div class="container">
                <div class="breadcrumbs">
                    <ul class="breadcrumbs__list">
                        <li class="breadcrumbs__item"><a class="breadcrumbs__link" href="{{ route('user.index') }}">Главная</a></li>
                        <li class="breadcrumbs__item"><span class="breadcrumbs__link">Смена пароля </span></li>
                    </ul>
                </div>
                <h1 class="favorites__title title-main">Смена пароля</h1>
            </div>
        </div>
        <div class="favorites-cnt">
            <div class="container">
                <form method="post" action="{{ route('admin.validate_password')}}" style="width:100%">
                    @csrf

                    <label for="old_password">Старый пароль: <span class="req">*</span></label><br>
                    @error('old_password')
                    <div class="alert alert-danger">{{ $message }}</div><br>
                    @enderror
                    <input type="text" class="form-control_ txt" name="old_password" placeholder="Старый пароль"
                           required maxlength="100" style="width: 80%" value=""><br><br>

                    <label for="new_password">Новый пароль: <span class="req">*</span></label><br>
                    @error('password')
                    <div class="alert alert-danger">{{ $message }}</div><br>
                    @enderror
                    <input type="password" class="form-control_ txt" name="password" placeholder="Новый пароль"
                           required maxlength="100" style="width: 80%" value=""><br><br>

                    <label for="new_password2">Новый пароль (еще раз): <span class="req">*</span></label><br>
                    @error('password_confirmation')
                    <div class="alert alert-danger">{{ $message }}</div><br>
                    @enderror
                    <input type="password" class="form-control_ txt" name="password_confirmation" placeholder="Новый пароль (еще раз)"
                           required maxlength="100" style="width: 80%" value=""><br><br>

                    <button type="submit" class="btn hero-search__btn btn--main">Сохранить</button>

                </form>
            </div>
        </div>
    </section>
@endsection