@extends('backend.app')
@section('title')
    Change Password
@endsection

@section('styles')
    <style>
        label {
            text-transform: capitalize;
        }
    </style>
@endsection

@section('content')
    <div class="row">
        <div class="col-12">
            <h4 class="card-title">Change Your Password</h4>
            <p class="card-title-desc">Fill all information below</p>

            <form action="{{ route('profile.password.update') }}" method="POST" role="form" id="form1"
                  enctype="multipart/form-data">
                @csrf
                <div class="row">
                    <div class="col-md-4 mt-3">
                        <div class="form-group">
                            <label class="form-label" for="old_password">Old Password <span class="text-danger">*</span></label>
                            <input type="password" class="form-control @error('old_password') is-invalid @enderror"
                                   name="old_password" id="old_password" placeholder="Enter your old password"/>
                        </div>
                    </div>
                    <div class="col-md-4 mt-3">
                        <div class="form-group">
                            <label class="form-label" for="password">New Password <span class="text-danger">*</span></label>
                            <input type="password" class="form-control @error('password') is-invalid @enderror"
                                   name="password" id="password" placeholder="Enter your new password"/>
                        </div>
                    </div>
                    <div class="col-md-4 mt-3">
                        <div class="form-group">
                            <label class="form-label" for="password_confirmation">Confirm New Password <span class="text-danger">*</span></label>
                            <input type="password" class="form-control" name="password_confirmation" id="password_confirmation"
                                   placeholder="Re-type password to confirm"/>
                        </div>
                    </div>
                </div>
                <div class="mt-4 d-flex justify-content-end">
                    <div>
                        <button type="submit" class="btn btn-primary" >Update Password</button>
                    </div>
                </div>
            </form>

        </div>
    </div>
@endsection

