<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link href="<?php echo e(asset('images/user.png')); ?>" rel="icon" type="image/x-icon"/>
    <link href="<?php echo e(asset('images/user.png')); ?>" rel="shortcut icon" type="image/x-icon"/>
    <title>Change Password </title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <link rel="stylesheet" href="<?php echo e(asset('backend/login/css/bootstrap.min.css')); ?>"/>
    <link rel="stylesheet" href="<?php echo e(asset('backend/login/css/bootstrap-responsive.min.css')); ?>"/>
    <link rel="stylesheet" href="<?php echo e(asset('backend/login/css/matrix-login.css')); ?>"/>
    <link href="<?php echo e(asset('backend/login/font-awesome/css/font-awesome.css')); ?>" rel="stylesheet"/>
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
    <style type="text/css">
        .error{
            color: white;
        }
    </style>
    <meta charset="UTF-8"/>
</head>
<body style="background-color: #ffffff;">
<div id="loginbox">
    <?php if(Session::has('success_message')): ?>
        <div class="alert alert-success">
            <?php echo e(Session::get('success_message')); ?>

        </div>
    <?php endif; ?>
    <?php if(Session::has('error_message')): ?>
        <div class="alert alert-danger">
            <?php echo e(Session::get('error_message')); ?>

        </div>
    <?php endif; ?>
    <form class="form-vertical" action="<?php echo e(route('change.save')); ?>" method="post">
        <?php echo e(csrf_field()); ?>

        <div class="control-group normal_text"><h3><img src="<?php echo e(asset('images/INB.png')); ?>" height="100px" width="100px" alt="Logo"/></h3></div>
        <div class="control-group">
            <div class="controls">
                <div class="main_input_box">
                    <span class="add-on bg_ly"><i class="icon-lock"></i></span>
                    <input type="password" name="oldpassword" placeholder="Old Password"/>
                </div>
                <span class="error">
                    <?php if($errors->has('oldpassword')): ?>
                        <?php echo e($errors->first('oldpassword')); ?>

                    <?php endif; ?>
                </span>
            </div>
        </div>
        <div class="control-group">
            <div class="controls">
                <div class="main_input_box">
                    <span class="add-on bg_ly"><i class="icon-lock"></i></span>
                    <input type="password" name="newpassword" placeholder="New Password"/>
                </div>
                <span class="error">
                    <?php if($errors->has('newpassword')): ?>
                        <?php echo e($errors->first('newpassword')); ?>

                    <?php endif; ?>
                </span>
            </div>
        </div>
        <div class="control-group">
            <div class="controls">
                <div class="main_input_box">
                    <span class="add-on bg_ly"><i class="icon-lock"></i></span>
                    <input type="password" name="confirmpassword" placeholder="Confirm Password"/>
                </div>
                <span class="error">
                    <?php if($errors->has('confirmpassword')): ?>
                        <?php echo e($errors->first('confirmpassword')); ?>

                    <?php endif; ?>
                </span>
            </div>
        </div>
        <div class="form-actions">
            <span class="pull-left"><a href="<?php echo e(route('user.dashboard')); ?>" class="flip-link btn btn-info">Back to Dashboard </a></span>
            <span class="pull-right"><button type="submit" name="btnSave" class="btn btn-success"> Apply Change</button></span>
        </div>
    </form>
</div>

<script src="<?php echo e(asset('backend/login/js/jquery.min.js')); ?>"></script>
<script src="<?php echo e(asset('backend/login/js/matrix.login.js')); ?>"></script>
</body>
</html>
