<?php
/*----------------------------------------------------------------------------------|  www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default_password.php
	@author			farhad shahbazi <http://farhad.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____  _____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \(  _  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/ )(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__)  (_____)(_)\_)(____)(_)\_) (__) 

/------------------------------------------------------------------------------------------------------*/

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

?>

<!--[JCBGUI.template.template.20.$$$$]-->
<section id="login" class="mb-5">
    <div class="row justify-content-center">
        <div class="col-md-4">
            <div>
                <p style="font-weight: bold">ورود</p>
                <?php if (JFactory::getApplication()->getUserState('loginWith')== 'password'): ?>
                    <p style="font-size: 12px">برای ورود ، رمز عبور خود را وارد نمایید</p>
                <?php elseif (JFactory::getApplication()->getUserState('loginWith')== 'verifyCode'): ?>
                    <p style="font-size: 12px">برای ورود ، کد تایید  خود را وارد نمایید</p>
                <?php endif; ?>

            </div>
            <div class="card">
                <div class="card-body">
                    <form method="post" id="adminForm">
                                              <a href="<?= JRoute::_('index.php?option=com_reservation&view=login',false); ?>" style="position:absolute;left: 16px;top: 4px;">ویرایش شماره</a>

                        <div class="form-group">
                            <?php if (JFactory::getApplication()->getUserState('loginWith')== 'password'): ?>
                                <label for="password">رمز عبور</label>
                            <?php elseif (JFactory::getApplication()->getUserState('loginWith')== 'verifyCode'): ?>
                                <label for="password">کد تایید</label>
                            <?php endif; ?>

                            <input type="password" class="form-control" name="jform[password]" aria-describedby="password">
                            <?php if (JFactory::getApplication()->getUserState('loginWith')== 'password'): ?>

                                <small><button class="btnToLink" onclick="Joomla.submitbutton('login.verifyCode')">ورود با رمز یکبارمصرف</button></small>

                            <?php elseif (JFactory::getApplication()->getUserState('loginWith')== 'verifyCode'): ?>

                                <small id="demo"></small>
                                <small><button class="btnToLink" onclick="Joomla.submitbutton('login.password')">ورود با رمزعبور</button></small>

                            <?php endif; ?>
                        </div>
                        <button type="submit" class="loginBtn" onclick="Joomla.submitbutton('login.login')">ورود</button>
                        <input type="hidden" name="task">
                        <?= JHtml::_('form.token'); ?>
                    </form>
                </div>
            </div>
        </div>
    </div>
</section><!--[/JCBGUI$$$$]-->

