update arrahnpay
This commit is contained in:
@@ -4,7 +4,8 @@ namespace App\Http\Controllers\Auth;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Password;
|
||||
class ForgotPasswordController extends Controller
|
||||
{
|
||||
/*
|
||||
|
||||
@@ -113,3 +113,8 @@ class RegisterController extends Controller
|
||||
return view('auth.termasyarat', compact('termasyarat'));
|
||||
}
|
||||
}
|
||||
|
||||
public function forgotemel()
|
||||
{
|
||||
return view('auth.forgotemail2');
|
||||
}
|
||||
@@ -41,7 +41,8 @@ class InformationController extends Controller
|
||||
if(isset($CustomerInfo['lelong'])){
|
||||
if(sizeof($CustomerInfo['lelong']) > 0){
|
||||
foreach($CustomerInfo['lelong'] as $index=>$lelong){
|
||||
$array_lelong = Http::withOptions(['verify' => config('app.api_verify')])->get('https://adminbid.arrahn.com.my/api/portalApi',['norujukan' => $lelong['norujukan']])->json();
|
||||
// $array_lelong = Http::withOptions(['verify' => config('app.api_verify')])->get('https://adminbid.arrahn.com.my/api/portalApi',['norujukan' => $lelong['norujukan']])->json();
|
||||
$array_lelong = Http::withOptions(['verify' => config('app.api_verify')])->get('https://niklah.arrahn.com.my/api/portalApi',['norujukan' => $lelong['norujukan']])->json();
|
||||
|
||||
if($array_lelong['lelong'] !== null){
|
||||
$CustomerInfo['lelong'][$index] = collect($lelong)->merge($array_lelong['lelong'])->toArray();
|
||||
|
||||
@@ -27,6 +27,20 @@ class TacController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
public function TACrequestfe(Request $request){
|
||||
|
||||
$tac = tacportal::where([['icno',$request->icno],['tac_no',$request->tac]])->get()->toArray();
|
||||
// dd($tac);
|
||||
if($tac){
|
||||
// dd($request->icno);
|
||||
$emel = User::where('icno','=', $request->icno)->first()->toArray();
|
||||
return response(['status' => 1, 'useremel' => $emel]);
|
||||
|
||||
}else{
|
||||
return response(['status' => 0]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public function requestKadPengenalan(Request $request){
|
||||
|
||||
@@ -67,6 +81,42 @@ class TacController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
public function requestKadPengenalanfe(Request $request){
|
||||
|
||||
$currentDateTime = Carbon::now();
|
||||
|
||||
$expiretac = tacportal::where('icno',$request->icno)
|
||||
->whereDate('created_at','=',$currentDateTime)
|
||||
->whereDate('expired_at','=',$currentDateTime)
|
||||
->whereTime('expired_at','>=',$currentDateTime->toTimeString())
|
||||
->whereTime('created_at','<=',$currentDateTime->toTimeString())
|
||||
->latest()
|
||||
->first();
|
||||
|
||||
if($expiretac){
|
||||
return response(['notexpired' => true]);
|
||||
}
|
||||
|
||||
|
||||
$CustomerInfo = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/api/customers/' . $request->icno)->json();
|
||||
|
||||
if($CustomerInfo)
|
||||
{
|
||||
$generatestatus = $this->generateTAC($CustomerInfo);
|
||||
|
||||
if($generatestatus){
|
||||
|
||||
$backphone = substr($CustomerInfo['telefon'],-4);
|
||||
return response(['notelefon' => $backphone,'status' => 1]);
|
||||
}else{
|
||||
|
||||
}
|
||||
}else{
|
||||
|
||||
return response(['status' => 0],200);
|
||||
}
|
||||
}
|
||||
|
||||
private function generateTAC($customer){
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 65 KiB |
@@ -0,0 +1,576 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" itemscope itemtype="http://schema.org/WebPage">
|
||||
|
||||
<style>
|
||||
.background {
|
||||
max-width: -webkit-fill-available;
|
||||
padding: 15%;
|
||||
}
|
||||
|
||||
.shadow-primary {
|
||||
box-shadow: #4A4E59 !important;
|
||||
}
|
||||
|
||||
.text-primary {
|
||||
color: #4A4E59 !important;
|
||||
}
|
||||
|
||||
|
||||
.portalloader {
|
||||
/* display: none;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background: white;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
z-index: 100000;
|
||||
opacity: 0.8; */
|
||||
|
||||
/* display: none; */
|
||||
position: fixed;
|
||||
background: white;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
z-index: 100000;
|
||||
opacity: 0.8;
|
||||
display: flex;
|
||||
}
|
||||
</style>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<link href="{{ asset('argon') }}/img/brand/ARRAHN1.png" rel="icon" type="image/png">
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons+Round" rel="stylesheet">
|
||||
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,900|Roboto+Slab:400,700" />
|
||||
|
||||
|
||||
<script src="{{ asset('argon') }}/vendor/jquery/dist/jquery.min.js"></script>
|
||||
|
||||
<link href="{{ asset('css/nucleo-icons.css') }}" rel="stylesheet">
|
||||
<link href="{{ asset('css/nucleo-svg.css') }}" rel="stylesheet">
|
||||
|
||||
<script src="https://kit.fontawesome.com/42d5adcbca.js" crossorigin="anonymous"></script>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.11.3/css/dataTables.bootstrap4.min.css" />
|
||||
<script src="{{ asset('argon') }}/vendor/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
|
||||
|
||||
<script src="{{ asset('argon') }}/js/ifvisible.js"></script>
|
||||
<script src="{{ asset('argon') }}/js/jquery.backDetect.js"></script>
|
||||
<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
||||
|
||||
|
||||
<script type="text/javascript" src="{{ asset('argon') }}/js/main.js"></script>
|
||||
<script type="text/javascript" src="https://cdn.datatables.net/1.11.3/js/jquery.dataTables.min.js"></script>
|
||||
<script src="{{ asset('argon') }}/js/bootstrap-notify.js"></script>
|
||||
|
||||
<link href="{{ asset('css/material-kit-login.css') }}" rel="stylesheet">
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
<title>Lupa Emel | Portal Pelanggan</title>
|
||||
|
||||
<style>
|
||||
#buttonspare:hover {
|
||||
|
||||
background-color: #12b65224;
|
||||
}
|
||||
</style>
|
||||
|
||||
<body class="sign-in-basic">
|
||||
|
||||
<div class="page-header align-items-start min-vh-100" style="background-image: url('/argon/login/backg4_x2.jpg');" loading="lazy">
|
||||
<span class="mask bg-gradient-dark opacity-6"></span>
|
||||
<div class="container my-auto">
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-md-8 col-12 mx-auto">
|
||||
<div class="card z-index-0 fadeIn3 fadeInBottom">
|
||||
|
||||
<div class="card-header p-0 position-relative mt-n4 mx-3 z-index-2">
|
||||
<div class="bg-gradient-primary border-radius-lg py-3 pe-1" style="background: #4A4E59;">
|
||||
<h4 class="text-white font-weight-bolder text-center mt-2 mb-0">Portal Pelanggan</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-lg-12">
|
||||
|
||||
<h6 class="mt-2 mb-4" style="text-align: center;">Lupa Emel</h6>
|
||||
{{-- <p>Sila isi nomborxz OTP yang telah di hantar ke nombor telefon bimbit anda.</p> --}}
|
||||
<p>Sila isi Nombor Kad Pengenalan anda di dalam kotak yang disediakan.</p>
|
||||
@csrf
|
||||
{{-- <div class="input-group input-group-outline mt-3 {{ $errors->has('otp') ? ' has-danger' : '' }}">
|
||||
<input placeholder="One-Time-Password" class="form-control{{ $errors->has('otp') ? ' is-invalid' : '' }}" type="text" name="otp" value="{{ old('otp') }}" id="login-otp" required autofocus aria-required="true">
|
||||
</div>
|
||||
<span id="spanotp" class="text-danger" role="alert">
|
||||
<small><strong id="errorotp"></strong></small>
|
||||
</span> --}}
|
||||
|
||||
<div class="input-group input-group-outline mt-3 {{ $errors->has('icno') ? ' has-danger' : '' }}">
|
||||
<input type="text" placeholder="Nombor Kad Pengenalan / Passport" class="form-control{{ $errors->has('icno') ? ' is-invalid' : '' }}" id="login-icno" name="icno" required aria-required="true">
|
||||
</div>
|
||||
|
||||
<span id="spanic" class="text-danger invisible" role="alert">
|
||||
<small><strong id="erroricno">ss</strong></small>
|
||||
</span>
|
||||
|
||||
<div class="mt-n3 input-group input-group-outline justify-content-between">
|
||||
<div class="input-group-prepend col-7">
|
||||
<input type="text" id="tac" name="tac" class="form-control" placeholder="Nombor TAC" disabled/>
|
||||
<span id="spantac" class="text-danger invisible" role="alert">
|
||||
<small><strong>TAC yang anda masukkan salah!</strong></small>
|
||||
</span>
|
||||
</div>
|
||||
<div class="input-group-prepend">
|
||||
<button class="btn btn-secondary" onclick="generatetac()">Minta TAC</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<span id="spanhantarnombor" class="text-dark d-none" role="alert">
|
||||
<small><strong>Nombor TAC anda telah dihantar melalui SMS ke +601XXXX <b id="backphone">0569</b>. Jika anda tidak menerima TAC anda dalam masa 5 minit tekan "Mohon TAC". </strong></small>
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div id="divsahkan" class="row d-none">
|
||||
<div class="text-center my-4">
|
||||
<!-- <button type="button" class="btn bg-gradient-primary" data-toggle="modal" data-target="#exampleModal">modal</button> -->
|
||||
<button id="seterusbtn" class="btn btn-secondary login pull-right" type="button" data-toggle="modal" data-target="#exampleModal" onclick="checkpelanggan();" style="background: #4A4E59;">Sahkan</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="text-center mt-3" style="margin: 0% 10%;">
|
||||
<a href="https://spare.arrahn.com.my/pembayaransegera" id="buttonspare" title="Pembayaran Pantas SPARE" style="color: #12B652; border: 1px solid #12B652;" class="btn my-4 mb-2" target="_blank">BAYARAN PANTAS (SPARE)</a href="#">
|
||||
</div>
|
||||
<p class="text-sm text-center">
|
||||
<a href="{{ route('login') }}">Log-Masuk</a>
|
||||
<a href="#" class="text-dark text-gradient font-weight-bold"> | </a>
|
||||
<a href="{{ route('password.request') }}">Lupa Kata Laluan</a>
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="footer position-absolute bottom-2 py-2 w-100">
|
||||
<div class="container">
|
||||
<div class="row align-items-center justify-content-lg-between">
|
||||
<div class="col-12 col-md-6 my-auto">
|
||||
<div class="copyright text-center text-sm text-white text-lg-start">
|
||||
Hak Milik ©
|
||||
<script>
|
||||
document.write(new Date().getFullYear())
|
||||
</script> Koperasi Permodalan Kelantan Berhad
|
||||
</div>
|
||||
</div>
|
||||
{{-- <div class="col-12 col-md-6">
|
||||
<ul class="nav nav-footer justify-content-center justify-content-lg-end">
|
||||
<li class="nav-item">
|
||||
<a href="#" class="nav-link text-white">Hubungi Kami</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div> --}}
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<div class="portalloader">
|
||||
<img src="{{ asset('argon/img/brand/bluespinner.gif') }}" alt="loader_photo">
|
||||
</div>
|
||||
|
||||
<div id="modal-loading" name="myModal" class="modalloading modal fade" role="dialog" style="display:none">
|
||||
|
||||
<div class="modal-dialog-loading">
|
||||
<img src="{{ asset('argon') }}/login/curvebars.svg" style="height:150px;width:150px;">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- END : LOGIN PAGE 5-2 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="assets/global/plugins/respond.min.js"></script>
|
||||
<script src="assets/global/plugins/excanvas.min.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
</div>
|
||||
<div class="modal fade" id="seterusnyaModal" tabindex="-1" aria-labelledby="seterusnyaModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered">
|
||||
<div class="modal-content justify-content-center">
|
||||
<div class="modal-header" style="text-align: center;">
|
||||
<h5 class="modal-title" id="seterusnyaModalLabel">Maklumat Pelanggan</h5>
|
||||
|
||||
<button type="button" class="close" onclick="backfunc()" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p class="text-danger text-sm">*Sila semak maklumat pelanggan di bawah. Pelanggan hendaklah hadir di mana-mana cawangan Ar-Rahn berdekatan untuk membuat pengemaskinian maklumat pelanggan.</p>
|
||||
<div>
|
||||
<!-- @if (Session::has('custdetail'))
|
||||
<?php //$customerdetails = Session::get('custdetail'); ?>
|
||||
@endif -->
|
||||
<form method="GET" action="{{ route('login') }}">
|
||||
{{-- @csrf --}}
|
||||
<div class="card-body p-0 my-3">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="input-group input-group-static mb-4">
|
||||
<label for="name">{{ __('Nama') }}</label>
|
||||
<input autocomplete="off" type="text" name="name" class="input-group-outline form-control @error('name') is-invalid @enderror" value="{{ Session::has('custdetail') ? $customerdetails[0]['nama'] : old('name') }}" readonly>
|
||||
|
||||
@error('name')
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $message }}</strong>
|
||||
</span>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="input-group input-group-static mb-4">
|
||||
<label for="icno">{{ __('No IC') }}</label>
|
||||
<input autocomplete="off" type="text" name="icno" class="input-group-outline form-control @error('icno') is-invalid @enderror" value="{{ Session::has('custdetail') ? $customerdetails[0]['kpbaru'] : old('icno') }}" readonly>
|
||||
@error('icno')
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $message }}</strong>
|
||||
</span>
|
||||
@enderror
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 ps-md-2">
|
||||
<div class="input-group input-group-static mb-4">
|
||||
<label for="notel">{{ __('Emel') }}</label>
|
||||
<!-- <input autocomplete="off" type="text" name="email" class="input-group-outline form-control" value="{{ Session::has('custdetail') ? $customerdetails[0]['email'] : old('email') }}" disabled> -->
|
||||
<input autocomplete="off" type="text" name="email" class="input-group-outline form-control" readonly>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- <span class="text-danger text-xl-center font-weight-bold"><small>*Diminta untuk semak maklumat pelanggan terlebih dahulu!</small></span><br> -->
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="modal-footer justify-content-center">
|
||||
<!-- <button type="button" class="btn bg-gradient-dark mb-0" data-dismiss="modal">Close</button> -->
|
||||
{{-- <button type="button" class="btn btn-danger mb-0" onclick="backfunc()" data-dismiss="modal">Salah</button> --}}
|
||||
|
||||
<!-- <button type="button" class="btn bg-gradient-primary mb-0">Save changes</button> -->
|
||||
<button id="betulbtn" type="submit" class="btn btn-success mb-0">OK</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
setTimeout(() => {
|
||||
$(".portalloader").fadeOut(300);
|
||||
}, 300)
|
||||
})
|
||||
let api_url = "{{ config('api.url') }}";
|
||||
|
||||
function generatetac() {
|
||||
|
||||
let icno = $('#login-icno').val();
|
||||
|
||||
if(icno === '')
|
||||
{
|
||||
$("#tac").prop('disabled', true);
|
||||
|
||||
$.notify({
|
||||
icon: 'fas fa-exclamation-triangle fa-2x',
|
||||
newest_on_top: true,
|
||||
message: "<strong style='font-size:15px;text-align:center;margin-left:100px; color: #ffff'>Sila Masukkan Nombor Kad Pengenalan!</strong>"
|
||||
}, {
|
||||
type: 'danger',
|
||||
allow_dismiss: false,
|
||||
placement: {
|
||||
align: 'center',
|
||||
from: 'bottom'
|
||||
},
|
||||
animate: {
|
||||
enter: 'animate__animated animate__bounce',
|
||||
|
||||
exit: 'animate__animated animate__bounceOutDown'
|
||||
}
|
||||
});
|
||||
|
||||
}else{
|
||||
|
||||
var csrf_token = $('meta[name="csrf-token"]').attr('content');
|
||||
|
||||
$.ajax({
|
||||
url: '{{ route("requesticfe") }}',
|
||||
method: 'get',
|
||||
data:{
|
||||
"_token": "{{ csrf_token() }}",
|
||||
"icno" : icno
|
||||
},
|
||||
success: function(data) {
|
||||
|
||||
|
||||
console.log(data);
|
||||
if(data.notexpired){
|
||||
$.notify({
|
||||
icon: 'fas fa-exclamation-triangle fa-2x',
|
||||
newest_on_top: true,
|
||||
message: "<strong style='font-size:15px;text-align:center;margin-left:100px; color: #ffff'>anda telah meminta tac kurang daripada 5 minit!</strong>"
|
||||
}, {
|
||||
type: 'warning',
|
||||
allow_dismiss: false,
|
||||
placement: {
|
||||
align: 'center',
|
||||
from: 'bottom'
|
||||
},
|
||||
animate: {
|
||||
enter: 'animate__animated animate__bounce',
|
||||
exit: 'animate__animated animate__bounceOutDown'
|
||||
}
|
||||
});
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// if(data.message){
|
||||
|
||||
// $.notify({
|
||||
// icon: 'fas fa-exclamation-triangle fa-2x',
|
||||
// newest_on_top: true,
|
||||
// message: "<strong style='font-size:15px;text-align:center;margin-left:100px; color: #ffff'>anda telah menjadi ahli dalam ini!</strong>"
|
||||
// }, {
|
||||
// type: 'warning',
|
||||
// allow_dismiss: false,
|
||||
// placement: {
|
||||
// align: 'center',
|
||||
// from: 'bottom'
|
||||
// },
|
||||
// animate: {
|
||||
// enter: 'animate__animated animate__bounce',
|
||||
// exit: 'animate__animated animate__bounceOutDown'
|
||||
// }
|
||||
// });
|
||||
|
||||
// return;
|
||||
// }
|
||||
// console.log(data);
|
||||
// return;
|
||||
if(data['status'] == 1)
|
||||
{
|
||||
$("#tac").prop('disabled', false);
|
||||
$("#spanhantarnombor").removeClass('d-none');
|
||||
$("#divsahkan").removeClass('d-none');
|
||||
$('#backphone').text(data['notelefon']);
|
||||
|
||||
$.notify({
|
||||
icon: 'fas fa-2x fa-exclamation-triangle',
|
||||
newest_on_top: true,
|
||||
message: "<strong style='font-size:15px;text-align:center;margin-left:100px; color: #ffff'>Permohonan TAC telah dihantar melalui SMS!</strong>"
|
||||
}, {
|
||||
type: 'success',
|
||||
allow_dismiss: false,
|
||||
placement: {
|
||||
align: 'center',
|
||||
from: 'bottom'
|
||||
},
|
||||
animate: {
|
||||
enter: 'animate__animated animate__bounce',
|
||||
|
||||
exit: 'animate__animated animate__bounceOutDown'
|
||||
}
|
||||
});
|
||||
|
||||
}else{
|
||||
$.notify({
|
||||
icon: 'fas fa-2x fa-exclamation-triangle',
|
||||
newest_on_top: true,
|
||||
message: "<strong style='font-size:15px;text-align:center;margin-left:100px; color: #ffff'>No Kad Pengenalan / Passport tiada dalam simpanan!</strong>"
|
||||
}, {
|
||||
type: 'danger',
|
||||
allow_dismiss: false,
|
||||
placement: {
|
||||
align: 'center',
|
||||
from: 'bottom'
|
||||
},
|
||||
animate: {
|
||||
enter: 'animate__animated animate__bounce',
|
||||
|
||||
exit: 'animate__animated animate__bounceOutDown'
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
function checkpelanggan() {
|
||||
var otp_verify = $('#tac').val();
|
||||
var otp_icno = $('#login-icno').val();
|
||||
var boolotp = false;
|
||||
var boolicno = false;
|
||||
if (otp_verify == null || otp_verify == '') {
|
||||
// $('#errorotp').text('Sila Isi Nombor OTP!');
|
||||
// $('#spanotp').addClass('visible');
|
||||
// $('#spanotp').removeClass('invisible');
|
||||
boolotp = true;
|
||||
} else {
|
||||
// $('#errorotp').text('');
|
||||
// $('#spanotp').addClass('invisible');
|
||||
// $('#spanotp').removeClass('visible');
|
||||
boolotp = false;
|
||||
}
|
||||
|
||||
if (otp_icno == null || otp_icno == '') {
|
||||
// $('#erroricno').text('Sila Isi No Kad Pengenalan Anda!');
|
||||
// $('#spanic').addClass('visible');
|
||||
// $('#spanic').removeClass('invisible');
|
||||
boolicno = true;
|
||||
} else {
|
||||
// $('#erroricno').text('');
|
||||
// $('#spanic').addClass('invisible');
|
||||
// $('#spanic').removeClass('visible');
|
||||
boolicno = false;
|
||||
}
|
||||
|
||||
if (boolotp === false && boolicno === false) {
|
||||
|
||||
$.ajax({
|
||||
// url: api_url + '/api/otp/check/' + otp_verify,
|
||||
url: "{{ route('requesttacfe') }}", //fe=forgot email
|
||||
data:{
|
||||
icno: otp_icno,
|
||||
tac: otp_verify
|
||||
},
|
||||
method: 'GET',
|
||||
success: function(data) {
|
||||
// console.log(data);
|
||||
// alert('hi');
|
||||
if (data.status == 1) {
|
||||
|
||||
$('input[name="name"]').val(data.useremel.name);
|
||||
$('input[name="icno"]').val(data.useremel.icno);
|
||||
$('input[name="email"]').val(data.useremel.email);
|
||||
|
||||
|
||||
$('#spanic').addClass('invisible');
|
||||
$('#spanic').removeClass('visible');
|
||||
$('#spanic').addClass('invisible');
|
||||
$('#spanic').removeClass('visible');
|
||||
$("#seterusbtn").prop("disabled", true);
|
||||
|
||||
$('#logobg').addClass('invisible');
|
||||
$('#logobg').removeClass('visible');
|
||||
$('#makpel').addClass('visible');
|
||||
$('#makpel').removeClass('invisible');
|
||||
|
||||
$('#seterusnyaModal').modal({
|
||||
backdrop: 'static',
|
||||
keyboard: false
|
||||
});
|
||||
} else {
|
||||
$.notify({
|
||||
icon: 'fas fa-2x fa-exclamation-triangle',
|
||||
newest_on_top: true,
|
||||
message: "<strong style='font-size:15px;text-align:center;margin-left:100px; color: #ffff'>TAC anda salah sila periksa balik!</strong>"
|
||||
}, {
|
||||
type: 'danger',
|
||||
allow_dismiss: false,
|
||||
placement: {
|
||||
align: 'center',
|
||||
from: 'bottom'
|
||||
},
|
||||
animate: {
|
||||
enter: 'animate__animated animate__bounce',
|
||||
|
||||
exit: 'animate__animated animate__bounceOutDown'
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
}else{
|
||||
$.notify({
|
||||
icon: 'fas fa-2x fa-exclamation-triangle',
|
||||
newest_on_top: true,
|
||||
message: "<strong style='font-size:15px;text-align:center;margin-left:100px; color: #ffff'>Sila masukkan ruang yang disediakan!</strong>"
|
||||
}, {
|
||||
type: 'danger',
|
||||
allow_dismiss: false,
|
||||
placement: {
|
||||
align: 'center',
|
||||
from: 'bottom'
|
||||
},
|
||||
animate: {
|
||||
enter: 'animate__animated animate__bounce',
|
||||
|
||||
exit: 'animate__animated animate__bounceOutDown'
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function backfunc() {
|
||||
$('#makpel').addClass('invisible');
|
||||
$('#makpel').removeClass('visible');
|
||||
$("#seterusbtn").prop("disabled", false);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// $('body').on('click', '.loading', function() {
|
||||
// loading();
|
||||
// });
|
||||
|
||||
$(function() {
|
||||
$('.login-form').submit(function() {
|
||||
if ($(this).valid()) {
|
||||
//
|
||||
} else {
|
||||
loading_close();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -2,6 +2,29 @@
|
||||
|
||||
@section('content')
|
||||
|
||||
<style>
|
||||
#loader {
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
background: rgba(0, 0, 0, 0.4) url("") no-repeat center center;
|
||||
z-index: 99999;
|
||||
|
||||
|
||||
}
|
||||
#loader-image {
|
||||
position: absolute;
|
||||
top: 40%;
|
||||
left: 45%;
|
||||
z-index: 100
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<title>Lupa Kata Laluan | Portal Pelanggan</title>
|
||||
|
||||
<h6 style="text-align: center; margin-bottom: 10%;">Lupa Kata Laluan</h6>
|
||||
@@ -10,8 +33,17 @@
|
||||
{{-- <div class="alert alert-success" role="alert">
|
||||
{{ session('status') }}
|
||||
</div> --}}
|
||||
<div class="alert alert-success text-white" role="alert">
|
||||
<p>
|
||||
Sila periksa e-mel untuk menetapkan semula kata laluan.
|
||||
<p>
|
||||
Sekiranya anda tidak menerima sebarang emel, sila semak dalam fail spam pada emel.
|
||||
<p>
|
||||
Sekiranya wujud dalam spam, perlu tukar kepada 'Not Spam' terlebih dahulu.
|
||||
</div>
|
||||
<script>
|
||||
var status = "{{ session('status') }}";
|
||||
console.log(status);
|
||||
$.notify({
|
||||
icon: 'far fa-check-circle fa-2x',
|
||||
newest_on_top: true,
|
||||
@@ -65,8 +97,10 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
<form role="form" method="POST" action="{{ route('password.email') }}">
|
||||
<!-- <form role="form" method="POST" action="{{ route('password.email') }}"> -->
|
||||
<form name="katalaluan" role="form" method="POST" action="{{ route('password.email') }}">
|
||||
@csrf
|
||||
<div id='loader'><img id="loader-image" src="{{ asset('assets') }}/img/Spinner14.gif" /></div>
|
||||
<p>Sila masukkan emel</p>
|
||||
<div class="input-group input-group-outline my-3">
|
||||
|
||||
@@ -80,7 +114,7 @@
|
||||
@endif
|
||||
|
||||
<div class="text-center">
|
||||
<button type="submit" class="btn bg-gradient-dark w-100 my-4 mb-2" style="background: #4A4E59;">Tetap Semula Kata Laluan</button>
|
||||
<button type="submit" class="btn bg-gradient-dark w-100 my-4 mb-2" style="background: #4A4E59;" onclick="showLoading()">Tetap Semula Kata Laluan</button>
|
||||
</div>
|
||||
<div class="text-center mt-3" style="margin: 0% 10%;">
|
||||
<a href="https://spare.arrahn.com.my/pembayaransegera" id="buttonspare" title="Pembayaran Pantas SPARE" style="color: #12B652; border: 1px solid #12B652;" class="btn my-4 mb-2" target="_blank">Bayaran Pantas (SPARE)</a href="#">
|
||||
@@ -90,7 +124,17 @@
|
||||
<a href="{{ route('auth.registerfirst') }}">Pertama Kali</a>
|
||||
<a href="#" class="text-dark text-gradient font-weight-bold"> | </a>
|
||||
<a href="{{ route('login') }}">Log-Masuk</a>
|
||||
<a href="#" class="text-dark text-gradient font-weight-bold"> | </a>
|
||||
<a href="{{ route('auth.forgotemel') }}">Lupa Emel</a>
|
||||
</p>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
$( "form" ).submit(function() {
|
||||
$('#loader').show();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
@@ -48,6 +48,8 @@
|
||||
<a href="{{ route('auth.registerfirst') }}">Pertama Kali</a>
|
||||
<a href="#" class="text-dark text-gradient font-weight-bold"> | </a>
|
||||
<a href="{{ route('password.request') }}">Lupa Kata Laluan</a>
|
||||
<a href="#" class="text-dark text-gradient font-weight-bold"> | </a>
|
||||
<a href="{{ route('auth.forgotemel') }}">Lupa E-mel</a>
|
||||
</p>
|
||||
|
||||
<p class="text-sm text-center">
|
||||
|
||||
+6
-1
@@ -32,6 +32,9 @@ Route::get('/forgetpassword', function () {
|
||||
Route::get('/firsttime', function () {
|
||||
return view('/includes/login/firsttime');
|
||||
});
|
||||
Route::get('/forgetemail', function () {
|
||||
return view('/includes/login/forgetemail');
|
||||
});
|
||||
// Route::get('/portalhome', function () {
|
||||
// $auth_user = Auth::user();
|
||||
|
||||
@@ -212,6 +215,7 @@ Route::get('/termasyarat', 'App\Http\Controllers\InformationController@termasyar
|
||||
|
||||
Route::get('/authenticateregister', 'App\Http\Controllers\Auth\RegisterController@firsttimer')->name('auth.registerfirst');
|
||||
// Route::get('/registering', 'App\Http\Controllers\Auth\RegisterController@tempatregister')->name('auth.tempatregister');
|
||||
Route::get('/forgotemel', 'App\Http\Controllers\Auth\RegisterController@forgotemel')->name('auth.forgotemel');
|
||||
|
||||
Route::group(['middleware' => 'auth','verified'], function () {
|
||||
|
||||
@@ -257,8 +261,9 @@ Route::get('send-mail', function () {
|
||||
});
|
||||
|
||||
Route::get('/requestic', 'App\Http\Controllers\TacController@requestKadPengenalan')->name('requestic');
|
||||
Route::get('/requesticfe', 'App\Http\Controllers\TacController@requestKadPengenalanfe')->name('requesticfe');
|
||||
Route::get('/requesttac', 'App\Http\Controllers\TacController@TACrequest')->name('requesttac');
|
||||
|
||||
Route::get('/requesttacfe', 'App\Http\Controllers\TacController@TACrequestfe')->name('requesttacfe');
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user