add login role
This commit is contained in:
@@ -122,7 +122,7 @@
|
||||
gadai_detail['t_gadai'],
|
||||
'RM '+formatter.format(gadai_detail['pinjaman']),
|
||||
'RM '+ formatter.format(gadai_detail['nilaimarhun']),
|
||||
'0',
|
||||
gadai_detail['jbg'],
|
||||
'RM '+ formatter.format((gadai_detail['kadarupah']/100)*gadai_detail['pinjaman']*gadai_detail['tempoh']),
|
||||
gadai_detail['t_matang'],
|
||||
(((Number(gadai_detail['pinjaman'])/Number(gadai_detail['nilaimarhun']))*100).toFixed(2)).toLocaleString("en-GB") + '%',
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
<input type="hidden" name="kodcaw" id="kodcaw" value="{{$cawangan_info['kodcaw']}}">
|
||||
<input type="hidden" name="nokp" id="nokp" value="{{ $customer_info['kpbaru'] }}">
|
||||
<input type="hidden" name="jantina" id="jantina" value="{{ $customer_info['jantina'] }}">
|
||||
<input type="hidden" name="bangsa" id="bangsa" value="{{ $customer_info['bangsa'] }}">
|
||||
<div class="col-4">
|
||||
Nama
|
||||
</div>
|
||||
@@ -247,7 +246,7 @@
|
||||
|
||||
$.ajax({
|
||||
method:'GET',
|
||||
url:'http://localhost:8000/api/jemas/'+ $('#kodcaw').val(),
|
||||
url:'http://localhost:8000/api/jemas',
|
||||
success:function(data){
|
||||
$.each(data,function(index,jemas){
|
||||
$("#marhun").append(new Option(jemas['descpt'], jemas['marhun']));
|
||||
@@ -362,10 +361,10 @@
|
||||
success:function(data){
|
||||
$.each(data,function(index,pinjaman){
|
||||
if(pinjaman['user_type'] == 'teller'){
|
||||
pinjaman_teller = pinjaman['max'];
|
||||
pinjaman_teller = Number(pinjaman['max']);
|
||||
}
|
||||
if(pinjaman['user_type'] == 'ppc'){
|
||||
pinjaman_pelulus = pinjaman['max'];
|
||||
pinjaman_pelulus = Number(pinjaman['max']);
|
||||
}
|
||||
});
|
||||
$('.span-pinjaman-max-pelulus').text(pinjaman_pelulus + ' %');
|
||||
@@ -375,10 +374,8 @@
|
||||
var max_teller = total_nilai_marhun * (pinjaman_teller/100);
|
||||
var max_pelulus = total_nilai_marhun * (pinjaman_pelulus/100);
|
||||
|
||||
|
||||
|
||||
$('#pinjaman_max_teller').val(formatter.format(max_teller.toFixed(2)));
|
||||
$('#pinjaman_max_pelulus').val(formatter.format(max_pelulus.toFixed(2)));
|
||||
$('#pinjaman_max_teller').val(max_teller.toFixed(2));
|
||||
$('#pinjaman_max_pelulus').val(max_pelulus.toFixed(2));
|
||||
}
|
||||
|
||||
$('#pinjaman').change(function(){
|
||||
@@ -395,7 +392,7 @@
|
||||
var upah_sebulan = pinjaman * kadarupah;
|
||||
var upah_6bln = upah_sebulan * 6;
|
||||
|
||||
percent_pinjaman = Number(pinjaman)/Number(total_nilai_marhun);
|
||||
percent_pinjaman = (Number(pinjaman)/Number(total_nilai_marhun))*100;
|
||||
|
||||
$('.span-pinjaman').text(percent_pinjaman.toFixed(2) + ' %');
|
||||
$('#upah_sebulan').val(formatter.format(upah_sebulan.toFixed(2)));
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
<div class="card">
|
||||
<div class="card-header">{{ __('Dashboard') }}</div>
|
||||
|
||||
<div class="card-body text-center">
|
||||
Khazanah
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -0,0 +1,17 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
<div class="card">
|
||||
<div class="card-header">{{ __('Dashboard') }}</div>
|
||||
|
||||
<div class="card-body text-center">
|
||||
Operasi
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -0,0 +1,17 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
<div class="card">
|
||||
<div class="card-header">{{ __('Dashboard') }}</div>
|
||||
|
||||
<div class="card-body text-center">
|
||||
Penilai
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user