<?php $__env->startSection('title'); ?> <?php echo app('translator')->get('Admin Login'); ?> <?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="col-lg-7 col-xl-6 mx-auto">
    <div class="card shadow-lg">
        <div class="card-header">
            <h5 class="text-muted fw-bold mb-0">Welcome back! Log in to your account</h5>
        </div>
        <div class="card-body p-4 pt-2">
            <span class="mt-1"></span>
            <?php if(count($errors) > 0): ?>
            <div class="w-100 alert alert-danger alert-dismissible  validation fade show mb-0" role="alert">
                <ul class="text-left <?php echo e(count($errors) == 1 ? 'list-unstyled' : ''); ?>">
                    <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <li>
                        <b><?php echo e($error); ?></b>
                    </li>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </ul>
                <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
            </div>
            <?php endif; ?>
            <?php if(Session::get('success')): ?>
            <div class="w-100 alert alert-success alert-dismissible  validation fade show mb-0" role="alert">
                <?php echo e(Session::get('success')); ?>

                <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
            </div>
            <?php endif; ?>
            <?php if(Session::get('error')): ?>
            <div class="w-100 alert alert-danger alert-dismissible  validation fade show mb-0" role="alert">
                <?php echo e(Session::get('error')); ?>

                <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
            </div>
            <?php endif; ?>

            <form method="POST" action="<?php echo e(route('admin.login')); ?>" class="needs-validation" novalidate="" >
                <?php echo csrf_field(); ?>

                <div class="form-group">
                    <label class="form-label" for="email"><?php echo app('translator')->get('Email Address'); ?></label>
                    <input id="email" type="email" placeholder="<?php echo e(__('Email Address')); ?>" class="form-control" name="email" value="<?php echo e(old('email')); ?>" required autocomplete="email" autofocus>
                    <div class="invalid-feedback">
                        <?php echo app('translator')->get('Email is invalid'); ?>
                    </div>
                </div>

                <div class="form-group">
                    <label class="form-label" for="password"><?php echo app('translator')->get('Password'); ?></label>
                    <input id="password" type="password" placeholder="<?php echo e(__('Password')); ?>" class="form-control" name="password" required>
                    <div class="invalid-feedback">
                        <?php echo app('translator')->get('Password is required'); ?>
                    </div>
                </div>

                <div class="my-3 d-flex justify-content-between">
                    <div class="form-check">
                        <label class="form-check-label ">
                            <input class="form-check-input" type="checkbox" name="remember" id="remember" <?php echo e(old('remember') ? 'checked' : ''); ?> />
                            <?php echo app('translator')->get('Remember me'); ?>
                        </label>
                    </div>
                </div>

                <div class="form-group mb-0">
                    <button type="submit" class="btn btn-primary w-100">
                        <?php echo app('translator')->get('Login'); ?>
                    </button>
                </div>
            </form>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
<script>
    (function () {
        'use strict'

        // Fetch all the forms we want to apply custom Bootstrap validation styles to
        var forms = document.querySelectorAll('.needs-validation')

        // Loop over them and prevent submission
        Array.prototype.slice.call(forms)
            .forEach(function (form) {
                form.addEventListener('submit', function (event) {
                    if (!form.checkValidity()) {
                        event.preventDefault()
                        event.stopPropagation()
                    }

                    form.classList.add('was-validated')
                }, false)
            })
    })()
</script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.blank', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/golinkgl/directexpress.couriers-co.com/resources/views/admin/login.blade.php ENDPATH**/ ?>