Merge branch 'pipi' into 'master'
fix all the bug See merge request online-sistem1/kaunter!43
This commit is contained in:
@@ -136,7 +136,7 @@ class GadaianController extends Controller
|
||||
'recno' => $request->recno,
|
||||
'karat' => $request->sltkarat,
|
||||
'berat' => $request->berat,
|
||||
'harga' => $request->harga,
|
||||
'harga' => $request->harga1,
|
||||
'n_marhun' => $request->nilaimarhun
|
||||
|
||||
])->json();
|
||||
@@ -186,7 +186,7 @@ class GadaianController extends Controller
|
||||
|
||||
public function editstore(Request $request){
|
||||
$auth_user = Auth::user();
|
||||
// dd($request);
|
||||
|
||||
$total_nilai_marhun = $request->total_nilai_marhun;
|
||||
$total_nilai_marhun = str_replace(',','',$total_nilai_marhun);
|
||||
|
||||
@@ -270,12 +270,37 @@ class GadaianController extends Controller
|
||||
$norujukan = $request->norujukan_modal;
|
||||
$auth_user = Auth::user();
|
||||
$api_url = config('api.url');
|
||||
$cetak_sag = Http::put(config('api.url').'/api/gadai/norujukan/cetak/'.$auth_user['cawangan'].'/'.$norujukan,[
|
||||
'penilai' => $auth_user['name']
|
||||
]);
|
||||
|
||||
$gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $auth_user['cawangan'] .'/' .$norujukan)->json();
|
||||
$gadai_detail = $gadai[0];
|
||||
|
||||
if(isset($request->jenisprint))
|
||||
{
|
||||
|
||||
$cetak_sag = Http::put(config('api.url').'/api/gadai/norujukan/cetak/'.$auth_user['cawangan'].'/'.$norujukan,[
|
||||
'penilai' => $auth_user['name']
|
||||
]);
|
||||
|
||||
$getTunai2=Http::get(config('api.url').'/api/GetCurrentTunai/'.$auth_user['cawangan'] . '/' . $gadai_detail['teller'])->json();
|
||||
|
||||
$keluar=$getTunai2['keluar'];
|
||||
$baki=$getTunai2['baki'];
|
||||
$masuk=$getTunai2['masuk'];
|
||||
$totalkeluar = 0;
|
||||
$bakiakhir = 0;
|
||||
|
||||
$totalkeluar = $gadai_detail['pinjaman'] + $keluar;
|
||||
|
||||
$bakiakhir = $baki - $gadai_detail['pinjaman'];
|
||||
|
||||
//masuk dalam tunai aliran
|
||||
$updateTunai=Http::put( config('api.url').'/api/updateTunaiGT/'.$auth_user['cawangan'].'/'.$gadai_detail['teller'], [
|
||||
'keluar'=>$totalkeluar,
|
||||
'masuk'=>$masuk,
|
||||
'bakiakhir'=>$bakiakhir
|
||||
]);
|
||||
|
||||
}
|
||||
$customer = Http::get(config('api.url') . '/api/customers/'. $gadai_detail['nokp'])->json();
|
||||
$customer_detail = $customer[0];
|
||||
|
||||
|
||||
@@ -251,10 +251,53 @@ class KhazanahController extends Controller
|
||||
$api_url = config('api.url');
|
||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
|
||||
//declare array baru
|
||||
$arraykelulusan = [];
|
||||
|
||||
$kelulusan = Http::get(config('api.url') . '/api/SenaraiKelulusan/' . $auth_user['cawangan'])->json();
|
||||
$kelulusanmohonid = Http::get(config('api.url') . '/api/GetLulusAll/' . $auth_user['cawangan'])->json();
|
||||
|
||||
return view('khazanah.kelulusan',compact('cawangan_info','api_url','kelulusan','kelulusanmohonid'));
|
||||
foreach($kelulusan as $index=>$k)
|
||||
{
|
||||
$komen = explode("|",$k['komen']);
|
||||
|
||||
$results=array_search("",$komen,true);
|
||||
if($results !== false) {
|
||||
unset($komen[$results]);
|
||||
}
|
||||
|
||||
array_push($arraykelulusan,['norujukan' => $k['norujukan'], 'pinjaman' => $k['jumpinj'], 'nilaimarhun' => ($komen[1] ?? '-'), 'berat' => ($komen[2] ?? '-'),'margin' => ($komen[3] ?? '-'), 'komen' => ($komen[0] ?? '-'), 'pelulus' => $k['pelulus']]);
|
||||
}
|
||||
|
||||
return view('khazanah.kelulusan',compact('cawangan_info','api_url','arraykelulusan','kelulusanmohonid'));
|
||||
|
||||
}
|
||||
|
||||
public function kelulusanrekodlepas()
|
||||
{
|
||||
$auth_user = Auth::user();
|
||||
$api_url = config('api.url');
|
||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
|
||||
//declare array baru
|
||||
$arraykelulusan = [];
|
||||
|
||||
$kelulusan = Http::get(config('api.url') . '/api/RekodDahLepas/' . $auth_user['cawangan'])->json();
|
||||
$kelulusanmohonid = Http::get(config('api.url') . '/api/GetLulusAll/' . $auth_user['cawangan'])->json();
|
||||
|
||||
foreach($kelulusan as $index=>$k)
|
||||
{
|
||||
$komen = explode("|",$k['komen']);
|
||||
|
||||
$results=array_search("",$komen,true);
|
||||
if($results !== false) {
|
||||
unset($komen[$results]);
|
||||
}
|
||||
|
||||
array_push($arraykelulusan,['norujukan' => $k['norujukan'], 'pinjaman' => $k['jumpinj'], 'nilaimarhun' => ($komen[1] ?? '-'), 'berat' => ($komen[2] ?? '-'),'margin' => ($komen[3] ?? '-'), 'komen' => ($komen[0] ?? '-'), 'pelulus' => $k['pelulus'],]);
|
||||
}
|
||||
|
||||
return view('khazanah.rekodtelahlulus',compact('cawangan_info','api_url','arraykelulusan','kelulusanmohonid'));
|
||||
|
||||
}
|
||||
|
||||
@@ -328,24 +371,21 @@ class KhazanahController extends Controller
|
||||
$auth_user = Auth::user();
|
||||
$api_url = config('api.url');
|
||||
|
||||
$current = Carbon::now();
|
||||
$current = new Carbon();
|
||||
|
||||
$norujukan = $request->norujukan;
|
||||
|
||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
|
||||
$createlulus = Http::post(config('api.url') . '/api/CreateKelulusan/' . $auth_user['cawangan'] . '/' . $norujukan . '/roles/khazanah', [
|
||||
'komen' => "Pembiayaan Melebihi Margin 70%",
|
||||
'dategadai' => "2020-12-12",
|
||||
'komen' => $request->komen,
|
||||
'dategadai' => $current->toDateString(),
|
||||
'bilgadai' => 1,
|
||||
'jumpinjam' => 1020,
|
||||
'jumpinjam' => $request->jumpinjam,
|
||||
'jenistebus' => "G",
|
||||
'teller' => "dsaas",
|
||||
'teller' => $request->teller,
|
||||
'pelulus' => "khazanah"
|
||||
// 'komen' => $request->komen,
|
||||
// 'dategadai' => $dategadai,
|
||||
// 'bilgadai' => $bilgadai,
|
||||
// 'jumpinjam' => $request->jumpinjam,
|
||||
// 'jenistebus' => "G",
|
||||
// 'teller' => $request->teller
|
||||
])->json();
|
||||
|
||||
event(new StatusLiked($auth_user['cawangan'],$auth_user['name']));
|
||||
@@ -449,7 +489,9 @@ class KhazanahController extends Controller
|
||||
public function barcodescanned(Request $request){
|
||||
$auth_user = Auth::user();
|
||||
$gadai = Http::put(config('api.url').'/api/gadai/serah_marhun/khazanah/'. $auth_user['cawangan'] .'/' . $request->norujukan_barcode)->json();
|
||||
|
||||
|
||||
|
||||
event(new NotifikasiPembayaran('TellerkepadaKhazanah'));
|
||||
|
||||
return redirect()->route('khazanah.gadaian');
|
||||
@@ -1335,4 +1377,86 @@ class KhazanahController extends Controller
|
||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
return view('khazanah.unjuran',compact('cawangan_info','api_url'));
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function laporanAging_Bulanan()//added by fariz 2021-01-19
|
||||
{
|
||||
$auth_user = Auth::user();
|
||||
$api_url = config('api.url');
|
||||
|
||||
|
||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
return view('khazanah.laporan.agingbulanan',compact('cawangan_info','api_url'));
|
||||
}
|
||||
|
||||
|
||||
public function cetaklaporang_Aging(Request $request) //added by fariz 2021-01-19
|
||||
{
|
||||
|
||||
|
||||
$auth_user = Auth::user();
|
||||
$api_url = config('api.url');
|
||||
$tarikh_aging=$request;
|
||||
// dd($tarikh_aging);
|
||||
$num=$request->num;
|
||||
$current = Carbon::now();
|
||||
$current = new Carbon();
|
||||
|
||||
|
||||
if($request->datetimepicker1 == null){
|
||||
$tebus_date = $current->toDateString();
|
||||
}else
|
||||
{
|
||||
$split_date = explode('-',$request->datetimepicker1);
|
||||
$tarikh_aging = $split_date[2] . '-' . $split_date[1] . '-' . $split_date[0];
|
||||
}
|
||||
|
||||
$num1=$request->num1;
|
||||
$num2=$request->num2;
|
||||
$num3=$request->num3;
|
||||
$num4=$request->num4;
|
||||
|
||||
$num5=$request->num5;
|
||||
$num6=$request->num6;
|
||||
$num7=$request->num7;
|
||||
$num8=$request->num8;
|
||||
|
||||
$num9=$request->num9;
|
||||
$num10=$request->num10;
|
||||
$num11=$request->num11;
|
||||
$num12=$request->num12;
|
||||
$num13=$request->num13;
|
||||
|
||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
|
||||
$cawangan=Http::get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
|
||||
$cawangan_detail=$cawangan[0];
|
||||
|
||||
|
||||
$data=Http::get(config('api.url').'/api/gadai/aging/test/'.$auth_user['cawangan'].'/'.$tarikh_aging.'/'.$num1)->json();
|
||||
$data_2=Http::get(config('api.url').'/api/gadai/aging/test/'.$auth_user['cawangan'].'/'.$tarikh_aging.'/'.$num2)->json();
|
||||
$data_3=Http::get(config('api.url').'/api/gadai/aging/test/'.$auth_user['cawangan'].'/'.$tarikh_aging.'/'.$num3)->json();
|
||||
|
||||
|
||||
$data_4=Http::get(config('api.url').'/api/gadai/aging/test/'.$auth_user['cawangan'].'/'.$tarikh_aging.'/'.$num4)->json();
|
||||
$data_5=Http::get(config('api.url').'/api/gadai/aging/test/'.$auth_user['cawangan'].'/'.$tarikh_aging.'/'.$num5)->json();
|
||||
$data_6=Http::get(config('api.url').'/api/gadai/aging/test/'.$auth_user['cawangan'].'/'.$tarikh_aging.'/'.$num6)->json();
|
||||
$data7=Http::get(config('api.url').'/api/gadai/aging/test/'.$auth_user['cawangan'].'/'.$tarikh_aging.'/'.$num7)->json();
|
||||
$data_8=Http::get(config('api.url').'/api/gadai/aging/test/'.$auth_user['cawangan'].'/'.$tarikh_aging.'/'.$num8)->json();
|
||||
$data_9=Http::get(config('api.url').'/api/gadai/aging/test/'.$auth_user['cawangan'].'/'.$tarikh_aging.'/'.$num9)->json();
|
||||
$data_10=Http::get(config('api.url').'/api/gadai/aging/test/'.$auth_user['cawangan'].'/'.$tarikh_aging.'/'.$num10)->json();
|
||||
$data_11=Http::get(config('api.url').'/api/gadai/aging/test/'.$auth_user['cawangan'].'/'.$tarikh_aging.'/'.$num11)->json();
|
||||
$data_12=Http::get(config('api.url').'/api/gadai/aging/test/'.$auth_user['cawangan'].'/'.$tarikh_aging.'/'.$num12)->json();
|
||||
$data_13=Http::get(config('api.url').'/api/gadai/aging/lebih12bulan/'.$auth_user['cawangan'].'/'.$tarikh_aging)->json();
|
||||
|
||||
|
||||
|
||||
$data2=Http::get(config('api.url').'/api/gadai/JumlahagingBulanan/test/'.$auth_user['cawangan'].'/'.$tarikh_aging)->json();
|
||||
|
||||
|
||||
return view('print.laporan_aging_bulanan', compact('cawangan_info', 'api_url','cawangan_detail','data','data2','data_2','data_3','data_4','data_5',
|
||||
'data_6','data7','data_8','data_9','data_10','data_11','data_12','data_13','tarikh_aging'));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -11,6 +11,8 @@ use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
|
||||
use Carbon\Carbon;
|
||||
|
||||
class OperasiController extends Controller
|
||||
{
|
||||
public function __construct()
|
||||
@@ -24,14 +26,26 @@ class OperasiController extends Controller
|
||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
|
||||
$kelulusan = Http::get(config('api.url') . '/api/ListOperasi/')->json();
|
||||
|
||||
$arraykelulusan = [];
|
||||
|
||||
|
||||
|
||||
if(sizeof($kelulusan) != 0)
|
||||
foreach($kelulusan as $index=>$lulus)
|
||||
{
|
||||
$kelulusan = $kelulusan[0];
|
||||
foreach($lulus['kelulusanall'] as $index=>$kel)
|
||||
{
|
||||
$komen = explode("|",$kel['komen']);
|
||||
|
||||
$results=array_search("",$komen,true);
|
||||
if($results !== false) {
|
||||
unset($komen[$results]);
|
||||
}
|
||||
|
||||
array_push($arraykelulusan,["cawangan" => $lulus['cawangan'], "cawangankod" => $lulus['cawangankod'], "norujukan" => $kel['norujukan'], 'pinjaman' => $kel['jumpinj'], 'nilaimarhun' => ($komen[1] ?? '-'), 'berat' => ($komen[2] ?? '-'),'margin' => ($komen[3] ?? '-'), 'komen' => ($komen[0] ?? '-'), 'pelulus' => $kel['pelulus']]);
|
||||
}
|
||||
}
|
||||
|
||||
return view('operasi.kelulusan',compact('cawangan_info','api_url','kelulusan'));
|
||||
return view('operasi.kelulusan',compact('cawangan_info','api_url','arraykelulusan'));
|
||||
}
|
||||
|
||||
public function getkelulusan(Request $request)
|
||||
@@ -80,24 +94,22 @@ class OperasiController extends Controller
|
||||
$auth_user = Auth::user();
|
||||
$api_url = config('api.url');
|
||||
|
||||
$current = Carbon::now();
|
||||
$current = new Carbon();
|
||||
|
||||
$norujukan = $request->norujukan;
|
||||
|
||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
|
||||
$createlulus = Http::post(config('api.url') . '/api/CreateKelulusan/' . $auth_user['cawangan'] . '/' . $norujukan . '/roles/operasi', [
|
||||
'komen' => "Pembiayaan Melebihi Margin 75%",
|
||||
'dategadai' => "2020-12-12",
|
||||
'komen' => $request->komen,
|
||||
'dategadai' => $current->toDateString(),
|
||||
'bilgadai' => 1,
|
||||
'jumpinjam' => 1020,
|
||||
'jumpinjam' => $request->jumpinjam,
|
||||
'jenistebus' => "G",
|
||||
'teller' => "dsaas",
|
||||
'teller' => $request->teller,
|
||||
'peloperasi' => "operasi"
|
||||
// 'komen' => $request->komen,
|
||||
// 'dategadai' => $dategadai,
|
||||
// 'bilgadai' => $bilgadai,
|
||||
// 'jumpinjam' => $request->jumpinjam,
|
||||
// 'jenistebus' => "G",
|
||||
// 'teller' => $request->teller
|
||||
|
||||
])->json();
|
||||
|
||||
event(new StatusLiked($auth_user['cawangan'],$auth_user['name']));
|
||||
|
||||
@@ -405,7 +405,7 @@ class PenebusanController extends Controller
|
||||
}
|
||||
|
||||
|
||||
//Wakil Function - Jangan kacau saya nak makan kacang ni!!!!!!
|
||||
//Wakil Function - Jangan kacau saya nak makan kacang ni!!
|
||||
|
||||
public function getfirstWakil()
|
||||
{
|
||||
@@ -438,8 +438,7 @@ class PenebusanController extends Controller
|
||||
$auth_user = Auth::user();
|
||||
|
||||
$createwakil = Http::post(config('api.url') . '/api/createwakil/'. $auth_user['cawangan'] . '/' . $request->icno,[
|
||||
|
||||
|
||||
|
||||
'nopelanggan' => $request->nopelanggan,
|
||||
'nowakil' => $request->nowakil,
|
||||
'nama' => $request->nama,
|
||||
|
||||
@@ -63,9 +63,9 @@
|
||||
<div class="col-lg-4 col-md-6 col-sm-12">
|
||||
<div class="small-box bg-danger">
|
||||
<div class="inner">
|
||||
{{-- <h3>RM {{ number_format($GT['gjumlah'],2) }}</h3> --}}
|
||||
<h3>{{ $GT['gcount'] }}</h3>
|
||||
<p>Bilangan Gadaian</p>
|
||||
<h3>RM {{ number_format($alirantunai['keluar'],2) }}</h3>
|
||||
{{-- <h3>{{ $GT['gcount'] }}</h3> --}}
|
||||
<p>Jumlah Gadaian</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="ion ion-android-contacts"></i>
|
||||
@@ -75,9 +75,9 @@
|
||||
<div class="col-lg-4 col-md-6 col-sm-12">
|
||||
<div class="small-box bg-danger">
|
||||
<div class="inner">
|
||||
{{-- <h3>RM {{ number_format($GT['tjumlah'],2) }}</h3> --}}
|
||||
<h3>{{ $GT['tcount'] }}</h3>
|
||||
<p>Bilangan Penebusan</p>
|
||||
<h3>RM {{ number_format($alirantunai['masuk'],2) }}</h3>
|
||||
{{-- <h3>{{ $GT['tcount'] }}</h3> --}}
|
||||
<p>Jumlah Penebusan</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="ion ion-pie-graph"></i>
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
||||
<form id="kemaskiniform">
|
||||
<div class='row form-group'>
|
||||
<div class='col-md-6'>
|
||||
@@ -719,31 +720,6 @@
|
||||
let hapusidsudah = $('input[name="sudahtebus"]:checked').val();
|
||||
let harini = new Date();harini.setHours(0, 0, 0, 0);
|
||||
|
||||
if($("input[name='options']:checked").val() == 'belum_tebus'){
|
||||
let test1 = $('input[name="belum"]:checked').closest('tr').children('td:eq(2)').text();
|
||||
let tarikhgadai2 = new Date(test1);tarikhgadai2.setHours(0, 0, 0, 0);
|
||||
if(+harini !== +tarikhgadai2){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran',
|
||||
text: 'Hapu Gadai Tidak Dibenarkan'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
}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);
|
||||
|
||||
if(+harini !== +tarikhgadai1){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran',
|
||||
text: 'Hapu Gadai Tidak Dibenarkan'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if(hapusid == null && $("input[name='options']:checked").val() == 'belum_tebus'){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
@@ -760,6 +736,31 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
if($("input[name='options']:checked").val() == 'belum_tebus'){
|
||||
let test1 = $('input[name="belum"]:checked').closest('tr').children('td:eq(2)').text();
|
||||
let tarikhgadai2 = new Date(test1);tarikhgadai2.setHours(0, 0, 0, 0);
|
||||
if(+harini !== +tarikhgadai2){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran',
|
||||
text: 'Hapus Gadai Tidak Dibenarkan'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
}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);
|
||||
|
||||
// if(+harini !== +tarikhgadai1){
|
||||
// Swal.fire({
|
||||
// icon: 'error',
|
||||
// title: 'Amaran',
|
||||
// text: 'Hapus Gadai Tidak Dibenarkan'
|
||||
// });
|
||||
// return false;
|
||||
// }
|
||||
}
|
||||
|
||||
const swalWithBootstrapButtons = Swal.mixin({
|
||||
customClass: {
|
||||
confirmButton: 'btn btn-success',
|
||||
@@ -817,7 +818,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
//TIME INTERVAL
|
||||
//TIME INTERVAL
|
||||
let timerInterval;
|
||||
|
||||
timerInterval = setInterval(function(){
|
||||
|
||||
@@ -20,32 +20,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group row">
|
||||
<div class="col-md-4">
|
||||
Jumlah Pembiayaan Semasa
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
@php
|
||||
$outstanding_semasa = Http::get($api_url . '/api/gadai/customers/'. $customer_info['kpbaru'] .'/outstandingsemasa')->json();
|
||||
@endphp
|
||||
<input type="text" class="form-control" name="pinjaman_semasa" id="pinjaman_semasa" readonly value="{{ number_format($outstanding_semasa,2) }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group row">
|
||||
<div class="col-md-4">
|
||||
Limit Pembiayaan Semasa
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<input type="text" class="form-control" name="limit_pinjaman" id="limit_pinjaman" readonly value="{{ $limit_pinjaman_semasa }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 text-right mb-2">
|
||||
<button type="button" style="margin:auto" id="daft" class="btn btn-primary" data-toggle="modal" data-target="#daftar_marhun">Daftar Marhun</button>
|
||||
<button type="button" style="margin:auto" class="btn btn-primary" data-toggle="modal" data-target="#daftar_marhun">Daftar Marhun</button>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
@@ -120,8 +97,7 @@
|
||||
<div class="col-7 input-group">
|
||||
<input type="text" class="form-control" name="pinjaman" value="{{ $gadaiannorujukan['pinjaman'] }}" id="pinjaman">
|
||||
<div class="input-group-append">
|
||||
@php $percentpinjam = ($gadaiannorujukan['pinjaman']/$gadaiannorujukan['nilaimarhun'])*100; @endphp
|
||||
<span class="input-group-text span-pinjaman">{{ number_format((float)$percentpinjam,2) }}%</span>
|
||||
<span class="input-group-text span-pinjaman"></span>
|
||||
</div>
|
||||
</div>
|
||||
</diV>
|
||||
@@ -156,8 +132,8 @@
|
||||
<input type="text" name="kadarkeuntungan" id="kadarkeuntungan" value="" hidden>
|
||||
<input type="text" name="kuantiti_marhun" id="kuantiti_marhun" value="" hidden>
|
||||
<input type="text" name="total_nilai_marhun" id="total_nilai_marhun" value="" hidden>
|
||||
{{-- <a href="{{ route('customer_info') }}" class="float-right btn btn-danger mr-2">Batal</a> --}}
|
||||
<a href="{{ route('gadai.batalmarhun',['norujukan'=>$norujukan]) }}" class="float-right btn btn-danger mr-2">Batal</a>
|
||||
<a href="{{ route('customer_info') }}" class="float-right btn btn-danger mr-2">Batal</a>
|
||||
{{-- <a href="{{ route('gadai.batalmarhun',['norujukan'=>$norujukan]) }}" class="float-right btn btn-danger mr-2">Batal</a> --}}
|
||||
<input type="submit" name="terima_gadai" id="terima_gadai" class="float-right btn btn-primary mr-2" value="Terima">
|
||||
</div>
|
||||
</div>
|
||||
@@ -206,7 +182,7 @@
|
||||
<div class="col-md-4">Berat</div>
|
||||
<div class="col-md-8"><input class="form-control" type="text" name="berat_emas" id="berat_emas"></div>
|
||||
<div class="col-md-4">Harga</div>
|
||||
<div class="col-md-8"><input class="form-control" type="text" name="harga" id="harga" readonly></div>
|
||||
<div class="col-md-8"><input class="form-control .harga" type="text" name="harga" id="harga" readonly></div>
|
||||
<div class="col-md-4">Nilai Marhun</div>
|
||||
<div class="col-md-8"><input class="form-control" type="text" name="nilai_marhun" id="nilai_marhun" readonly></div>
|
||||
<div class="col-md-4">Bilangan Marhun</div>
|
||||
@@ -249,6 +225,30 @@
|
||||
|
||||
function disableF5(e) { if ((e.which || e.keyCode) == 116) e.preventDefault(); };
|
||||
$(document).ready( function () {
|
||||
|
||||
|
||||
$.ajax({
|
||||
method: 'get',
|
||||
url: api_url + '/api/marhun/' + "{{ $norujukan }}",
|
||||
success:function(data)
|
||||
{
|
||||
let count = 0;
|
||||
let jumlah = 0;
|
||||
$.each(data,function(index,marhun)
|
||||
{
|
||||
$.each(marhun,function(index,mar)
|
||||
{
|
||||
jumlah += Number(mar['n_marhun']);
|
||||
count++;
|
||||
})
|
||||
})
|
||||
|
||||
$('#bilangan_marhun').val(count);
|
||||
$('#jumlah_nilai_marhun').val(formatter.format(jumlah));
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on("keydown", disableF5);
|
||||
var norujukan = $('#norujukan').val();
|
||||
getMarhun(norujukan);
|
||||
@@ -289,6 +289,7 @@
|
||||
var karat = this.value;
|
||||
karat = karat.replace(/\./g,'-');
|
||||
var berat = $('#berat_emas').val();
|
||||
alert(karat);
|
||||
getHargaEmas(karat,berat)
|
||||
});
|
||||
|
||||
@@ -315,10 +316,15 @@
|
||||
method:'GET',
|
||||
url: api_url + '/api/harga_emas/'+karat,
|
||||
success:function(data){
|
||||
|
||||
|
||||
var nilai_marhun = data['harga'] * berat;
|
||||
$('#harga').val(data['harga']);
|
||||
$('#harga').val(formatter.format(data['harga']));
|
||||
|
||||
$('#nilai_marhun').val(formatter.format(nilai_marhun));
|
||||
},error: function(xhr, status, error) {
|
||||
var err = eval("(" + xhr.responseText + ")");
|
||||
alert(err.Message);
|
||||
console.log(err.Message);
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -354,6 +360,7 @@
|
||||
var jumlah_nilai_marhun = 0;
|
||||
function marhuntable(data){
|
||||
var counter = 1;
|
||||
var count = 0;
|
||||
total_nilai_marhun = 0;
|
||||
total_berat = 0;
|
||||
var marhun_details = '';
|
||||
@@ -372,12 +379,20 @@
|
||||
formatter.format(marhun_detail['berat']),
|
||||
marhun_detail['nota'],
|
||||
marhun_detail['harga'],
|
||||
"<button onclick='editmarhun(this)' class='btn btn-primary'><i class='fas fa-edit'></i></button> <button onclick='deletemarhun(this)' class='btn btn-danger'><i class='fas fa-trash-alt'></i></button>"
|
||||
"<div class='buttonpunya text-center'><button onclick='editmarhun(this)' class='btn btn-primary'><i class='fas fa-edit'></i></button> <button onclick='deletemarhun(this)' class='btn btn-danger'><i class='fas fa-trash-alt'></i></button></div>"
|
||||
]).draw();
|
||||
|
||||
count++;
|
||||
counter = counter + 1;
|
||||
});
|
||||
});
|
||||
|
||||
if (count == 1)
|
||||
{
|
||||
$('.buttonpunya').html("<button onclick='editmarhun(this)' class='btn btn-primary'><i class='fas fa-edit'></i></button>");
|
||||
}
|
||||
|
||||
|
||||
if(total_nilai_marhun > 0 && total_nilai_marhun < 401){
|
||||
kadarupah = 1.25/100;
|
||||
}else if(total_nilai_marhun >= 401 && total_nilai_marhun < 2001){
|
||||
@@ -391,6 +406,14 @@
|
||||
$('#kadarkeuntungan').val(formatter.format(kadarupah));
|
||||
$('#kuantiti_marhun').val(formatter.format(jumlah_marhun));
|
||||
|
||||
let perpinjam = ($('#pinjaman').val()/total_nilai_marhun)*100;
|
||||
let keuntungan_sebulan = $('#pinjaman').val() * kadarupah;
|
||||
let keuntungan_6bln = keuntungan_sebulan * 6;
|
||||
|
||||
$('.span-pinjaman').text(formatter.format(perpinjam.toFixed(2)) + ' %');
|
||||
$('#keuntungan_sebulan').val(formatter.format(keuntungan_sebulan.toFixed(2)));
|
||||
$('#keuntungan_6bln').val(formatter.format(keuntungan_6bln.toFixed(2)));
|
||||
|
||||
$.ajax({
|
||||
method:'GET',
|
||||
url: api_url + '/api/maxpinjaman',
|
||||
@@ -448,30 +471,28 @@
|
||||
|
||||
$('#sltkarat').val(karat);
|
||||
$('#berat').val(berat);
|
||||
$('#nilaimarhun').val(nm);
|
||||
$('#harga').val(harga);
|
||||
$('#nilaimarhun').val(nm.substring(2));
|
||||
$('#harga1').val(harga);
|
||||
$('#norujukedit').val(norujuk);
|
||||
$('#recno').val(recno[1]);
|
||||
$('#editMarhunModal').modal();
|
||||
}
|
||||
|
||||
// $( "#daft" ).one( "click", function() {
|
||||
// alert( "This will be displayed only once." );
|
||||
// });
|
||||
|
||||
$("#sltkarat").change(function(e){
|
||||
|
||||
let hargaref = $(this).find(':selected').data('harga');
|
||||
|
||||
$('#berat').attr('readonly', false);
|
||||
$('#harga').val(hargaref);
|
||||
let ber = parseFloat($('#berat').val());
|
||||
let total = ber * hargaref;
|
||||
// $('#berat').attr('readonly', false);
|
||||
$('#nilaimarhun').val(total.toFixed(2));
|
||||
$('#harga1').val(hargaref);
|
||||
});
|
||||
|
||||
function calculationharga(e)
|
||||
{
|
||||
let berat = $(e).val();
|
||||
let total = 0;
|
||||
let harga = $('#harga').val();
|
||||
let harga = $('#harga1').val();
|
||||
|
||||
total = berat * harga;
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@include('modal.editmarhun')
|
||||
|
||||
@section('content')
|
||||
@php
|
||||
$gadai_session = Http::get($api_url . '/api/check/sag',['kodcaw'=>$cawangan_info['kodcaw'],'norujukan'=>$norujukan,'nokp'=>$customer_info['kpbaru']])->json();
|
||||
@@ -38,11 +40,14 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
<th>Recno</th>
|
||||
<th>Marhun</th>
|
||||
<th>Nilai Marhun</th>
|
||||
<th>Karat</th>
|
||||
<th>Berat</th>
|
||||
<th>Nota</th>
|
||||
<th>Harga</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
@@ -300,7 +305,19 @@
|
||||
}
|
||||
|
||||
var tablemarhun = $('#myTable').DataTable({
|
||||
"ordering": false
|
||||
"ordering": false,
|
||||
"columnDefs": [
|
||||
{
|
||||
"targets": [ 1 ],
|
||||
"visible": false,
|
||||
"searchable": false
|
||||
},
|
||||
{
|
||||
"targets": [ 7 ],
|
||||
"visible": false,
|
||||
"searchable": false
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
$(".select2").select2({
|
||||
@@ -329,11 +346,14 @@
|
||||
marhun_details = marhun_details + marhun_detail['bil'] + " " + marhun_detail['marhun'] +",";
|
||||
tablemarhun.row.add([
|
||||
counter,
|
||||
marhun_detail['recno'],
|
||||
marhun_detail['marhun'],
|
||||
'RM ' + formatter.format(marhun_detail['n_marhun']),
|
||||
marhun_detail['karat'],
|
||||
formatter.format(marhun_detail['berat']),
|
||||
marhun_detail['nota']
|
||||
marhun_detail['nota'],
|
||||
marhun_detail['harga'],
|
||||
"<div class='buttonpunya text-center'><button onclick='editmarhun(this)' class='btn btn-primary'><i class='fas fa-edit'></i></button> <button onclick='deletemarhun(this)' class='btn btn-danger'><i class='fas fa-trash-alt'></i></button></div>"
|
||||
]).draw();
|
||||
counter = counter + 1;
|
||||
});
|
||||
@@ -666,6 +686,10 @@
|
||||
if (result.isConfirmed) {
|
||||
|
||||
let norujukan = $('#norujukan').val();
|
||||
let nm = $('#total_nilai_marhun').val();let ber = $('#total_berat').val();let marg = $('.span-pinjaman').text();
|
||||
let komen = "Pembiayaan Melebihi Margin 75%|" + nm + "|" + ber + "|" + marg + "|";
|
||||
let jumpinjam = $('#pinjaman').val();
|
||||
let teller = "{{ Auth::user()->name }}";
|
||||
|
||||
Swal.fire({
|
||||
title: 'Tunggu Pengesahan Daripada Operasi.',
|
||||
@@ -685,7 +709,10 @@
|
||||
url: "{{ route('operasi.createkelulusan') }}",
|
||||
data: {
|
||||
"_token": "{{ csrf_token() }}",
|
||||
"norujukan" : norujukan
|
||||
"norujukan" : norujukan,
|
||||
"komen" : komen,
|
||||
"jumpinjam" : jumpinjam,
|
||||
"teller" : teller
|
||||
},
|
||||
success:function(data){
|
||||
console.log(data);
|
||||
@@ -705,6 +732,7 @@
|
||||
url: "{{ route('operasi.getkelulusan') }}",
|
||||
data: {
|
||||
"norujukan" : norujukan
|
||||
|
||||
},
|
||||
success:function(data){
|
||||
if(data != ''){
|
||||
@@ -756,6 +784,10 @@
|
||||
if (result.isConfirmed) {
|
||||
|
||||
let norujukan = $('#norujukan').val();
|
||||
let nm = $('#total_nilai_marhun').val();let ber = $('#total_berat').val();let marg = $('.span-pinjaman').text();
|
||||
let komen = "Pembiayaan Melebihi Margin 70%|" + nm + "|" + ber + "|" + marg + "|";
|
||||
let jumpinjam = $('#pinjaman').val();
|
||||
let teller = "{{ Auth::user()->name }}";
|
||||
|
||||
Swal.fire({
|
||||
title: 'Tunggu Pengesahan Daripada Khazanah.',
|
||||
@@ -775,7 +807,10 @@
|
||||
url: "{{ route('khazanah.createkelulusan') }}",
|
||||
data: {
|
||||
"_token": "{{ csrf_token() }}",
|
||||
"norujukan" : norujukan
|
||||
"norujukan" : norujukan,
|
||||
"komen" : komen,
|
||||
"jumpinjam" : jumpinjam,
|
||||
"teller" : teller
|
||||
},
|
||||
success:function(data){
|
||||
console.log(data);
|
||||
@@ -844,5 +879,67 @@
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function deletemarhun(e)
|
||||
{
|
||||
let marhun = $(e).closest('tr').children('td:eq(1)').text();let selectedrow = $(e).closest('tr');let recnozz = tablemarhun.row(selectedrow).data();
|
||||
let norujuk = $('#norujukan').val();
|
||||
|
||||
$.ajax({
|
||||
method: 'put',
|
||||
url: '{{ route("gadai.editmarhun") }}',
|
||||
data: {
|
||||
"_token": "{{ csrf_token() }}",
|
||||
"norujukan" : norujuk,
|
||||
"recno" : recnozz[1]
|
||||
},
|
||||
success:function(data)
|
||||
{
|
||||
console.log(data);
|
||||
location.reload();
|
||||
},error: function(xhr, status, error) {
|
||||
var err = eval("(" + xhr.responseText + ")");
|
||||
alert(xhr.responseText);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function editmarhun(e)
|
||||
{
|
||||
let norujuk = $('#norujukan').val();let selectedrow = $(e).closest('tr');let recno = tablemarhun.row(selectedrow).data();
|
||||
let nm = recno[3];let karat = recno[4];let berat = recno[5];
|
||||
let harga = recno[7];
|
||||
|
||||
|
||||
$('#sltkarat').val(karat);
|
||||
$('#berat').val(berat);
|
||||
$('#nilaimarhun').val(nm.substring(2));
|
||||
$('#harga1').val(harga);
|
||||
$('#norujukedit').val(norujuk);
|
||||
$('#recno').val(recno[1]);
|
||||
$('#editMarhunModal').modal();
|
||||
}
|
||||
|
||||
$("#sltkarat").change(function(e){
|
||||
let hargaref = $(this).find(':selected').data('harga');
|
||||
let ber = parseFloat($('#berat').val());
|
||||
let total = ber * hargaref;
|
||||
$('#nilaimarhun').val(total.toFixed(2));
|
||||
$('#harga1').val(hargaref);
|
||||
});
|
||||
|
||||
function calculationharga(e)
|
||||
{
|
||||
let berat = $(e).val();
|
||||
let total = 0;
|
||||
let harga = $('#harga1').val();
|
||||
|
||||
total = berat * harga;
|
||||
|
||||
$('#nilaimarhun').val(total.toFixed(2));
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
<div class="col-md-12 text-center">
|
||||
<form target="_blank" action="{{ route('printsag') }}" id="print_submit" method="post">
|
||||
@csrf
|
||||
<input hidden value="gadaiansemasa" name="jenisprint">
|
||||
<input type="text" hidden name="norujukan_modal" id="norujukan_modal">
|
||||
<input type="text" hidden name="pinjaman_modal" id="pinjaman_modal">
|
||||
<input type="submit" class="btn btn-primary" id="cetak_sag" value="Cetak SAG">
|
||||
@@ -79,6 +80,20 @@
|
||||
<tbody id="belum_serah">
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="row form-group">
|
||||
<div class="col-md-12 text-center">
|
||||
<form target="_blank" action="{{ route('printsag') }}" id="print_submit_belum_serah" method="post">
|
||||
@csrf
|
||||
<input type="text" hidden name="norujukan_modal" id="norujukan_modal1">
|
||||
<input type="text" hidden name="pinjaman_modal" id="pinjaman_modal1">
|
||||
<input type="button" class="btn btn-primary" id="cetak_sag_belum_serah" value="Cetak SAG">
|
||||
</form>
|
||||
</div>
|
||||
<!-- <div class="col-md-6">
|
||||
<button class="btn btn-primary" id="pembelian_komuditi">Pembelian Komuditi</button>
|
||||
<a href="" id="pembelian_komuditi" class="btn btn-primary">Pembelian Komuditi</a>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Modal footer -->
|
||||
@@ -178,7 +193,7 @@
|
||||
@php
|
||||
$marhun = Http::get($api_url . '/api/marhun/' . $gadaian['norujukan'] )->json();
|
||||
@endphp
|
||||
<a href="#" data-toggle="modal" data-marhun="{{ json_encode($marhun) }}" data-norujukan="{{$gadaian['norujukan']}}" data-hargajualan="{{$gadaian['hargajualan']}}" data-kodcaw="{{ $gadaian['kodcaw'] }}" data-target="#belum_serah_modal"> {{$gadaian['norujukan']}}</a>
|
||||
<a href="#" data-toggle="modal" data-marhun="{{ json_encode($marhun) }}" data-pinjaman="{{$gadaian['pinjaman']}}" data-norujukan="{{$gadaian['norujukan']}}" data-hargajualan="{{$gadaian['hargajualan']}}" data-kodcaw="{{ $gadaian['kodcaw'] }}" data-target="#belum_serah_modal"> {{$gadaian['norujukan']}}</a>
|
||||
</td>
|
||||
<td>{{ number_format($gadaian['pinjaman'],2) }}</td>
|
||||
<td>{{ number_format($gadaian['nilaimarhun'],2) }}</td>
|
||||
@@ -269,7 +284,10 @@
|
||||
var hargajualan = button.data('hargajualan');
|
||||
var pinjaman = button.data('pinjaman');
|
||||
|
||||
$('#tablemarhun').empty();
|
||||
$('#norujukan_modal1').val(norujukan);
|
||||
$('#pinjaman_modal1').val(pinjaman);
|
||||
|
||||
$('#belum_serah').empty();
|
||||
$.each(arraymarhun,function(index,marhun){
|
||||
$.each(marhun, function(index2,marhun_detail){
|
||||
var marhun_name;
|
||||
@@ -331,5 +349,105 @@
|
||||
$("#btn-serah").prop('disabled', true);
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('click', '#cetak_sag_belum_serah', function(e) {
|
||||
|
||||
let norujukan = $('#norujukan_modal1').val();
|
||||
let mohon = "Print SAG";
|
||||
|
||||
|
||||
const swalWithBootstrapButtons = Swal.mixin({
|
||||
customClass: {
|
||||
confirmButton: 'btn btn-success ml-1',
|
||||
cancelButton: 'btn btn-danger'
|
||||
},
|
||||
buttonsStyling: false
|
||||
});
|
||||
|
||||
swalWithBootstrapButtons.fire({
|
||||
title: 'Dapatkan Pengesahan Daripada Khazanah?',
|
||||
text: "Cetak SAG Semula!",
|
||||
icon: 'info',
|
||||
showCancelButton: true,
|
||||
confirmButtonText: 'Setuju!',
|
||||
cancelButtonText: 'Batal',
|
||||
reverseButtons: true
|
||||
}).then((result) => {
|
||||
if(result.isConfirmed) {
|
||||
Swal.fire({
|
||||
title: 'Tunggu Pengesahan Daripada Khazanah.',
|
||||
icon: 'info',
|
||||
width: 600,
|
||||
padding: '6em',
|
||||
background: '#fffff',
|
||||
showCancelButton: false,
|
||||
showConfirmButton: false,
|
||||
allowOutsideClick: false,
|
||||
allowEscapeKey: false,
|
||||
allowEnterKey: false
|
||||
})
|
||||
|
||||
|
||||
$.ajax({
|
||||
method:'post',
|
||||
url: '{{ route("teller.createkelulusan") }}',
|
||||
data: {
|
||||
"_token" : "{{ csrf_token() }}",
|
||||
"norujukan" : norujukan,
|
||||
"mohon" : mohon
|
||||
},
|
||||
success:function(data){
|
||||
console.log("created");
|
||||
|
||||
},error: function(xhr, status, error) {
|
||||
var err = eval("(" + xhr.responseText + ")");
|
||||
alert(xhr.responseText);
|
||||
console.log(err);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
//TIME INTERVAL
|
||||
let timerInterval;
|
||||
|
||||
timerInterval = setInterval(function(){
|
||||
$.ajax({
|
||||
method:'get',
|
||||
url: "{{ route('teller.getkelulusan') }}",
|
||||
data: {
|
||||
"norujukan" : norujukan
|
||||
},
|
||||
success:function(data){
|
||||
console.log(data);
|
||||
if(data != 0){
|
||||
console.log('berjaya');
|
||||
clearInterval(timerInterval);
|
||||
Swal.fire({
|
||||
icon: 'success',
|
||||
title: 'Anda Berjaya Menerima Pengesahan'
|
||||
}).then(function(){
|
||||
$("#print_submit_belum_serah").submit();
|
||||
});
|
||||
}
|
||||
},error: function(xhr, status, error) {
|
||||
var err = eval("(" + xhr.responseText + ")");
|
||||
alert(xhr.responseText);
|
||||
}
|
||||
});
|
||||
|
||||
}, 3000);
|
||||
|
||||
|
||||
}else if (result.dismiss === Swal.DismissReason.cancel) {
|
||||
swalWithBootstrapButtons.fire(
|
||||
'Cancelled',
|
||||
'Your imaginary file is safe :)',
|
||||
'error'
|
||||
)
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
@@ -0,0 +1,142 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
<div class="card-header">{{ __('Laporan Aging Bulanan') }}</div>
|
||||
|
||||
<div class="card-body text-center">
|
||||
<div class="row form-group">
|
||||
<div class="col-md-2">
|
||||
<a href="{{ route('laporan') }}" class="ion-backspace" style="font-size:50px;color:blue;"></a>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<h3>Laporan Aging Bulanan </h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-5">
|
||||
<form action="{{ route('agingbulan.cetaklaporan') }}" target="_blank" method="post">
|
||||
@csrf
|
||||
<div class="input-group mb-3">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text" id="basic-addon1" >Tarikh</span>
|
||||
</div>
|
||||
<input type="text" class="form-control" placeholder="Pilih Tarikh" aria-label="Tarikh" id="datetimepicker1" name="datetimepicker1" autocomplete="off" aria-describedby="basic-addon1">
|
||||
<input type="hidden" id="num1" name="num1" value=1>
|
||||
<input type="hidden" id="num2" name="num2" value=2>
|
||||
<input type="hidden" id="num3" name="num3" value=3>
|
||||
<input type="hidden" id="num4" name="num4" value=4>
|
||||
<input type="hidden" id="num5" name="num5" value=5>
|
||||
|
||||
<input type="hidden" id="num6" name="num6" value=6>
|
||||
<input type="hidden" id="num7" name="num7" value=7>
|
||||
<input type="hidden" id="num8" name="num8" value=8>
|
||||
<input type="hidden" id="num9" name="num9" value=9>
|
||||
<input type="hidden" id="num10" name="num10" value=10>
|
||||
<input type="hidden" id="num11" name="num11" value=11>
|
||||
<input type="hidden" id="num12" name="num12" value=12>
|
||||
<input type="hidden" id="num13" name="num13" value=12>
|
||||
|
||||
|
||||
<input type="submit" class="btn btn-primary ml-md-5" id="submit_button" name="submit_button" value="Cetak">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<table class="" id="myTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
<th>Bil Gadaian</th>
|
||||
<th>Jumlah Pinjaman (RM)</th>
|
||||
<th>Peratusan %</th>
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
Bilangan Surat : <span id="bilangan_surat">3</span>
|
||||
Jumlah Pinjaman : <span id="jumlah_pinjaman">RM 3,000.00</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
var api_url = "<?php echo $api_url ?>";
|
||||
var kodcaw = "<?php echo $cawangan_info['kodcaw'] ?>";
|
||||
|
||||
var tablecustomers = $('#myTable').DataTable({
|
||||
"ordering": false
|
||||
});
|
||||
$(document).ready( function () {
|
||||
console.log('dsasa');
|
||||
$('#datetimepicker1').datepicker({
|
||||
format: 'dd-mm-yyyy'
|
||||
});
|
||||
var current = new Date();
|
||||
var current_date = current.getDate();
|
||||
var current_month = current.getMonth()+1;
|
||||
var current_year = current.getFullYear();
|
||||
var today_date = current_year + '-' +current_month+'-'+current_date;
|
||||
$.ajax({
|
||||
method:'get',
|
||||
url: api_url + '/api/marhun/laporan/'+kodcaw+'/' + today_date,
|
||||
success: function(customers){
|
||||
customertable(customers);
|
||||
},error: function(XMLHttpRequest, textStatus, errorThrown) {
|
||||
console.log(textStatus);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('#datetimepicker1').change(function(){
|
||||
var input_date = this.value;
|
||||
var split_date = input_date.split('-');
|
||||
var today_date = split_date[2] + '-' +split_date[1]+'-'+split_date[0];
|
||||
$.ajax({
|
||||
method:'get',
|
||||
url: api_url + '/api/marhun/laporan/'+kodcaw+'/' + today_date,
|
||||
success: function(customers){
|
||||
customertable(customers);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
function customertable(data){
|
||||
var counter = 1;
|
||||
tablecustomers.clear().draw();
|
||||
$.each(data,function(index,customers){
|
||||
|
||||
tablecustomers.row.add([
|
||||
counter,
|
||||
customers['norujukan'],
|
||||
customers['nokp'],
|
||||
customers['nama'],
|
||||
customers['marhun'],
|
||||
customers['nota'],
|
||||
customers['berat'],
|
||||
customers['karat'],
|
||||
customers['harga'],
|
||||
customers['n_marhun'],
|
||||
]).draw();
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
@@ -24,21 +24,23 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No Rujukan</th>
|
||||
<th>TARIKH</th>
|
||||
<th>Cawangan</th>
|
||||
<th>Permohonan</th>
|
||||
<th>Komen</th>
|
||||
<th>Nilai Pembiayaan</th>
|
||||
<th>Nilai Marhun</th>
|
||||
<th>Berat</th>
|
||||
<th>Margin</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($kelulusan as $index=>$k)
|
||||
@foreach($arraykelulusan as $index=>$k)
|
||||
<tr>
|
||||
<td>{{ $k['norujukan'] }}</td>
|
||||
<td>{{ $k['tarikh'] }}</td>
|
||||
<td>{{ $cawangan_info['details_caw'] }}</td>
|
||||
<td>{{ $k['norujukan'] }}</td>
|
||||
<td>{{ $k['komen'] }}</td>
|
||||
<td>{{ $k['pinjaman'] }}</td>
|
||||
<td>{{ $k['nilaimarhun'] }}</td>
|
||||
<td>{{ $k['berat'] }}</td>
|
||||
<td>{{ $k['margin'] }}</td>
|
||||
<td><button class="btn btn-primary mr-2" data-pelulus="{{ $k['pelulus'] }}" onclick="updatelulus(this)" data-norujukan="{{ $k['norujukan'] }}"><i class="fas fa-thumbs-up"></i></button>
|
||||
<button class="btn btn-danger"><i class="fas fa-thumbs-down"></i></button></td>
|
||||
</tr>
|
||||
@@ -47,10 +49,11 @@
|
||||
|
||||
<tr>
|
||||
<td>{{ $km['norujukan'] }}</td>
|
||||
<td>{{ $km['mohon'] }}</td>
|
||||
<td>{{ $km['tarikh'] }}</td>
|
||||
<td>{{ $cawangan_info['details_caw'] }}</td>
|
||||
<td>{{ $km['norujukan'] }}</td>
|
||||
<td>{{ $km['mohon'] }}</td>
|
||||
<td>{{ $km['norujukan'] }}</td>
|
||||
<td><button class="btn btn-primary mr-2" onclick="updatelulusmohon(this)" data-norujukan="{{ $km['norujukan'] }}"><i class="fas fa-thumbs-up"></i></button><button class="btn btn-danger"><i class="fas fa-thumbs-down"></i></button></td>
|
||||
</tr>
|
||||
|
||||
@@ -60,8 +63,7 @@
|
||||
|
||||
<div class="row mt-4 d-flex justify-content-center">
|
||||
|
||||
<a href="#" class="btn btn-info col-3">Kemaskini</a>
|
||||
<a href="#" class="btn btn-info ml-2 col-3">Rekod Telah Lulus</a>
|
||||
<a href="{{ route('khazanah.rekodlepas') }}" class="btn btn-info ml-2 col-3">Rekod Telah Lulus</a>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
<div class="card-header">{{ __('Dashboard') }}</div>
|
||||
|
||||
<div class="card-body text-center">
|
||||
|
||||
<div class="row mb-4">
|
||||
<div class="col-2 justify-content-start">
|
||||
<a href="{{ url('/kelulusan') }}" class="ion-backspace" style="font-size:50px;color:blue;"></a>
|
||||
</div>
|
||||
<div class="col-8 mt-3 justify-content-center">
|
||||
<h3>Kelulusan</h3>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table class='table mt-4' id='table-kelulusan' style="width:100%;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No Rujukan</th>
|
||||
<th>Komen</th>
|
||||
<th>Nilai Pembiayaan</th>
|
||||
<th>Nilai Marhun</th>
|
||||
<th>Berat</th>
|
||||
<th>Margin</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($arraykelulusan as $index=>$k)
|
||||
<tr>
|
||||
<td>{{ $k['norujukan'] }}</td>
|
||||
<td>{{ $k['komen'] }}</td>
|
||||
<td>{{ $k['pinjaman'] }}</td>
|
||||
<td>{{ $k['nilaimarhun'] }}</td>
|
||||
<td>{{ $k['berat'] }}</td>
|
||||
<td>{{ $k['margin'] }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@foreach($kelulusanmohonid as $index=>$km)
|
||||
|
||||
<tr>
|
||||
<td>{{ $km['norujukan'] }}</td>
|
||||
<td>{{ $km['mohon'] }}</td>
|
||||
<td>{{ $km['tarikh'] }}</td>
|
||||
<td>{{ $cawangan_info['details_caw'] }}</td>
|
||||
<td>{{ $km['norujukan'] }}</td>
|
||||
<td>{{ $km['norujukan'] }}</td>
|
||||
</tr>
|
||||
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
var tablekelulusan = $('#table-kelulusan').DataTable({
|
||||
"scrollX": true
|
||||
});
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
<div class="col-6 form-group row">
|
||||
<label class="col-4 ">Berat</label>
|
||||
<input type="text" name="berat" id="berat" onkeyup="calculationharga(this)" class="form-control col-8" readonly/>
|
||||
<input type="text" name="berat" id="berat" onkeyup="calculationharga(this)" class="form-control col-8" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
<div class="form-group row">
|
||||
<div class="col-6 form-group row">
|
||||
<label class="col-4">Harga</label>
|
||||
<input type="text" name="harga" id="harga" class="form-control col-8" readonly/>
|
||||
<input type="text" name="harga1" id="harga1" class="form-control col-8" readonly/>
|
||||
</div>
|
||||
|
||||
<div class="col-6 form-group row">
|
||||
|
||||
@@ -76,6 +76,17 @@
|
||||
<option value="Ibu">Ibu</option>
|
||||
<option value="Bapa">Bapa</option>
|
||||
<option value="Suami">Suami</option>
|
||||
<option value="Isteri">Isteri</option>
|
||||
<option value="Adik-Beradik">Adik-Beradik</option>
|
||||
<option value="Emak-Saudara">Emak-Saudara</option>
|
||||
<option value="Bapa-Saudara">Bapa-Saudara</option>
|
||||
<option value="Sepupu">Sepupu</option>
|
||||
<option value="Kawan">Kawan</option>
|
||||
<option value="Datuk">Datuk</option>
|
||||
<option value="Nenek">Nenek</option>
|
||||
<option value="Cucu">Cucu</option>
|
||||
<option value="Abang">Abang</option>
|
||||
<option value="Kakak">Kakak</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -17,38 +17,34 @@
|
||||
<h3>Kelulusan</h3>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
</div>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table class='table mt-4' id='table-kelulusan' style="width:100%;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No Rujukan</th>
|
||||
<th>TARIKH</th>
|
||||
<th>Cawangan</th>
|
||||
<th>Komen</th>
|
||||
<th>Nilai Pembiayaan</th>
|
||||
<th>Nilai Marhun</th>
|
||||
<th>Berat</th>
|
||||
<th>Margin</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php
|
||||
|
||||
if(sizeof($kelulusan) != 0)
|
||||
{
|
||||
$cawangan = $kelulusan['cawangan'];
|
||||
$kodcaw = $kelulusan['cawangankod'];
|
||||
$kelulusan = $kelulusan['kelulusanall'];
|
||||
}
|
||||
|
||||
@endphp
|
||||
|
||||
@foreach($kelulusan as $index=>$k)}
|
||||
@foreach($arraykelulusan as $index=>$k)
|
||||
{{-- {{ dd($k) }} --}}
|
||||
<tr>
|
||||
<td>{{ $k['norujukan'] }}</td>
|
||||
<td>{{ $k['tarikh'] }}</td>
|
||||
<td>{{ $cawangan }}</td>
|
||||
<td>{{ $k['cawangan'] }}</td>
|
||||
<td>{{ $k['komen'] }}</td>
|
||||
<td><button class="btn btn-primary mr-2" onclick="updatelulus(this)" data-kodcaw="{{ $kodcaw }}" data-norujukan="{{ $k['norujukan'] }}"><i class="fas fa-thumbs-up"></i></button><button class="btn btn-danger"><i class="fas fa-thumbs-down"></i></button></td>
|
||||
<td>{{ $k['pinjaman'] }}</td>
|
||||
<td>{{ $k['nilaimarhun'] }}</td>
|
||||
<td>{{ $k['berat'] }}</td>
|
||||
<td>{{ $k['margin'] }}</td>
|
||||
<td><button class="btn btn-primary mr-2" onclick="updatelulus(this)" data-kodcaw="{{ $k['cawangankod'] }}" data-norujukan="{{ $k['norujukan'] }}"><i class="fas fa-thumbs-up"></i></button><button class="btn btn-danger"><i class="fas fa-thumbs-down"></i></button></td>
|
||||
</tr>
|
||||
|
||||
@endforeach
|
||||
|
||||
@@ -104,6 +104,7 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php $count = 0; @endphp
|
||||
@foreach ($marhun as $index=>$m)
|
||||
<tr>
|
||||
<td><input type="checkbox" id="checkmarhun" data-recno="{{ $m['recno'] }}" data-nm="{{ $m['n_marhun'] }}" data-marhun="{{ $m['marhun'] }}" data-berat="{{ $m['berat'] }}" style="display:none;"/><span class="spannar">{{ $index+1 }}</span></td>
|
||||
@@ -116,6 +117,7 @@
|
||||
<td>{{ $m['karat'] }}</td>
|
||||
<td>RM {{ $m['harga'] }}</td>
|
||||
</tr>
|
||||
@php $count++; @endphp
|
||||
@endforeach
|
||||
</tbody>
|
||||
<tr>
|
||||
@@ -291,6 +293,21 @@ var array_nm = [];
|
||||
var array_marhun = [];
|
||||
var array_berat = [];
|
||||
|
||||
let bilangan_marhun = Number("{{ $count }}");
|
||||
|
||||
bilmarhun = () => {
|
||||
if(bilangan_marhun ==1)
|
||||
{
|
||||
$('option[value="S"]').attr("disabled", true);
|
||||
}
|
||||
else
|
||||
{
|
||||
$('option[value="S"]').attr("disabled", false);
|
||||
}
|
||||
}
|
||||
|
||||
bilmarhun();
|
||||
|
||||
var tarikhtawarruq = new Date("2021/01/01");
|
||||
var tarikhgadai = new Date("{{ $gadai['t_gadai'] }}");
|
||||
|
||||
@@ -752,11 +769,9 @@ function bayaransemua()
|
||||
var marhun = "{{ $gadai['marhun'] }}";
|
||||
var nowakil = nw;
|
||||
|
||||
alert(nw);
|
||||
return;
|
||||
|
||||
$.ajax({
|
||||
method:'put',
|
||||
datatype: 'json',
|
||||
url: api + '/api/updatetebus/' + kodcaw + '/' + norujukan,
|
||||
data:{
|
||||
"nopelanggan" : nopelanggan,
|
||||
@@ -775,9 +790,24 @@ function bayaransemua()
|
||||
"jenisbayarantebus" : jenisbayarantebus
|
||||
},
|
||||
success:function(success_data){
|
||||
|
||||
// $.ajax({
|
||||
// method: 'put',
|
||||
// datatype: 'json', ///////untuk kegunaaan aliran tunai penebusan je testing
|
||||
// url: api + '/api/',
|
||||
// data:{
|
||||
|
||||
// },
|
||||
// success:function(data)
|
||||
// {
|
||||
// success la
|
||||
// }
|
||||
// });
|
||||
|
||||
|
||||
Swal.fire({
|
||||
icon: 'success',
|
||||
title: 'Good job!',
|
||||
title: 'Berjaya!',
|
||||
text: 'You clicked the button!',
|
||||
footer: '<a href>Why do I have this issue?</a>'
|
||||
|
||||
@@ -1154,12 +1184,21 @@ function bayaransemua()
|
||||
jenisbayarantebus = "tawarruq";
|
||||
}
|
||||
|
||||
if( $('#tambahpinjam').val() <= 0 && $('#tambahpinjam').val() === '')
|
||||
{
|
||||
Swal.fire(
|
||||
'Amaran!',
|
||||
'Amaun hendaklah melebihi daripada 0',
|
||||
'error'
|
||||
)
|
||||
return false;
|
||||
}
|
||||
|
||||
if(parseFloat($('#basic-addon2').text()) > 70)
|
||||
if(parseFloat($('#basic-addon2').text()) > 80)
|
||||
{
|
||||
Swal.fire(
|
||||
'Amaran!',
|
||||
'Pinjaman Haruslah Dalam Lingkungan 70%!',
|
||||
'Pinjaman Haruslah Dalam Lingkungan 80%!',
|
||||
'error'
|
||||
)
|
||||
return false;
|
||||
|
||||
@@ -0,0 +1,398 @@
|
||||
|
||||
<style>
|
||||
#header {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#header td, #customers th {
|
||||
|
||||
padding:4px;
|
||||
font-size:10px;
|
||||
}
|
||||
|
||||
#header tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#header tr:hover {background-color: #ddd;}
|
||||
|
||||
#header th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
<style>
|
||||
#scan {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#scan td, #scan th {
|
||||
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
}
|
||||
|
||||
#scan tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#scan tr:hover {background-color: #ddd;}
|
||||
|
||||
#scan th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<style>
|
||||
#scan {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#scan td, #scan th {
|
||||
border-collapse: collapse;
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
}
|
||||
|
||||
#scan tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#scan tr:hover {background-color: #ddd;}
|
||||
|
||||
#scan th {
|
||||
border-collapse: collapse;
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
<style>
|
||||
#details {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
#details td, #details th {
|
||||
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
}
|
||||
|
||||
#details tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#details tr:hover {background-color: #ffffff;}
|
||||
|
||||
#details th {
|
||||
padding-top: 12px;
|
||||
font-style:bold;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
<style>
|
||||
#sign {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#sign td, #sign th {
|
||||
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#sign tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#sign tr:hover {background-color: #ddd;}
|
||||
|
||||
#sign th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
<style>
|
||||
#title {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
#title td, #title th {
|
||||
|
||||
padding:4px;
|
||||
font-size:12px;
|
||||
border: 0px solid #fff;
|
||||
}
|
||||
|
||||
#title tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#title tr:hover {background-color: #ddd;}
|
||||
|
||||
#title th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
|
||||
}
|
||||
</style>
|
||||
|
||||
<style>
|
||||
#details {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width:80%;
|
||||
|
||||
}
|
||||
|
||||
#details td, #details th {
|
||||
|
||||
padding:4px;
|
||||
font-size:12px;
|
||||
border: 0px solid #ddd;
|
||||
}
|
||||
|
||||
#details tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#details tr:hover {background-color: #ddd;}
|
||||
|
||||
#details th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<table id="header">
|
||||
<tr>
|
||||
<th rowspan="4" style="width:50px"><br><img src="{{ asset('img/ARRAHN1.png') }}" style="width:70px"></img></th>
|
||||
<th colspan="1">KOPERASI PERMODALAN KELANTAN BERHAD</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $cawangan_detail['namacaw'] }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $cawangan_detail['alamat1'] }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $cawangan_detail['alamat2'].' No Tel : '. $cawangan_detail['notel'].' No Faks : '. $cawangan_detail['nofaks'] }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
|
||||
<table id="title">
|
||||
<tr>
|
||||
<th> </th><th> LAPORAN AGING BULANAN </th>
|
||||
</tr>
|
||||
<tr><td style="width:60px"> <b> TARIKH :</b> </td><td> {{$tarikh_aging}} </td>
|
||||
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<table id="details">
|
||||
<tr>
|
||||
<th style="width:30px">TEMPOH </th><th style="width:45px"> BIL GADAIAN </th><th style="width:45px"> JUM PINJAMAN (RM) </th><th style="width:45px"> PERATUSAN % </th>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
|
||||
|
||||
<td style="width:30px" > 1 BULAN</td><td style="width:45px"> @foreach($data as $index=>$var) {{$var['a']}}@endforeach</td><td style="width:45px"> @foreach($data as $index=>$var) {{ number_format($var['b'],2)}}@endforeach </td>
|
||||
<td>
|
||||
@foreach($data as $index=>$var) @foreach($data2 as $in=>$vr){{ round(($var['a'] /$vr['a'])*100,2) }}@endforeach @endforeach </td>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
|
||||
<td style="width:30px"> 2 BULAN</td><td style="width:45px"> @foreach($data_2 as $index_2=>$var2) {{$var2['a']}}@endforeach</td><td style="width:45px" > @foreach($data_2 as $index_2=>$var2) {{ number_format($var2['b'],2)}}@endforeach </td>
|
||||
<td> @foreach($data_2 as $index=>$var2) @foreach($data2 as $in=>$vr){{ round(($var2['a'] /$vr['a'])*100,2) }}@endforeach @endforeach </td>
|
||||
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="width:30px" > 3 BULAN</td><td style="width:45px"> @foreach($data_3 as $index_3=>$var3) {{$var3['a']}}@endforeach</td><td style="width:45px"> @foreach($data_3 as $index_2=>$var2) {{ number_format($var3['b'],2)}}@endforeach </td>
|
||||
<td> @foreach($data_3 as $index=>$var3) @foreach($data2 as $in=>$vr){{ round( ($var3['a'] /$vr['a'])*100 ,2) }}@endforeach @endforeach </td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td style="width:30px"> 4 BULAN</td><td style="width:45px"> @foreach($data_4 as $index_4=>$var4) {{$var4['a']}}@endforeach</td><td style="width:45px"> @foreach($data_4 as $index_4=>$var4) {{ number_format($var4['b'],2)}}@endforeach </td>
|
||||
<td> @foreach($data_4 as $index=>$var4) @foreach($data2 as $in=>$vr){{ round(($var4['a'] /$vr['a'])*100 ,2) }}@endforeach @endforeach </td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td style="width:30px" > 5 BULAN</td><td style="width:45px"> @foreach($data_5 as $index_5=>$var5) {{$var5['a']}}@endforeach </td><td style="width:45px">@foreach($data_5 as $index_5=>$var5) {{ number_format($var5['b'],2)}}@endforeach </td>
|
||||
<td> @foreach($data_5 as $index=>$var5) @foreach($data2 as $in=>$vr){{ round( ($var5['a'] /$vr['a'])*100 ,2) }}@endforeach @endforeach </td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
|
||||
<td style="width:30px"> 6 BULAN</td><td style="width:45px"> @foreach($data_6 as $index_6=>$var6) {{$var6['a']}}@endforeach </td><td style="width:45px">@foreach($data_6 as $index_6=>$var6) {{ number_format($var6['b'],2)}}@endforeach </td>
|
||||
<td> @foreach($data_6 as $index=>$var6) @foreach($data2 as $in=>$vr){{ round(($var6['a'] /$vr['a'])*100,2) }}@endforeach @endforeach </td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
|
||||
<td style="width:30px" > 7 BULAN</td><td style="width:45px"> @foreach($data7 as $index7=>$var7) {{$var7['a']}}@endforeach </td><td style="width:45px"> @foreach($data7 as $index7=>$var7) {{ number_format($var7['b'],2)}}@endforeach </td>
|
||||
<td> @foreach($data7 as $index=>$var7) @foreach($data2 as $in=>$vr){{ round( ($var7['a'] /$vr['a'])*100,2) }}@endforeach @endforeach </td>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
|
||||
<td style="width:30px"> 8 BULAN</td><td style="width:45px"> @foreach($data_8 as $index_8=>$var8) {{$var8['a']}}@endforeach </td><td style="width:45px"> @foreach($data_8 as $index_8=>$var8) {{ number_format($var8['b'],2)}}@endforeach </td>
|
||||
<td> @foreach($data_8 as $index=>$var8) @foreach($data2 as $in=>$vr){{ round( ($var8['a'] /$vr['a'])*100 ,2) }}@endforeach @endforeach </td>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
|
||||
<td style="width:30px"> 9 BULAN</td><td style="width:45px"> @foreach($data_9 as $index_9=>$var9) {{$var9['a']}}@endforeach </td><td style="width:45px"> @foreach($data_9 as $index_9=>$var9) {{ number_format($var9['b'],2)}}@endforeach </td>
|
||||
<td> @foreach($data_9 as $index=>$var9) @foreach($data2 as $in=>$vr){{ round(($var9['a'] /$vr['a'])*100,2) }}@endforeach @endforeach </td>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
|
||||
<td style="width:30px" > 10 BULAN</td><td style="width:45px"> @foreach($data_10 as $index_10=>$var10) {{$var10['a']}}@endforeach </td><td style="width:45px"> @foreach($data_10 as $index_10=>$var10) {{number_format($var10['b'],2)}}@endforeach </td>
|
||||
<td> @foreach($data_10 as $index=>$var10) @foreach($data2 as $in=>$vr){{ round( ($var10['a'] /$vr['a'])*100 ,2) }}@endforeach @endforeach </td>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
||||
<td style="width:30px" > 11 BULAN</td><td style="width:45px"> @foreach($data_11 as $index_11=>$var11) {{$var11['a']}}@endforeach </td><td style="width:45px"> @foreach($data_11 as $index_11=>$var11) {{number_format($var11['b'],2)}}@endforeach </td>
|
||||
<td> @foreach($data_11 as $index=>$var11) @foreach($data2 as $in=>$vr){{ round(($var11['a'] /$vr['a'])*100,2) }}@endforeach @endforeach </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:30px"> 12 BULAN</td><td style="width:45px"> @foreach($data_12 as $index_12=>$var12) {{$var12['a']}}@endforeach </td><td style="width:45px"> @foreach($data_12 as $index_12=>$var12) {{ number_format($var12['b'],2)}}@endforeach </td>
|
||||
<td> @foreach($data_12 as $index=>$var) @foreach($data2 as $in=>$vr){{ round (($var12['a'] /$vr['a'])*100,2) }}@endforeach @endforeach </td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="width:30px"> 12 > BULAN</td><td style="width:45px"> @foreach($data_13 as $index_13=>$var13) {{$var13['a']}}@endforeach </td><td style="width:45px"> @foreach($data_13 as $index_13=>$var13) {{ number_format($var13['b'],2)}}@endforeach </td>
|
||||
<td> @foreach($data_13 as $index=>$var13) @foreach($data2 as $in=>$vr){{ round(($var13['a'] /$vr['a'])*100, 2) }}@endforeach @endforeach </td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td> </td><td> </td><td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
|
||||
<td style="width:30px"> <B>JUMLAH</B></td><td style="width:45px"> @foreach($data2 as $index2=>$var1){{$var1['a']}}
|
||||
@endforeach </td><td style="width:45px"> @foreach($data2 as $index2=>$var1){{ number_format($var1['b'],2)}}
|
||||
@endforeach </td><td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
|
||||
<table id="details">
|
||||
<tr>
|
||||
<th> </th><th> DISEMAK </th><th></th> <th> DISAHKAN </th><th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>........................................................</td><td></td>
|
||||
<td>......................................................... </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<br>
|
||||
+4
-3
@@ -67,7 +67,6 @@ Route::get('/customer/search',['as'=>'customer.search','uses'=>'CustomersControl
|
||||
Route::post('/customer/store',['as'=>'customer.store','uses'=>'CustomersController@store'])->middleware('auth','teller');
|
||||
Route::post('/gadai/store',['as'=>'gadai.store','uses'=>'GadaianController@store'])->middleware('auth','teller');
|
||||
Route::get('/gadai/batal',['as'=>'gadai.batal','uses'=>'GadaianController@batal'])->middleware('auth','teller');
|
||||
Route::get('/gadai/batal/marhun',['as'=>'gadai.batalmarhun','uses'=>'GadaianController@batalmarhun'])->middleware('auth','teller');
|
||||
Route::get('/customer/otp',['as'=>'customer.otp','uses'=>'CustomersController@getOTP'])->middleware('auth','teller');
|
||||
Route::get('/getwakil',['as'=>'wakil.search','uses'=>'PenebusanController@getWakil'])->middleware('auth','teller');
|
||||
Route::get('/cari',['as'=>'wakil.caricustomer','uses'=>'CustomersController@cari'])->middleware('auth','teller');
|
||||
@@ -92,6 +91,7 @@ Route::get('/menu','KhazanahController@menu')->middleware('auth','khazanah');
|
||||
Route::get('/khazanahgadaian',['as'=>'khazanah.gadaian','uses'=>'KhazanahController@gadaian'])->middleware('auth','khazanah');
|
||||
Route::get('/khazanahtebus','KhazanahController@tebus')->middleware('auth','khazanah');
|
||||
Route::get('/kelulusan','KhazanahController@kelulusan')->middleware('auth','khazanah');
|
||||
Route::get('/kelulusanrekodlepas',['as'=>'khazanah.rekodlepas','uses'=>'KhazanahController@kelulusanrekodlepas'])->middleware('auth','khazanah');
|
||||
Route::get('/pendahuluan',['as'=>'khazanah.pendahulu','uses'=>'KhazanahController@pendahuluan'])->middleware('auth','khazanah');
|
||||
Route::get('/serahan',['as'=>'khazanah.serahan','uses'=>'KhazanahController@serahan'])->middleware('auth','khazanah');
|
||||
Route::get('/laporanscanbarcode',['as'=>'laporanscanbarcode','uses'=>'KhazanahController@LaporanSemakBarcode'])->middleware('auth','khazanah');
|
||||
@@ -130,10 +130,9 @@ Route::get('/gadai/edit/editmarhun',['as'=>'gadai.ubahmarhun','uses'=>'GadaianCo
|
||||
|
||||
//Ubah dan Hapus
|
||||
Route::get('/getkelulu',['as'=>'teller.getkelulusan','uses'=>'GadaianController@getkelulusan'])->middleware('auth','teller');
|
||||
Route::post('/createkelulu',['as'=>'teller.createkelulusan','uses'=>'GadaianController@createkelulusan'])->middleware('auth','teller');
|
||||
Route::post('/createkelulu',['as'=>'teller.createkelulusan','uses'=>'GadaianController@createkelulusan'])->middleware('auth');
|
||||
Route::put('/updatekelulu',['as'=>'teller.updatekelulusan','uses'=>'GadaianController@updatekelulusan'])->middleware('auth','khazanah');
|
||||
|
||||
|
||||
//Laporan Baru
|
||||
Route::get('/laporan/lelongan',['as'=>'laporan.lelongan','uses'=>'KhazanahController@laporanLelongan'])->middleware('auth','khazanah');
|
||||
Route::post('laporan/lelongan/cetak',['as'=>'lelongan.laporancetak','uses'=>'KhazanahController@cetaklaporanLelongan'])->middleware('auth','khazanah');
|
||||
@@ -153,6 +152,8 @@ Route::get('/laporan/marhunterkumpul',['as'=>'laporan.marhunterkumpul','uses'=>'
|
||||
Route::post('laporan/marhunterkumpul/cetak',['as'=>'marhunterkumpul.laporancetak','uses'=>'KhazanahController@cetakLaporanMarhunTerkumpul'])->middleware('auth','khazanah');
|
||||
Route::get('laporan/ringkasanharian/cetak',['as'=>'ringkasanharian.laporancetak','uses'=>'KhazanahController@cetakLaporanRingkasanHarian'])->middleware('auth','khazanah');
|
||||
Route::get('laporan/ringkasanterkumpul/cetak',['as'=>'ringkasanterkumpul.laporancetak','uses'=>'KhazanahController@cetakLaporanRingkasanTerkumpul'])->middleware('auth','khazanah');
|
||||
Route::get('/laporan/agingbulanan', [ 'as'=>'laporan.agingbulanan', 'uses'=>'KhazanahController@laporanAging_Bulanan'])->middleware('auth','khazanah');
|
||||
Route::post('/laporan/agingbulanan/cetak', ['as'=>'agingbulan.cetaklaporan', 'uses'=>'KhazanahController@cetaklaporang_Aging'])->middleware('auth','khazanah');
|
||||
|
||||
//Resit Ansurans
|
||||
Route::get('/resit/{id}',['as'=>'resit.ansuran','uses'=>'GadaianController@resit'])->middleware('auth','teller');
|
||||
|
||||
Reference in New Issue
Block a user