<?php $__env->startSection('content'); ?>
<div class="main">
    <div class="container d-flex justify-content-center align-items-center vh-100">
        <div class="bg-white text-center p-5 mt-3 center w-50">
            <h4>ลืมรหัสผ่าน</h4>
            <?php if(session('status')): ?>
            <div class="alert alert-success" role="alert">
                <p><?php echo e(session('status')); ?></p>
            </div>
            <?php endif; ?>
            <form class="pb-3 mt-4" method="POST" action="<?php echo e(route('reset.password.post')); ?>">
                <?php echo csrf_field(); ?>
                <input type="hidden" name="token" value="<?php echo e($token); ?>">
                <input type="hidden" name="username" value="<?php echo e($username); ?>">
                <div class="form-group">
                    <input id="user" type="text" class="form-control" value="<?php echo e($username); ?>" disabled>
                </div>
                <div class="form-group">
                    <input id="password" type="password" class="form-control w-100 " name="password" placeholder="รหัสผ่านใหม่" >

                </div>
                <div class="form-group">
                    <input id="password_confirmation" type="password" class="form-control w-100" name="password_confirmation" placeholder="ยืนยันรหัสผ่านใหม่" >

                </div>
                <?php $__errorArgs = ['password'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <div class="text-danger"><?php echo e($message); ?></div>
                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                <?php $__errorArgs = ['confirmPassword'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <div class="text-danger"><?php echo e($message); ?></div>
                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                <button type="submit" class="btn btn-primary mt-3">เปลี่ยนรหัสผ่าน</button>
            </form>
        </div>
    </div>




</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/pongpetch/resources/views/auth/forget_password_link.blade.php ENDPATH**/ ?>