<!DOCTYPE html>
<html class="bg-black">
    <head>
        <meta charset="UTF-8">
        <title><?php echo $panelInit->settingsArray['siteTitle'] . " | " . $panelInit->language['restorePwd'] ; ?></title>
        <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
        <link href="<?php echo URL::to('/'); ?>/assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
        <link href="<?php echo URL::to('/'); ?>/assets/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
        <link href="<?php echo URL::to('/'); ?>/assets/css/jquery.gritter.css" rel="stylesheet" type="text/css" />
        <link href="<?php echo URL::to('/'); ?>/assets/css/schoex.css" rel="stylesheet" type="text/css" />
        <?php if($panelInit->language['position'] == "rtl"){ ?>
            <link href="<?php echo URL::to('/'); ?>/assets/css/rtl.css" rel="stylesheet" type="text/css" />
        <?php } ?>
        <!-- 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/libs/html5shiv/3.7.0/html5shiv.js"></script>
          <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
        <![endif]-->
    </head>
    <body class="bg-black rtlPage">

        <div class="form-box" id="login-box">
            <div class="header"><?php echo $panelInit->language['restorePwd']; ?></div>
            <form action="<?php echo URL::to('/forgetpwd'); ?>" method="post">
            <?php if(isset($success)): ?>
                <div class="body bg-gray">
                   <?php echo $success; ?>
                </div>
                <div class="footer"> 
                  <a href="<?php echo URL::to('/'); ?>" class="text-center"><?php echo $panelInit->language['loginToAccount']; ?></a>                              
                </div>
            <?php else: ?>
                <div class="body bg-gray">
            		<?php if($errors->any()): ?>
    				<h4 style='color:red;'><?php echo $errors->first(); ?></h4>
    				<?php endif; ?>
                    <div class="form-group">
                        <input type="text" name="email" class="form-control" placeholder="<?php echo $panelInit->language['userNameOrEmail']; ?>"/>
                    </div>
                </div>
                <div class="footer">                                                               
                    <button type="submit" class="btn bg-olive btn-block"><?php echo $panelInit->language['restorePwd']; ?></button>  
                    <a href="<?php echo URL::to('/register'); ?>" class="text-center"><?php echo $panelInit->language['registerNewAccount']; ?></a>
                </div>
            <?php endif; ?>
            <input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
            </form>
        </div>

        <script src="<?php echo URL::to('/'); ?>/assets/js/jquery.min.js"></script>
        <script src="<?php echo URL::to('/'); ?>/assets/js/bootstrap.min.js" type="text/javascript"></script>
    </body>
</html>