<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>InfyOm Laravel Generator</title>

    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">

    <!-- Bootstrap 3.3.7 -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" >

    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

    <!-- Ionicons -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">

    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/admin-lte/2.4.18/css/AdminLTE.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/admin-lte/2.4.18/css/skins/_all-skins.min.css">

    <!-- iCheck -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/iCheck/1.0.2/skins/square/_all.css">

    <link href="{{ captcha_layout_stylesheet_url() }}" type="text/css" rel="stylesheet">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>
<body class="hold-transition login-page">
<div class="col d-flex justify-content-center">
<div class="card">
    <div class="login-logo">
        <a href="{{ url('/home') }}"><b>InfyOm </b>Generator</a>
    </div>

    <!-- /.login-logo -->
    <div class="card-body ">
        
        <p class="login-box-msg">Your password has expired, please change it.</p>

        <form method="post" action="{{ route('password.post_expired') }}" class="">
            {!! csrf_field() !!}

            <div class="form-row">
            <div class="form-group{{ $errors->has('current_password') ? ' has-error' : '' }} col-md-12">
                    <label for="current_password" class="col-md-12 control-label">Current Password</label>

                    
                        <input id="current_password" type="password" class="form-control" name="current_password" required="">

                        @if ($errors->has('current_password'))
                            <span class="help-block">
                                <strong>{{ $errors->first('current_password') }}</strong>
                            </span>
                        @endif
                    
                </div>
            </div>

            <div class="form-row">
                <div class="form-group{{ $errors->has('password') ? ' has-error' : '' }} col-md-12">
                    <label for="password" class="col-md-12 control-label">New Password</label>

                    
                        <input id="password" type="password" class="form-control" name="password" required="">

                        @if ($errors->has('password'))
                            <span class="help-block">
                                <strong>{{ $errors->first('password') }}</strong>
                            </span>
                        @endif
                   
                </div>
            </div>

            <div class="form-row">
                <div class="form-group{{ $errors->has('password_confirmation') ? ' has-error' : '' }} col-md-12">
                    <label for="password-confirm" class="col-md-12 control-label">Confirm New Password</label>
                   
                        <input id="password-confirm" type="password" class="form-control" name="password_confirmation" required="">

                        @if ($errors->has('password_confirmation'))
                            <span class="help-block">
                                <strong>{{ $errors->first('password_confirmation') }}</strong>
                            </span>
                        @endif
                    
                </div>
            </div>

            <div class="form-row">
                    <div class="form-group{{ $errors->has('CaptchaCode') ? ' has-error' : '' }} col-md-12">
                            {!! captcha_image_html('LoginCaptcha') !!}
                            <input type="text" id="CaptchaCode" name="CaptchaCode">
                    @if ($errors->has('CaptchaCode'))
                        <span class="help-block">
                            <strong>{{ $errors->first('CaptchaCode') }}</strong>
                        </span>
                    @endif
                    </div>
            </div>

            <div class="form-row ">
                <div class="form-group">
                    <div class="col-md-12 col-md-offset-4">
                        <button type="submit" class="btn btn-primary">
                            Reset Password
                        </button>
                    </div>
                </div>      
            </div>  
            </form>

    </div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" ></script>

<!-- AdminLTE App -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/admin-lte/2.4.18/js/adminlte.min.js"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/iCheck/1.0.2/icheck.min.js"></script>
<script>
    $(function () {
        $('input').iCheck({
            checkboxClass: 'icheckbox_square-blue',
            radioClass: 'iradio_square-blue',
            increaseArea: '20%' // optional
        });
    });
</script>
</body>
</html>
