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

<?php $__env->startSection('page-style'); ?>
<?php echo app('Illuminate\Foundation\Vite')([
  'resources/assets/vendor/scss/pages/page-auth.scss',
  'resources/assets/vendor/js/helpers.js'
]); ?>
<?php $__env->stopSection(); ?>

<style>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
.invalid-feedback-auth{
	display:block;
	color: #ff3e1d;
	margin-top:5px;
	font-weight:600;
	font-size:.9em;
}
</style>

<?php $__env->startSection('content'); ?>
<div class="mt-6 mb-6 overflow-hidden p-2">
  <div class="row">
    <div class="col-md-4 offset-md-4">
      <!-- Register -->
      <div class="card px-sm-6 px-0 kco-border-top">
        <div class="card-body p-3">
          <!-- Logo -->
          <div class="kco-brand">
            <a href="<?php echo e(url('/')); ?>" class="text-center">
              <div class="kco-brand-logo">
				<img src="<?php echo e(url('/assets/img/logo_w.jpg')); ?>" alt="Kericho County Finance Bill Management System" title="Kericho County Finance Bill Management System">
			  </div>
              <div class="kco-brand-text">
			  <span class="kco-big-heading">Kericho County</span>
			  <span class="kco-small-heading">
			  Finance Bill Management System
			  </span>
			  </div>
            </a>
          </div>
          <!-- /Logo -->
          <!--<span class="kco-welcome">Welcome back!</span>-->
          <p class="mb-6">Please sign-in to your account to continue</p>

          <form id="formAuthentication" data-turbo="false" class="mb-6" action="<?php echo e(route('login')); ?>" method="POST">
			 <?php echo csrf_field(); ?>
            <div class="mb-6">
              <label for="email" class="form-label">Email</label>
              <input type="text" class="form-control" id="email" name="email" placeholder="Enter your email" value="<?php echo e(old('email')); ?>" autocomplete="email"  autofocus required>
				<?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
					<span class="invalid-feedback-auth" role="alert">
						<?php echo e($message); ?>

					</span>
				<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
				<div class="invalid-feedback">Enter Phone Number</div>
            </div>
			
			<div class="mb-6 form-password-toggle">
              <label class="form-label" for="password">Password</label>
              <div class="input-group input-group-merge">
                <input type="password" id="password" class="form-control" id="password" name="password" placeholder="&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;" aria-describedby="password" />
                <span class="input-group-text cursor-pointer"><i class="bx bx-hide"></i></span>
              </div>
			  <label for="password" generated="true" class="error"></label>
			  <?php $__errorArgs = ['password'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
					<span class="invalid-feedback-auth" role="alert">
						<?php echo e($message); ?>

					</span>
				<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
				<div class="invalid-feedback">Enter Password</div>
            </div>
			
            <div class="mb-8">
              <div class="d-flex justify-content-between mt-8">
                <div class="form-check mb-0 ms-2">
                  <input class="form-check-input" type="checkbox" id="remember-me">
                  <label class="form-check-label" for="remember-me">
                    Remember Me
                  </label>
                </div>
                <a href="<?php echo e(route('password.request')); ?>">
                  <span>Forgot Password?</span>
                </a>
              </div>
            </div>
            <div class="mb-6">
              <button class="btn btn-kco-green d-grid w-100" type="submit">Login</button>
            </div>
          </form>

          <!--<p class="text-center">
            <span>New on our platform?</span>
            <a href="<?php echo e(route('register')); ?>">
              <span>Create an account</span>
            </a>
          </p>-->
        </div>
      </div>
    </div>
    <!-- /Register -->
  </div>
</div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('page-script'); ?>
<script type="text/javascript">
$.ajaxSetup({
        headers: {
            'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
        }
    });

//$(document).ready(function(){
addEventListener("turbo:load", () => {
$("#formAuthentication").validate({
	rules: {
        email: "required",
        password: "required",
    },
    messages: {
        email: "Email is required",
        password: "Password is required",
    }
});
});
</script>
<?php $__env->stopSection(); ?> 

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