Skip to content

Instantly share code, notes, and snippets.

@ferdousulhaque
Last active August 2, 2020 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ferdousulhaque/a0ffaa2a1307d1222681e6967b360582 to your computer and use it in GitHub Desktop.
Save ferdousulhaque/a0ffaa2a1307d1222681e6967b360582 to your computer and use it in GitHub Desktop.
Sample OTP Success Fail Page
@extends('product.layout.template')
@section('body')
<div class="col-md-8 order-md-1">
<h4 class="mb-3">OTP Validation</h4>
@if($validate['code'] == 200)
{{$resp[$validate['code']]}}
@elseif($validate['code'] == 203 || $validate['code'] == 404)
{{$resp[$validate['code']]}}
@if(isset($validate['resendId']))
<form class="needs-validation" action="{{route('validateOtp')}}" method="post" novalidate>
<div class="row">
<div class="col-md-6 mb-3">
<label for="otp">Enter OTP</label>
<input type="text" class="form-control" name="otp" id="otp" placeholder="" value="" required>
<div class="invalid-feedback">
Enter OTP.
</div>
</div>
</div>
<hr class="mb-4">
{!! csrf_field() !!}
<input id="uniqueId" name="uniqueId" type="hidden" value="{{$validate['resendId']}}">
<button class="btn btn-primary btn-lg btn-block" type="submit">Retry</button>
</form>
@endif
@else
{{$resp[$validate['code']]}}
@endif
</div>
@endsection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment