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

<?php $__env->startSection('content'); ?>

<div class="col-md-8 col-lg-6 col-xl-5 mx-auto my-10p" id="login">
    <div class="text-center">
        <?php if (isset($component)) { $__componentOriginalfb60b10024b8e3dda1c3665c224c5fa2 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalfb60b10024b8e3dda1c3665c224c5fa2 = $attributes; } ?>
<?php $component = Vanguard\View\Components\Logo::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('logo'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Vanguard\View\Components\Logo::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalfb60b10024b8e3dda1c3665c224c5fa2)): ?>
<?php $attributes = $__attributesOriginalfb60b10024b8e3dda1c3665c224c5fa2; ?>
<?php unset($__attributesOriginalfb60b10024b8e3dda1c3665c224c5fa2); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalfb60b10024b8e3dda1c3665c224c5fa2)): ?>
<?php $component = $__componentOriginalfb60b10024b8e3dda1c3665c224c5fa2; ?>
<?php unset($__componentOriginalfb60b10024b8e3dda1c3665c224c5fa2); ?>
<?php endif; ?>
    </div>

    <div class="card mt-5">
        <div class="card-body">
            <h5 class="card-title text-center mt-4 text-uppercase">
                <?php echo app('translator')->get('Login'); ?>
            </h5>

            <div class="p-4">
                <?php echo $__env->make('auth.social.buttons', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

                <?php echo $__env->make('partials.messages', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

                <form role="form" action="<?= url('login') ?>" method="POST" id="login-form" autocomplete="off" class="mt-3">

                    <input type="hidden" value="<?= csrf_token() ?>" name="_token">

                    <?php if(Request::has('to')): ?>
                        <input type="hidden" value="<?php echo e(Request::get('to')); ?>" name="to">
                    <?php endif; ?>

                    <div class="form-group">
                        <label for="username" class="sr-only"><?php echo app('translator')->get('Email or Username'); ?></label>
                        <input type="text"
                                name="username"
                                id="username"
                                class="form-control input-solid"
                                placeholder="<?php echo app('translator')->get('Email or Username'); ?>"
                                value="<?php echo e(old('username')); ?>">
                    </div>

                    <div class="form-group password-field">
                        <label for="password" class="sr-only"><?php echo app('translator')->get('Password'); ?></label>
                        <input type="password"
                               name="password"
                               id="password"
                               class="form-control input-solid"
                               placeholder="<?php echo app('translator')->get('Password'); ?>">
                    </div>


                    <?php if(setting('remember_me')): ?>
                        <div class="custom-control custom-checkbox">
                            <input type="checkbox" class="custom-control-input" name="remember" id="remember" value="1"/>
                            <label class="custom-control-label font-weight-normal" for="remember">
                                <?php echo app('translator')->get('Remember me?'); ?>
                            </label>
                        </div>
                    <?php endif; ?>


                    <div class="form-group mt-4">
                        <button type="submit" class="btn btn-primary btn-lg btn-block" id="btn-login">
                            <?php echo app('translator')->get('Log In'); ?>
                        </button>
                    </div>
                </form>

                <?php if(setting('forgot_password')): ?>
                    <a href="<?= route('password.request') ?>" class="forgot"><?php echo app('translator')->get('I forgot my password'); ?></a>
                <?php endif; ?>
            </div>
        </div>
    </div>

    <div class="text-center text-muted">
        <?php if(setting('reg_enabled')): ?>
            <?php echo app('translator')->get("Don't have an account?"); ?>
            <a class="font-weight-bold" href="<?= url("register") ?>"><?php echo app('translator')->get('Sign Up'); ?></a>
        <?php endif; ?>
    </div>
</div>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('scripts'); ?>
    <script src="<?php echo e(asset('assets/js/as/login.js')); ?>"></script>
    <?php echo JsValidator::formRequest('Vanguard\Http\Requests\Auth\LoginRequest', '#login-form'); ?>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.auth', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Applications/AMPPS/www/military/resources/views/auth/login.blade.php ENDPATH**/ ?>