@extends('Admin.master_page')


@section('title') <h5 class="m-0 font-weight-bold text-primary" style="float: left;">Changer User Password</h5> 

<a href="/admin/Users" style="float: right;"><i class="fas fa-chevron-circle-left"></i></a>
@endsection


@section('content')

<div >
        <form action="{{ route('manage-users.change.password.store', $user->id) }}" method="POST">
            @csrf

                <input type="hidden" name="user_id" value="{{ $user->id }}">

                <label for="Name" >New Password</label>
                <div class="input-group" style="margin-top: 10px;">
                    <input type="password" name="password" class="form-control" placeholder="New Password">
                        @error('password')
                        <span class="alert-danger">{{ $message }}</span>
                        @enderror
                </div>

                <br>

                <label for="Name" >New Password</label>
                <div class="input-group" style="margin-top: 10px;">
                    <input type="password" name="confirm" class="form-control" placeholder="Confirm your password">
                        @error('confirm')
                        <span class="alert-danger">{{ $message }}</span>
                        @enderror
                </div>

                <br>

                <button type="submit" class="btn btn-success">Change</button>
                
            
        </form>
    </div>

@endsection