
<!DOCTYPE html>
<html lang="en" class="h-100">

<head>
    <meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">


	<!-- PAGE TITLE HERE -->
	<title>محطة حُنيش |اعادة تعيين كلمة المرور</title>

	<!-- FAVICONS ICON -->
	
    <link href="<?php echo e(asset('/css/style.css')); ?>" rel="stylesheet">

</head>
<?php if(session()->has('success')): ?>
<div >
    <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
    <strong><?php echo e(session()->get('success')); ?></strong>
</div>
<?php elseif(session()->has('error')): ?>
<div>
    <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
    <strong><?php echo e(session()->get('error')); ?></strong>
</div>
<?php endif; ?>



<body style="direction: rtl;" class="vh-100">
    <div class="authincation h-100">
        <div class="container h-100">
            <div class="row justify-content-center h-100 align-items-center">
                <div class="col-md-6">
                    <a href="<?php echo e(route('listAll')); ?>" style="padding-right: 10px;">الرئيسية ></a>
                    <div class="authincation-content">
                        <div class="row no-gutters">
                            <div class="col-xl-12">
                                <div class="auth-form">
									<div class="text-center mb-3">
										<a href="index.html"><img src="<?php echo e(asset('/images/logo-full.png')); ?>" alt=""></a>
									</div>
                                    <h4 class="text-center mb-4">اعادة تعيين كلمة المرور</h4>
                                    <form method="POST" action=<?php echo e(route('resetPassword')); ?>>
                                        <?php echo csrf_field(); ?>
                                        
                                        <input type="hidden" name="username" value="<?php echo e(Auth::user()->username); ?>">
                                        <div class="mb-3">
                                            <label class="mb-1"><strong>اسم المسنخدم</strong></label>
                                            <input type="text" class="form-control" value="<?php echo e(Auth::user()->username); ?>" required autofocus name="newUsername" id="username" placeholder="ادخل اسم المستخدم هنا">
                                            <?php $__errorArgs = ['newUsername'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                            <span style="color: deeppink" class="" role="alert">
                                                <strong><?php echo e($message); ?></strong>
                                            </span>
                                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                        </div>
                                        <div class="mb-3">
                                            <label class="mb-1"><strong>كلمة المرور</strong></label>
                                            <input type="password" class="form-control" value="<?php echo e($password ?? old('password')); ?>" type="password" name="password" id="password" placeholder="ادخل كلمة المرور السابقة هنا">
                                            <?php $__errorArgs = ['password'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                            <span style="color: deeppink" class="" role="alert">
                                                <strong><?php echo e($message); ?></strong>
                                            </span>
                                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                        </div>
                                        
                                        <div class="mb-3">
                                            <label class="mb-1"><strong>كلمة المرور مرة اخرى</strong></label>
                                            <input type="password" class="form-control" value="<?php echo e($password_confirmation ?? old('password_confirmation')); ?>" type="password" name="password_confirmation" id="password" placeholder="ادخل كلمة المرور الجديدة مرة اخرى هنا">
                                            <?php $__errorArgs = ['password_confirmation'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                            <span class="" style="color: deeppink" role="alert">
                                                <strong><?php echo e($message); ?></strong>
                                            </span>
                                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                        </div>
                                        <div class="text-center mt-4">
                                            <button type="submit" class="btn btn-primary btn-block">تسجيل الدخول</button>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>


    <!--**********************************
        Scripts
    ***********************************-->
    <!-- Required vendors -->
    <script src="<?php echo e(asset('/vendor/global/global.min.js')); ?>"></script>
    <script src="<?php echo e(asset('/js/custom.min.js ')); ?>"></script>
    <script src="<?php echo e(asset('/js/dlabnav-init.js ')); ?>"></script>

</body>
</html>


            
            <?php /**PATH C:\Users\Nasser\Desktop\petrol_store\resources\views/auth/reset-password.blade.php ENDPATH**/ ?>