<?php $__env->startSection('title', 'Login - Nahid'); ?>

<?php $__env->startSection('content'); ?>
<div class="z_login_box">
    <div class="z_login_but_1 active" id="loginBtn">
        Login
    </div>
    <div class="z_login_but_2" id="registerBtn">
        Register
    </div>
    
    <div class="z_login_bdy">
        <form action="<?php echo e(route('login')); ?>" method="POST" autocomplete="off">
            <?php echo csrf_field(); ?>
            <input type="hidden" name="key" value="hsgRw537Mxhsgywtsdgtwfsd">
            
            <table>
                <tr>
                    <td>
                        <input type="text" 
                               name="username" 
                               placeholder="Username" 
                               class="login_username <?php $__errorArgs = ['username'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> error <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" 
                               autocomplete="off" 
                               value="<?php echo e(old('username')); ?>" 
                               required>
                    </td>
                </tr>
                <tr>
                    <td>
                        <input type="password" 
                               name="password" 
                               placeholder="Password" 
                               class="login_password <?php $__errorArgs = ['password'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> error <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" 
                               autocomplete="off" 
                               required>
                    </td>
                </tr>
            </table>
            
            <div class="z_login_submit">
                <button type="submit" class="login_subm_bt">Log In</button>
                <forgot>
                    <u><a href="<?php echo e(route('password.request')); ?>">I forgot password</a></u>
                </forgot>
                
                <?php if(session('error')): ?>
                    <div class="login_err_bar"><?php echo e(session('error')); ?></div>
                <?php endif; ?>
                
                <?php $__errorArgs = ['username'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                    <div class="login_err_bar"><?php echo e($message); ?></div>
                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
            </div>
        </form>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php $__env->startPush('scripts'); ?>
<script>
$(document).ready(function() {
    $("#registerBtn").click(function() {
        window.location.href = "<?php echo e(route('register')); ?>";
    });
    
    setTimeout(function() {
        $('.login_err_bar').fadeOut('slow');
    }, 5000);
});
</script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/naowarin/prc.naowarinternational.my.id/resources/views/auth/login.blade.php ENDPATH**/ ?>