<?php $__env->startSection('pageHeading'); ?>
  <?php if(!empty($pageHeading)): ?>
    <?php echo e($pageHeading->customer_login_page_title ?? __('Customer Login')); ?>

  <?php else: ?>
    <?php echo e(__('Customer Login')); ?>

  <?php endif; ?>
<?php $__env->stopSection(); ?>
<?php
  $metaKeywords = !empty($seo->meta_keyword_customer_login) ? $seo->meta_keyword_customer_login : '';
  $metaDescription = !empty($seo->meta_description_customer_login) ? $seo->meta_description_customer_login : '';
?>
<?php $__env->startSection('meta-keywords', "<?php echo e($metaKeywords); ?>"); ?>
<?php $__env->startSection('meta-description', "$metaDescription"); ?>

<?php $__env->startSection('hero-section'); ?>
  <!-- Page Banner Start -->
  <section class="page-banner overlay pt-120 pb-125 rpt-90 rpb-95 lazy"
    data-bg="<?php echo e(asset('assets/admin/img/' . $basicInfo->breadcrumb)); ?>">
    <div class="container">
      <div class="banner-inner">
        <h2 class="page-title">
          <?php if(!empty($pageHeading)): ?>
            <?php echo e($pageHeading->customer_login_page_title ?? __('Customer Login')); ?>

          <?php else: ?>
            <?php echo e(__('Customer Login')); ?>

          <?php endif; ?>
        </h2>
        <nav aria-label="breadcrumb">
          <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="<?php echo e(route('index')); ?>"><?php echo e(__('Home')); ?></a></li>
            <li class="breadcrumb-item active">
              <?php if(!empty($pageHeading)): ?>
                <?php echo e($pageHeading->customer_login_page_title ?? __('Customer Login')); ?>

              <?php else: ?>
                <?php echo e(__('Customer Login')); ?>

              <?php endif; ?>
            </li>
          </ol>
        </nav>
      </div>
    </div>
  </section>
  <!-- Page Banner End -->
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
  <!-- LogIn Area Start -->
  <div class="login-area pt-115 rpt-95 pb-120 rpb-100">
    <div class="container">
      <div class="row justify-content-center">
        <div class="col-lg-8">

          <?php
            $input = request()->input('redirected');
          ?>
          <?php if(!onlyDigitalItemsInCart()): ?>
            <?php if($input == 'checkout'): ?>
              <div class="form-group w-100">
                <a href="<?php echo e(route('shop.checkout', ['type' => 'guest'])); ?>"
                  class="btn btn-success d-block"><?php echo e(__('Checkout as Guest')); ?></a>
              </div>
            <?php endif; ?>
          <?php endif; ?>

          <?php
            $event_setting = App\Models\BasicSettings\Basic::select('event_guest_checkout_status')->first();
          ?>
          <?php if($event_setting->event_guest_checkout_status == 1): ?>
            <?php if(request()->input('redirectPath') == 'event_checkout'): ?>
              <div class="form-group w-100">
                <a href="<?php echo e(route('check-out', ['type' => 'guest'])); ?>"
                  class="btn btn-success d-block"><?php echo e(__('Checkout as Guest')); ?></a>
              </div>
            <?php endif; ?>
          <?php endif; ?>


          <form id="login-form" name="login_form" class="login-form" action="<?php echo e(route('customer.authentication')); ?>"
            method="POST">
            <?php echo csrf_field(); ?>

            <?php if($basicInfo->facebook_login_status == 1 || $basicInfo->google_login_status == 1): ?>
              <div class="form-group overflow-hidden">
                <div class="row justify-content-between mb-3">
                  <?php if($basicInfo->facebook_login_status == 1): ?>
                    <a class="text-center text-white <?php echo e($basicInfo->google_login_status == 1 ? 'w-50' : 'w-100'); ?> pt-2 py-2 bg-facebook"
                      href="<?php echo e(route('auth.facebook', ['redirectPath' => request()->input('redirectPath')])); ?>"
                      class=""><i class="fab fa-facebook-f"></i>
                      <?php echo e(__('Login with Facebook')); ?></a>
                  <?php endif; ?>

                  <?php if($basicInfo->google_login_status == 1): ?>
                    <a class="text-center text-white <?php echo e($basicInfo->facebook_login_status == 1 ? 'w-50' : 'w-100'); ?>  pt-2 py-2 bg-google"
                      href="<?php echo e(route('auth.google', ['redirectPath' => request()->input('redirectPath')])); ?>"
                      class=""> <i class="fab fa-google"></i>
                      <?php echo e(__('Login with Google')); ?></a>
                  <?php endif; ?>
                </div>
              </div>
            <?php endif; ?>

            <?php if(Session::has('success')): ?>
              <div class="alert alert-success"><?php echo e(Session::get('success')); ?></div>
            <?php endif; ?>
            <?php if(Session::has('alert')): ?>
              <div class="alert alert-danger"><?php echo e(Session::get('alert')); ?></div>
            <?php endif; ?>

            <div class="form-group">
              <label for="username"><?php echo e(__('Username') . ' *'); ?> </label>
              <input type="text" placeholder="<?php echo e(__('Enter Your Username')); ?>" name="username" id="username"
                value="" class="form-control">
              <?php $__errorArgs = ['username'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                <p class="text-danger"><?php echo e($message); ?></p>
              <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
            </div>
            <div class="form-group">
              <label for="password"><?php echo e(__('Password') . ' *'); ?></label>
              <input type="password" name="password" value="" id="password" class="form-control"
                placeholder="<?php echo e(__('Enter 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]); ?>
                <p class="text-danger"><?php echo e($message); ?></p>
              <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
            </div>

            <?php if($basicInfo->google_recaptcha_status == 1): ?>
              <div class="form-group">
                <?php echo NoCaptcha::renderJs(); ?>

                <?php echo NoCaptcha::display(); ?>

                <?php $__errorArgs = ['g-recaptcha-response'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                  <p class="text-danger"><?php echo e($message); ?></p>
                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
              </div>
            <?php endif; ?>

            <div class="form-group mb-0">
              <button class="theme-btn br-30" type="submit"
                data-loading-text="Please wait..."><?php echo e(__('Login')); ?></button>
            </div>
            <div class="form-group mt-3 d-flex justify-content-between mb-0">
              <p><?php echo e(__('Don`t have an account') . '?'); ?> <a class="text-info"
                  href="<?php echo e(route('customer.signup')); ?>"><?php echo e(__('Signup Now')); ?></a></p>
              <p><a href="<?php echo e(route('customer.forget.password')); ?>"><?php echo e(__('Lost your password') . '?'); ?></a></p>
            </div>
          </form>
        </div>
      </div>
    </div>
  </div>
  <!-- LogIn Area End -->
<?php $__env->stopSection(); ?>

<?php echo $__env->make('frontend.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/ysakkarj/events.theend.africa/resources/views/frontend/customer/login.blade.php ENDPATH**/ ?>