Merge branch 'master' of https://gitlab.com/online-sistem1/kaunter
This commit is contained in:
@@ -124,12 +124,13 @@
|
||||
<div class="card-body">
|
||||
|
||||
|
||||
<button type="button" onclick="kemaskiniupah()" class="btn btn-primary float-right" disabled>Kemaskini</button>
|
||||
<button type="button" onclick="kemaskiniupah()" class="btn btn-primary float-right">Kemaskini</button>
|
||||
<nav>
|
||||
<div class="nav nav-tabs mb-4" id="nav-tab" role="tablist">
|
||||
<a class="nav-item nav-link active" id="nav-home-tab" data-toggle="tab" href="#nav-home" role="tab" aria-controls="nav-home" aria-selected="true">Tunai</a>
|
||||
<a class="nav-item nav-link" id="nav-profile-tab" data-toggle="tab" href="#nav-profile" role="tab" aria-controls="nav-profile" aria-selected="false">Gadai / Tebus</a>
|
||||
<a class="nav-item nav-link" id="nav-contact-tab" data-toggle="tab" href="#nav-contact" role="tab" aria-controls="nav-contact" aria-selected="false">Tuntut Baki</a>
|
||||
<a class="nav-item nav-link" id="nav-upah-tab" data-toggle="tab" href="#nav-upah" role="tab" aria-controls="nav-upah" aria-selected="false">Upah Lama</a>
|
||||
</div>
|
||||
</nav>
|
||||
<div class="tab-content" id="nav-tabContent">
|
||||
@@ -214,6 +215,33 @@
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<div class="tab-pane fade" id="nav-upah" role="tabpanel" aria-labelledby="nav-upah-tab">
|
||||
|
||||
<table class="table table-striped table-hover text-center" id="tableupahlama">
|
||||
<thead class="thead-dark">
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
<th>Tarikh</th>
|
||||
<th>Norujukan</th>
|
||||
<th>Upah Dibayar (RM)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{-- {{ dd($advansur) }} --}}
|
||||
@if(is_object($advansur) || is_array($advansur))
|
||||
@foreach($advansur as $ansur)
|
||||
<tr>
|
||||
<td> {{ $loop->iteration }} </td>
|
||||
<td> {{ $ansur['tarikh'] }} </td>
|
||||
<td> {{ $ansur['norujukan'] }} </td>
|
||||
<td> {{ number_format($ansur['upahdibayar'],2) }} </td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -235,6 +263,11 @@
|
||||
var tabletuntutbaki = $('#tabletuntutbaki').DataTable({
|
||||
// "scrollX": true
|
||||
});
|
||||
|
||||
var tableupahlama = $('#tableupahlama').DataTable({
|
||||
// "scrollX": true
|
||||
});
|
||||
|
||||
var tele = "{{ $auth_user['name'] }}";
|
||||
|
||||
$(document).ready( function () {
|
||||
@@ -289,9 +322,26 @@
|
||||
$.ajax({
|
||||
type: 'get',
|
||||
url: "{{ route('kemaskini.upah') }}",
|
||||
data: { "namateller" : tele },
|
||||
// data: { "namateller" : tele },
|
||||
success: function(data){
|
||||
console.log(data);
|
||||
if(data == 1)
|
||||
{
|
||||
Swal.fire({
|
||||
icon: 'success',
|
||||
title: 'Kemaskini!',
|
||||
text: 'Proses Kemaskini!'
|
||||
}).then(function() {
|
||||
location.reload();
|
||||
});
|
||||
|
||||
}else{
|
||||
Swal.fire({
|
||||
icon: 'warning',
|
||||
title: 'Peringatan',
|
||||
text: 'Telah Dikemaskini!'
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
@section('content')
|
||||
@include('modal.historytebus')
|
||||
@include('modal.wakil')
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-12 col-lg-12">
|
||||
@@ -36,7 +37,14 @@
|
||||
<b>No Kad Pengenalan</b>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<input type="text" class="form-control" name="noic" id="noic" readonly value="{{ $customer_info['kpbaru'] }}">
|
||||
@php
|
||||
if($customer_info['kpbaru'] != null){
|
||||
$noic = $customer_info['kpbaru'];
|
||||
}else{
|
||||
$noic = $customer_info['kplama'];
|
||||
}
|
||||
@endphp
|
||||
<input type="text" class="form-control" name="noic" id="noic" readonly value="{{ $noic }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -403,6 +411,9 @@
|
||||
var api_url = "<?php echo $api_url ?>";
|
||||
var kodcaw = "{{ $cawangan_info['kodcaw'] }}";
|
||||
$('#daftar_gadai').on('click',function(){
|
||||
var noic = $('#noic').val();
|
||||
var iclama = "{{ $customer_info['kplama'] }}";
|
||||
var icbaru = "{{ $customer_info['kpbaru'] }}";
|
||||
event.preventDefault();
|
||||
$.ajax({
|
||||
method:'get',
|
||||
@@ -428,7 +439,11 @@
|
||||
return false;
|
||||
}
|
||||
else{
|
||||
window.location.href = "{{ route('gadaian',['noic'=>$customer_info['kpbaru'] ]) }}";
|
||||
if(icbaru.length > 0){
|
||||
window.location.href = "{{ route('gadaian',['noic'=>$customer_info['kpbaru'] ]) }}";
|
||||
}else{
|
||||
window.location.href = "{{ route('gadaian',['noic'=>$customer_info['kplama'] ]) }}";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -756,8 +771,134 @@
|
||||
});
|
||||
}
|
||||
|
||||
function daftarwakil()
|
||||
{
|
||||
let nopelanggan = $('#nopelangganwakil').val();
|
||||
let nowakil = $('#nowakil').val();
|
||||
let nama = $('#namawakil').val();
|
||||
let hubungan = $('#slthubungan').val();
|
||||
let alamat = $('#alamatwakil').val();
|
||||
let telefon = $('#notelwakil').val();
|
||||
let nota = $('#notawakil').val();
|
||||
let nokp = $('#nokpwakil').val();
|
||||
let norujukan = $('#norujukanwakil').val();
|
||||
|
||||
async function ubahfunc(e){
|
||||
|
||||
$.ajax({
|
||||
method:'POST',
|
||||
url: "{{ route('wakil.create') }}",
|
||||
data:{
|
||||
"_token": "{{ csrf_token() }}",
|
||||
"nopelanggan" : nopelanggan,
|
||||
"nowakil" : nowakil,
|
||||
"nama" : nama,
|
||||
"hubungan" : hubungan,
|
||||
"alamat" : alamat,
|
||||
"telefon" : telefon,
|
||||
"nota" : nota,
|
||||
"icno" : nokp
|
||||
},
|
||||
success:function(data){
|
||||
|
||||
if(data == 1)
|
||||
{
|
||||
$('#WakilModal').hide();
|
||||
$('#WakilModal').modal('hide');
|
||||
nw = nowakil;
|
||||
Swal.fire({
|
||||
allowOutsideClick: false,
|
||||
allowEscapeKey: false,
|
||||
allowEnterKey: false,
|
||||
confirmButtonText: '<i class="fa fa-thumbs-up"></i> Baik Boss!',
|
||||
icon: 'success',
|
||||
title: 'Berjaya Mendaftar Wakil Pelanggan!'
|
||||
}).then(function(){
|
||||
|
||||
$.ajax({
|
||||
method:'put',
|
||||
url: api_url + '/api/ubahwakil/' + kodcaw,
|
||||
data:{ 'nowakil' : nw,
|
||||
'norujukan' : norujukan},
|
||||
success:function(data){
|
||||
|
||||
if(data === 1)
|
||||
{
|
||||
Swal.fire({
|
||||
icon: 'success',
|
||||
title: 'Berjaya!',
|
||||
text: 'Penukaran Wakil berjaya'
|
||||
}).then(async function(){
|
||||
return true;
|
||||
location.reload();
|
||||
});
|
||||
}else{
|
||||
Swal.fire({
|
||||
icon: 'info',
|
||||
title: 'Pemberitahuan!',
|
||||
text: 'Wakil telah didaftarkan dengan IC tersebut!'
|
||||
}).then(async function(){
|
||||
return true;
|
||||
location.reload();
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
},error: function (request, status, error) {
|
||||
console.log(request.responseText);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function daftarwakilfunction(nokp,norujukan)
|
||||
{
|
||||
$('#nokpwakil').val(nokp);
|
||||
$('#norujukanwakil').val(norujukan);
|
||||
|
||||
$.ajax({
|
||||
method:'GET',
|
||||
url: "{{ route('wakil.caricustomer') }}",
|
||||
data:{ "icno" : nokp },
|
||||
success:function(data){
|
||||
|
||||
$('#WakilModal').modal();
|
||||
$('#namawakil').val('');
|
||||
$('#alamatwakil').val(data['']);
|
||||
$('#notelwakil').val(data['']);
|
||||
|
||||
//get first wakil
|
||||
$.ajax({
|
||||
method:'GET',
|
||||
url: "{{ route('wakil.first') }}",
|
||||
success:function(getfirstwakil)
|
||||
{
|
||||
let firstwakil = parseInt(getfirstwakil);
|
||||
|
||||
$('#nowakil').val(firstwakil+1);
|
||||
}
|
||||
});
|
||||
|
||||
if(data != 'no-data')
|
||||
{
|
||||
$('#namawakil').val(data['nama']);
|
||||
$('#alamatwakil').val(data['alamat1']);
|
||||
$('#notelwakil').val(data['telefon']);
|
||||
$('#nopelangganwakil').val(data['nopelanggan']);
|
||||
}
|
||||
|
||||
|
||||
},error: function (request, status, error) {
|
||||
console.log(request.responseText);
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function ubahfunc(e){
|
||||
|
||||
let ubahid = $('input[name="belum"]:checked').val();
|
||||
let harini = new Date();harini.setHours(0, 0, 0, 0);
|
||||
@@ -775,17 +916,17 @@
|
||||
}
|
||||
}else if($("input[name='options']:checked").val() == 'sudah_tebus'){
|
||||
|
||||
let test = $('input[name="sudahtebus"]:checked').closest('tr').children('td:eq(2)').text();
|
||||
let tarikhgadai1 = new Date(test);tarikhgadai1.setHours(0, 0, 0, 0);
|
||||
// let test = $('input[name="sudahtebus"]:checked').closest('tr').children('td:eq(2)').text();
|
||||
// let tarikhgadai1 = new Date(test);tarikhgadai1.setHours(0, 0, 0, 0);
|
||||
|
||||
if(+harini !== +tarikhgadai1){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran',
|
||||
text: 'Ubah Gadai Tidak Dibenarkan'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
// if(+harini !== +tarikhgadai1){
|
||||
// Swal.fire({
|
||||
// icon: 'error',
|
||||
// title: 'Amaran',
|
||||
// text: 'Ubah Gadai Tidak Dibenarkan'
|
||||
// });
|
||||
// return false;
|
||||
// }
|
||||
}
|
||||
|
||||
if(ubahid == null && $("input[name='options']:checked").val() == 'belum_tebus'){
|
||||
@@ -799,34 +940,221 @@
|
||||
}
|
||||
|
||||
if($("input[name='options']:checked").val() == 'sudah_tebus'){
|
||||
const { value: amaun } = await Swal.fire({
|
||||
title: 'Kad Pengenalan Wakil',
|
||||
input: 'text',
|
||||
inputPlaceholder: 'Kad Pengenalan',
|
||||
confirmButtonText: 'Terima',
|
||||
showCancelButton:true,
|
||||
cancelButtonText:'Batal',
|
||||
allowOutsideClick: true,
|
||||
inputValidator: (value) => {
|
||||
if (!value) {
|
||||
return 'Isikan tempat kosong diatas!'
|
||||
|
||||
const swalWithBootstrapButtons = Swal.mixin({
|
||||
customClass: {
|
||||
confirmButton: 'btn btn-success ml-1',
|
||||
cancelButton: 'btn btn-danger'
|
||||
},
|
||||
buttonsStyling: false
|
||||
});
|
||||
|
||||
swalWithBootstrapButtons.fire({
|
||||
title: 'Dapatkan Pengesahan Khazanah',
|
||||
text: "Ubah Maklumat Wakil",
|
||||
icon: 'info',
|
||||
showCancelButton: true,
|
||||
confirmButtonText: 'Hantar',
|
||||
cancelButtonText: 'Batal',
|
||||
reverseButtons: true
|
||||
}).then((result) => {
|
||||
if (result.isConfirmed) {
|
||||
|
||||
Swal.fire({
|
||||
title: 'Tunggu Pengesahan Daripada Khazanah.',
|
||||
icon: 'info',
|
||||
width: 600,
|
||||
padding: '3em',
|
||||
background: '#fffff',
|
||||
showCancelButton: false,
|
||||
showConfirmButton: false,
|
||||
allowOutsideClick: false,
|
||||
allowEscapeKey: false,
|
||||
allowEnterKey: false
|
||||
})
|
||||
|
||||
let mohon = "Ubah Wakil";
|
||||
let norujukan = $('input[name="sudahtebus"]:checked').val();
|
||||
|
||||
// console.log(mohon + ' ' + norujukan);
|
||||
|
||||
$.ajax({
|
||||
method:'post',
|
||||
url: '{{ route("teller.createkelulusan") }}',
|
||||
data: {
|
||||
"_token": "{{ csrf_token() }}",
|
||||
"norujukan" : norujukan,
|
||||
"mohon" : mohon
|
||||
},
|
||||
success:function(data){
|
||||
|
||||
},error: function(xhr, status, error) {
|
||||
var err = eval("(" + xhr.responseText + ")");
|
||||
alert(xhr.responseText);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
var pusher = new Pusher("{{ env('PUSHER_APP_KEY') }}", {
|
||||
cluster: 'ap1',
|
||||
encrypted: true
|
||||
});
|
||||
|
||||
var channel = pusher.subscribe('notice-ubahhapus');
|
||||
channel.bind('my-ubahhapus', function(data) {
|
||||
|
||||
if(data.norujukan == norujukan)
|
||||
{
|
||||
if(data.kelulusan == 'lulus')
|
||||
{
|
||||
Swal.fire({
|
||||
icon: 'success',
|
||||
title: 'Telah Disahkan'
|
||||
}).then(async function(){
|
||||
|
||||
const { value: amaun } = await Swal.fire({
|
||||
title: 'Kad Pengenalan Wakil',
|
||||
input: 'text',
|
||||
inputPlaceholder: 'Kad Pengenalan',
|
||||
confirmButtonText: 'Terima',
|
||||
showCancelButton:true,
|
||||
cancelButtonText:'Batal',
|
||||
allowOutsideClick: true,
|
||||
inputValidator: (value) => {
|
||||
if (!value) {
|
||||
return 'Isikan tempat kosong diatas!'
|
||||
}
|
||||
|
||||
if(value <= 0){
|
||||
return 'Masukkan No Kad Pengenalan yang betul!';
|
||||
}
|
||||
|
||||
if(isNaN(value))
|
||||
{
|
||||
return 'Kad Pengenalan hendaklah dalam bentuk nombor!'
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if(amaun)
|
||||
{
|
||||
$.ajax({
|
||||
method:'get',
|
||||
url: api_url + '/api/getwakil/' + kodcaw + '/' + amaun,
|
||||
success:function(data){
|
||||
|
||||
if(data.length > 0)
|
||||
{
|
||||
let namawakilsedia = data[0]['nama'];
|
||||
let nokpwakilsedia = data[0]['nokp'];
|
||||
let nowakilsedia = data[0]['nowakil'];
|
||||
|
||||
const PengesahanAkhirWakil = Swal.mixin({
|
||||
customClass: {
|
||||
confirmButton: 'btn btn-success ml-1',
|
||||
cancelButton: 'btn btn-danger'
|
||||
},
|
||||
buttonsStyling: false
|
||||
});
|
||||
|
||||
PengesahanAkhirWakil.fire({
|
||||
title: 'Pengesahan Akhir Wakil!',
|
||||
html: '<b class="text-danger">' + namawakilsedia + '</b><br><b class="text-danger">' + nokpwakilsedia + '</b>',
|
||||
icon: 'info',
|
||||
showCancelButton: true,
|
||||
confirmButtonText: 'Benar',
|
||||
cancelButtonText: 'Salah',
|
||||
reverseButtons: true
|
||||
}).then((result) => {
|
||||
if (result.isConfirmed) {
|
||||
|
||||
$.ajax({
|
||||
method:'put',
|
||||
async:false,
|
||||
url: api_url + '/api/ubahwakil/' + kodcaw,
|
||||
data:{ 'nowakil' : nowakilsedia,
|
||||
'norujukan' : norujukan},
|
||||
success:function(data){
|
||||
|
||||
if(data === 1)
|
||||
{
|
||||
Swal.fire({
|
||||
icon: 'success',
|
||||
title: 'Berjaya!',
|
||||
text: 'Penukaran Wakil berjaya'
|
||||
}).then(async function(){
|
||||
return true;
|
||||
location.reload();
|
||||
});
|
||||
}else{
|
||||
Swal.fire({
|
||||
icon: 'info',
|
||||
title: 'Pemberitahuan!',
|
||||
text: 'Wakil telah didaftarkan dengan IC tersebut!'
|
||||
}).then(async function(){
|
||||
return true;
|
||||
location.reload();
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
}else if (result.dismiss === Swal.DismissReason.cancel){
|
||||
PengesahanAkhirWakil.fire(
|
||||
'Batal',
|
||||
'Tidak Berjaya Mengesahkan Wakil!',
|
||||
'error'
|
||||
)
|
||||
}
|
||||
});
|
||||
|
||||
}else{
|
||||
Swal.fire({
|
||||
allowOutsideClick: false,
|
||||
allowEscapeKey: false,
|
||||
allowEnterKey: false,
|
||||
confirmButtonText: '<i class="fa fa-thumbs-up"></i> Daftar Wakil!',
|
||||
icon: 'info',
|
||||
title: 'Maklumat anda tiada dalam senarai wakil! Tekan button Daftar untuk mendaftar!'
|
||||
}).then(function(){
|
||||
daftarwakilfunction(amaun,norujukan);
|
||||
});
|
||||
}
|
||||
},error: function(xhr, status, error) {
|
||||
var err = eval("(" + xhr.responseText + ")");
|
||||
alert(xhr.responseText);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
else if(data.kelulusan == 'batal')
|
||||
{
|
||||
Swal.fire({
|
||||
icon: 'warning',
|
||||
title: 'Telah Dibatalkan',
|
||||
text: `Komen : ${data.komen}`
|
||||
}).then(function(){
|
||||
// $("#terima_gadai").prop('disabled', false);
|
||||
return false;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
}else if (result.dismiss === Swal.DismissReason.cancel){
|
||||
swalWithBootstrapButtons.fire(
|
||||
'Batal',
|
||||
'Tidak Berjaya Mendapatkan Pengesahan Khazanah',
|
||||
'error'
|
||||
)
|
||||
}
|
||||
|
||||
if(value <= 0){
|
||||
return 'Masukkan No Kad Pengenalan yang betul!';
|
||||
}
|
||||
|
||||
if(isNaN(value))
|
||||
{
|
||||
return 'Kad Pengenalan hendaklah dalam bentuk nombor!'
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if(amaun)
|
||||
{
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,12 @@
|
||||
|
||||
|
||||
@php
|
||||
$gadai_session = Http::get($api_url . '/api/check/sag',['kodcaw'=>$cawangan_info['kodcaw'],'norujukan'=>$norujukan,'nokp'=>$customer_info['kpbaru']])->json();
|
||||
if($customer_info['kpbaru'] != null){
|
||||
$noic = $customer_info['kpbaru'];
|
||||
}else{
|
||||
$noic = $customer_info['kplama'];
|
||||
}
|
||||
$gadai_session = Http::get($api_url . '/api/check/sag',['kodcaw'=>$cawangan_info['kodcaw'],'norujukan'=>$norujukan,'nokp'=>$noic])->json();
|
||||
@endphp
|
||||
|
||||
@if($gadai_session != null)
|
||||
|
||||
@@ -23,10 +23,14 @@
|
||||
@csrf
|
||||
<div class="col-12 text-center">
|
||||
<div class="row">
|
||||
<div class="row col-6">
|
||||
<div class="row col-6">
|
||||
<label class="col-6">Pengurus Cawangan:</label>
|
||||
<input type="text" class="form-control col-6" readonly name="pc" id="pc" value="{{ $pc['name'] }}"/>
|
||||
<input type="text" class="form-control col-6" hidden name="pc_id" id="pc_id" value="{{ $pc['id'] }}"/>
|
||||
@if($pc != null)
|
||||
<input type="text" class="form-control col-6" readonly name="pc" id="pc" value="{{ $pc['name'] }}"/>
|
||||
<input type="text" class="form-control col-6" hidden name="pc_id" id="pc_id" value="{{ $pc['id'] }}"/>
|
||||
@else
|
||||
<input type="text" class="form-control col-6" readonly name="pc" id="pc" value="Tiada Pengurus Cawangan"/>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="row col-6">
|
||||
@@ -44,8 +48,12 @@
|
||||
<div class="row">
|
||||
<div class="row col-6">
|
||||
<label class="col-6">Pen. Peng. Cawangan:</label>
|
||||
<input type="text" class="form-control col-6" readonly name="ppc" id="ppc" value="{{ $ppc['name'] }}"/>
|
||||
<input type="text" class="form-control col-6" hidden name="ppc_id" id="ppc_id" value="{{ $ppc['id'] }}"/>
|
||||
@if($ppc != null)
|
||||
<input type="text" class="form-control col-6" readonly name="ppc" id="ppc" value="{{ $ppc['name'] }}"/>
|
||||
<input type="text" class="form-control col-6" hidden name="ppc_id" id="ppc_id" value="{{ $ppc['id'] }}"/>
|
||||
@else
|
||||
<input type="text" class="form-control col-6" readonly name="pc" id="pc" value="Tiada Penolong Pengurus Cawangan"/>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="row col-6">
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
<a href="{{ route('laporan.ansuran') }}" class="btn btn-dark btn-lg btn-block mb-3">Ansuran</a>
|
||||
</div>
|
||||
<div class="row">
|
||||
<a href="{{ route('stokaudit.laporancetak') }}" class="btn btn-dark btn-lg btn-block mb-3">Stok Audit</a>
|
||||
<a href="{{ route('laporan.stokaudit') }}" class="btn btn-dark btn-lg btn-block mb-3">Stok Audit</a>
|
||||
</div>
|
||||
<div class="row">
|
||||
<a href="{{ route('ringkasanharian.laporancetak') }}" class="btn btn-dark btn-lg btn-block mb-3">Ringkasan Harian</a>
|
||||
|
||||
@@ -19,14 +19,15 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="hidden" id="nopelanggan"/>
|
||||
<input type="hidden" id="nopelangganwakil"/>
|
||||
<input type="hidden" id="norujukanwakil"/>
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-4">
|
||||
<label>No KP</label>
|
||||
</div>
|
||||
<div class="col-7">
|
||||
<input type="text" class="form-control" id="nokp" name="nokp" readonly/>
|
||||
<input type="text" class="form-control" id="nokpwakil" name="nokpwakil" readonly/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -35,7 +36,7 @@
|
||||
<label>Nama</label>
|
||||
</div>
|
||||
<div class="col-8">
|
||||
<input type="text" class="form-control" id="nama" name="nama"/>
|
||||
<input type="text" class="form-control" id="namawakil" name="namawakil"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -45,7 +46,7 @@
|
||||
<label>Alamat</label>
|
||||
</div>
|
||||
<div class="col-8">
|
||||
<input type="text" class="form-control" id="alamat" name="alamat"/>
|
||||
<input type="text" class="form-control" id="alamatwakil" name="alamatwakil"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -54,7 +55,7 @@
|
||||
<label>No Tel</label>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<input type="text" class="form-control" id="notel" name="notel"/>
|
||||
<input type="text" class="form-control" id="notelwakil" name="notelwakil"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -63,7 +64,7 @@
|
||||
<label>Nota</label>
|
||||
</div>
|
||||
<div class="col-8">
|
||||
<input type="text" class="form-control" name="nota" id="nota"/>
|
||||
<input type="text" class="form-control" name="notawakil" id="notawakil"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1970,7 +1970,8 @@
|
||||
allowEnterKey: false,
|
||||
confirmButtonText: '<i class="fa fa-thumbs-up"></i> Baik Boss!',
|
||||
icon: 'success',
|
||||
title: 'Maklumat Anda Berjaya Direkodkan!'
|
||||
title: 'Maklumat Anda Berjaya Direkodkan!',
|
||||
html: '<b class="text-danger">' + data.nama + '</b><br><b class="text-danger">' + data.nokp + '</b>'
|
||||
});
|
||||
nw = data.nowakil;
|
||||
|
||||
@@ -1997,14 +1998,14 @@
|
||||
|
||||
function daftarwakil()
|
||||
{
|
||||
let nopelanggan = $('#nopelanggan').val();
|
||||
let nopelanggan = $('#nopelangganwakil').val();
|
||||
let nowakil = $('#nowakil').val();
|
||||
let nama = $('#nama').val();
|
||||
let nama = $('#namawakil').val();
|
||||
let hubungan = $('#slthubungan').val();
|
||||
let alamat = $('#alamat').val();
|
||||
let telefon = $('#notel').val();
|
||||
let nota = $('#nota').val();
|
||||
let nokp = $('#nokp').val();
|
||||
let alamat = $('#alamatwakil').val();
|
||||
let telefon = $('#notelwakil').val();
|
||||
let nota = $('#notawakil').val();
|
||||
let nokp = $('#nokpwakil').val();
|
||||
|
||||
|
||||
$.ajax({
|
||||
@@ -2052,7 +2053,7 @@
|
||||
|
||||
function daftarfunction(id)
|
||||
{
|
||||
$('#nokp').val(id);
|
||||
$('#nokpwakil').val(id);
|
||||
|
||||
$.ajax({
|
||||
method:'GET',
|
||||
@@ -2061,9 +2062,9 @@
|
||||
success:function(data){
|
||||
|
||||
$('#WakilModal').modal();
|
||||
$('#nama').val('');
|
||||
$('#alamat').val(data['']);
|
||||
$('#notel').val(data['']);
|
||||
$('#namawakil').val('');
|
||||
$('#alamatwakil').val(data['']);
|
||||
$('#notelwakil').val(data['']);
|
||||
|
||||
//get first wakil
|
||||
$.ajax({
|
||||
@@ -2079,10 +2080,10 @@
|
||||
|
||||
if(data != 'no-data')
|
||||
{
|
||||
$('#nama').val(data['nama']);
|
||||
$('#alamat').val(data['alamat1']);
|
||||
$('#notel').val(data['telefon']);
|
||||
$('#nopelanggan').val(data['nopelanggan']);
|
||||
$('#namawakil').val(data['nama']);
|
||||
$('#alamatwakil').val(data['alamat1']);
|
||||
$('#notelwakil').val(data['telefon']);
|
||||
$('#nopelangganwakil').val(data['nopelanggan']);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -409,7 +409,7 @@ hr.new5 {
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td> <b>Tempoh Simpan</b></td><td>:<b> {{ $gadai['tempoh'] }}</b> </td>
|
||||
<td colspan="3">No K/P </td> <td>: @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp </td> <td colspan="3"> </td> <td> </td><td> </td><td> <b>Tempoh Simpan</b></td><td>:<b> {{ $gadai['tempoh'] }}</b> </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@@ -503,7 +503,7 @@ hr.new5 {
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td> <b>Tempoh Simpan</b></td><td>:<b> {{ $gadai['tempoh'] }}</b> </td>
|
||||
<td colspan="3">No K/P </td> <td>: @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp </td> <td colspan="3"> </td> <td> </td><td> </td><td> <b>Tempoh Simpan</b></td><td>:<b> {{ $gadai['tempoh'] }}</b> </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
||||
@@ -409,7 +409,7 @@ hr.new5 {
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td> Tempoh Simpan</td><td>: {{ $gadai['jbg'] }} </td>
|
||||
<td colspan="3">No K/P </td> <td>: @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp </td> <td colspan="3"> </td> <td> </td><td> </td><td> Tempoh Simpan</td><td>: {{ $gadai['jbg'] }} </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@@ -503,7 +503,7 @@ hr.new5 {
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td> Tempoh Simpan</td><td>: {{ $gadai['jbg'] }} </td>
|
||||
<td colspan="3">No K/P </td> <td>: @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp </td> <td colspan="3"> </td> <td> </td><td> </td><td> Tempoh Simpan</td><td>: {{ $gadai['jbg'] }} </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
||||
@@ -409,7 +409,7 @@ hr.new5 {
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td>: <b>Tempoh Simpan</b></td><td> <b>{{ $gadai['tempoh'] }}</b> </td>
|
||||
<td colspan="3">No K/P </td> <td>: @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp </td> <td colspan="3"> </td> <td> </td><td> </td><td>: <b>Tempoh Simpan</b></td><td> <b>{{ $gadai['tempoh'] }}</b> </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@@ -506,7 +506,7 @@ hr.new5 {
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td>: <b>Tempoh Simpan</b></td><td> <b>{{ $gadai['tempoh'] }}</b> </td>
|
||||
<td colspan="3">No K/P </td> <td>: @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp </td> <td colspan="3"> </td> <td> </td><td> </td><td>: <b>Tempoh Simpan</b></td><td> <b>{{ $gadai['tempoh'] }}</b> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">Nama Wakil </td> <td>: @php if(sizeof($wakil) != 0){ echo $wakil['nama'];} else echo ''; @endphp </td> <td colspan="3"> </td> <td> </td><td> </td><td> </td><td> </td>
|
||||
|
||||
@@ -410,7 +410,7 @@ hr.new5 {
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td><b> Tempoh Simpan</b></td><td>:<b> {{ $gadai['tempoh'] }} </b></td>
|
||||
<td colspan="3">No K/P </td> <td>: @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp</td> <td colspan="3"> </td> <td> </td><td> </td><td><b> Tempoh Simpan</b></td><td>:<b> {{ $gadai['tempoh'] }} </b></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@@ -510,7 +510,7 @@ hr.new5 {
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> <t/d> <td> </td><td> </td><td><b> Tempoh Simpan</b></td><td>:<b> {{ $gadai['tempoh'] }} </b></td>
|
||||
<td colspan="3">No K/P </td> <td>: @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp </td> <td colspan="3"> <t/d> <td> </td><td> </td><td><b> Tempoh Simpan</b></td><td>:<b> {{ $gadai['tempoh'] }} </b></td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
@@ -414,7 +414,7 @@ hr.new5 {
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td><b> Tempoh Simpan</b></td><td>:<b> {{ $gadai['jbg'] }} </b></td>
|
||||
<td colspan="3">No K/P </td> <td>: @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp </td> <td colspan="3"> </td> <td> </td><td> </td><td><b> Tempoh Simpan</b></td><td>:<b> {{ $gadai['jbg'] }} </b></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@@ -506,7 +506,7 @@ hr.new5 {
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> <t/d> <td> </td><td> </td><td><b> Tempoh Simpan</b></td><td>:<b> {{ $gadai['jbg'] }} </b></td>
|
||||
<td colspan="3">No K/P </td> <td>: @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp </td> <td colspan="3"> <t/d> <td> </td><td> </td><td><b> Tempoh Simpan</b></td><td>:<b> {{ $gadai['jbg'] }} </b></td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
@@ -410,7 +410,7 @@ hr.new5 {
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td><b> Tempoh Simpan</b></td><td>:<b> {{ $gadai['tempoh'] }} </b></td>
|
||||
<td colspan="3">No K/P </td> <td>: @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp </td> <td colspan="3"> </td> <td> </td><td> </td><td><b> Tempoh Simpan</b></td><td>:<b> {{ $gadai['tempoh'] }} </b></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@@ -513,7 +513,7 @@ hr.new5 {
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> <t/d> <td> </td><td> </td><td><b> Tempoh Simpan</b></td><td>:<b> {{ $gadai['tempoh'] }} </b></td>
|
||||
<td colspan="3">No K/P </td> <td>: @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp </td> <td colspan="3"> <t/d> <td> </td><td> </td><td><b> Tempoh Simpan</b></td><td>:<b> {{ $gadai['tempoh'] }} </b></td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
@@ -410,7 +410,7 @@ hr.new5 {
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td> Tempoh Simpan</td><td>: {{ $gadai['jbg'] }} </td>
|
||||
<td colspan="3">No K/P </td> <td>: @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp </td> <td colspan="3"> </td> <td> </td><td> </td><td> Tempoh Simpan</td><td>: {{ $gadai['jbg'] }} </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@@ -505,7 +505,7 @@ hr.new5 {
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">No K/P </td> <td>: {{ $customers_info['kpbaru'] }} </td> <td colspan="3"> <t/d> <td> </td><td> </td><td> Tempoh Simpan</td><td>: {{ $gadai['jbg`'] }} </td>
|
||||
<td colspan="3">No K/P </td> <td>: @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp </td> <td colspan="3"> <t/d> <td> </td><td> </td><td> Tempoh Simpan</td><td>: {{ $gadai['jbg`'] }} </td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
@@ -818,6 +818,7 @@
|
||||
<td colspan="20"> </td><td><div align="right"> Tandatangan </div></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class='page-break'> </div>
|
||||
|
||||
<div class="grid-container">
|
||||
|
||||
Reference in New Issue
Block a user