@php $setting = new App\Setting(); @endphp @extends('frontends.layouts.index') @section('content')
Image

{!! Form::model($model) !!}
{!! Form::hidden('mobile_no', null) !!} {!! Form::text('tac_no', null, ['class'=>'form-control '.($errors->first('tac_no') ? 'is-invalid' : ''),'required','autofocus']) !!} {!!$errors->first('tac_no', ':message')!!} {{ __('Resend Tac No.') }}
{!! Form::close() !!}
@stop @section('script') $(document).ready(function(){ $("#btn_resend_tac_no").addClass("disabled-link"); setTimer(); }); function setTimer() { var timeleft = 60; var downloadTimer = setInterval(function(){ if(timeleft <= 0){ clearInterval(downloadTimer); $("#btn_resend_tac_no").removeClass("disabled-link") } $("#countdown").html(timeleft + " seconds remaining"); timeleft -= 1; }, 1000); } function resendTacNo() { $.get("{{ action('AuthController@getSendMobileTAC') }}", {search_term:"{{ $model->mobile_no }}"}, function(data){ if(data.status) { $("#btn_resend_tac_no").addClass("disabled-link"); setTimer(); } alert(data.msg); },"json"); } @stop