<?php $__env->startSection('page_title', __('Login')); ?>
<?php $__env->startSection('auth_content'); ?>

<?php
    $demoCredentials = null;
    if (config('app.is_demo')) {
        $jsonPath = resource_path('demo/login.json');
        if (file_exists($jsonPath)) {
            $demoCredentials = json_decode(file_get_contents($jsonPath), true) ?? [];
        }
    }
?>

<?php if(session('success')): ?>
    <?php echo insertSuccess(session('success')); ?>

<?php endif; ?>
<?php if(session('error')): ?>
    <?php echo insertFailed(session('error')); ?>

<?php endif; ?>



<!-- Login -->
<div class="card">
    <div class="card-body">
        <!-- Logo -->
        <div class="app-brand justify-content-center mb-6">
            <a href="<?php echo e(route('login')); ?>" class="app-brand-link login-page">
                <img src="<?php echo lpFaviconLogoUrl(asset('public/uploads/whitelabel/' . (getWhiteLabel('site_logo') ?? 'initial-logo.png'))); ?>" alt="Site Logo" class="app-brand-logo">
            </a>
        </div>
        <!-- /Logo -->
        <h4 class="mb-3"><?php echo e(__('Login')); ?></h4>
        <form id="formAuthentication" method="POST" action="<?php echo e(route('login')); ?>">
            <?php echo csrf_field(); ?>
            <div class="mb-6 form-control-validation">
                <label for="email" class="form-label"><?php echo e(__('Email or Username')); ?> <?php echo requiredField(); ?></label>
                <input type="text" class="form-control" id="email" name="email" value="<?php echo e(($demoCredentials ?? [])['email'] ?? ''); ?>" placeholder="<?php echo e(__('Enter your Email or Username')); ?>" autofocus />
                <div class="invalid-feedback"><?php echo e($errors->first('email')); ?></div>
            </div>
            <div class="mb-6 form-password-toggle form-control-validation">
                <label class="form-label" for="password"><?php echo e(__('Password')); ?> <?php echo requiredField(); ?></label>
                <div class="input-group input-group-merge">
                    <input type="password" id="password" class="form-control" name="password" value="<?php echo e(($demoCredentials ?? [])['password'] ?? ''); ?>" placeholder="<?php echo e(__('Enter Your Password')); ?>" aria-describedby="password" />
                    <span class="input-group-text cursor-pointer">
                        <i class="icon-base ti tabler-eye-off"></i>
                    </span>
                </div>
                <div class="invalid-feedback"><?php echo e($errors->first('password')); ?></div>
            </div>
            <div class="my-4">
                <div class="d-flex justify-content-end">
                    <!-- <div class="form-check mb-0 ms-2">
                        <input class="form-check-input" type="checkbox" id="remember-me" name="remember" />
                        <label class="form-check-label" for="remember-me"> Remember Me </label>
                    </div> -->
                    <a href="<?php echo e(route('password.request')); ?>">
                        <p class="mb-0"><?php echo e(__('Forgot Password?')); ?></p>
                    </a>
                </div>
            </div>
            <button class="btn btn-primary d-grid w-100" type="submit"><?php echo e(__('Login')); ?></button>
        </form>
    </div>
</div>
<!-- /Login -->
<?php $__env->stopSection(); ?>
<?php echo $__env->make('auth.auth-layout', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH D:\xampp-8.2\htdocs\off_pos_laravel\resources\views/auth/login.blade.php ENDPATH**/ ?>