@extends('EcomAuthViews::layouts.authentication.layout',[ "heightAdjuster" => (session('guest')==1) ? 80 : 400 ]) @section('content') @php $country_code = country()->code(); @endphp
@csrf @if($challenge && isset($challenge->challenge))
OTP code has been sent to the below:
@if($challenge->email_sent == 1 && $user->email)
@include('EcomAuthViews::icons.envelope') {{$user->email }}
@endif @if($challenge->sms_sent == 1 && $user->phone)
@include('EcomAuthViews::icons.phone') {{$user->phone }}
@endif @if($challenge->whatsapp_sent == 1 && $user->phone)
@include('EcomAuthViews::icons.whatsapp') {{$user->phone }}
@endif
@else @switch(request()->type) @case("email")
@include('EcomAuthViews::icons.envelope') {{$user->email }}. Choose another
@break @case("phone")
@include('EcomAuthViews::icons.phone') {{$user->phone }} Choose another
@break @case("email-phone") @case("phone-email")
@include('EcomAuthViews::icons.envelope') {{$user->email }}
@include('EcomAuthViews::icons.phone') {{$user->phone }}
Choose another
@default @break @endswitch @endif @if($login_type == "otp") @component('EcomGeneralViews::components.form.input', [ "parentClass" => "", "size" => "full", "type" => "text", "label" => ___('authentication.pin') ])
@error('code') {{$message}} @enderror @endcomponent @else @component('EcomGeneralViews::components.form.input', [ "parentClass" => "", "size" => "full", "type" => "text", "label" => ___('authentication.enter_password') ])
@error('password') {{$message}} @enderror
Forgot Password? Reset
@endcomponent @endif @if($login_type == "otp") @php $resend_url = str_replace("/login/otp/", "/redirect/otp/" ,url()->current()); if(request()->type && in_array(request()->type , ["email" , "phone"])){ $resend_url.= "?type=".request()->type; } @endphp
Didn't revieve OTP? Resend
@endif @if( session('guest') != 1)
@if(count($other_auth_methods) > 0)
OR
@endif
@foreach($other_auth_methods as $method) @if(!$loop->first)
@endif {{$method['label']}} @endforeach
@endif
@endsection @section('scripts') @endsection