diff --git a/app/Http/Controllers/KhazanahController.php b/app/Http/Controllers/KhazanahController.php
index e4ac06a..ef7a3da 100644
--- a/app/Http/Controllers/KhazanahController.php
+++ b/app/Http/Controllers/KhazanahController.php
@@ -193,6 +193,53 @@ class KhazanahController extends Controller
return view('khazanah.dashboard',compact('komuditicheck','cawangan_info','api_url','dashboard','totalmarhun','ringkasanharian','getVault','keseluruhanupahharian','upahsimpan','keuntungan'));
}
+ public function changedatedashboard(Request $request)
+ {
+ $auth_user = Auth::user();
+ $api_url = config('api.url');
+
+ //Hari Ini
+ $ringkasanharian = Http::get(config('api.url'). '/api/gadai/laporan/ringkasanharian/'. $auth_user['cawangan'],['tarikh' => $request->tarikh])->json();
+ $ringkasanharian = $ringkasanharian[0];
+
+ $keseluruhanupahharian = $ringkasanharian['lelongupahsimpan'] + $ringkasanharian['tebus'][0]['upahsimpan'] + $ringkasanharian['advansur'][0]['upahsimpan'];
+
+ //Upah Terkumpul
+ $upahsimpan = Http::get(config('api.url'). '/api/KeuntunganSebenar/'. $auth_user['cawangan'],['tarikh' => $request->tarikh])->json();
+ $keuntungan = Http::get(config('api.url'). '/api/UntungRugiCalculation/'. $auth_user['cawangan'],['tarikh' => $request->tarikh])->json();
+
+ //Peti Besi Cawangan
+ $getVault=Http::get( config('api.url').'/api/VaultController/'.$auth_user['cawangan'])->json();
+
+ if(sizeof($getVault) == 0)
+ {
+ $peti_besi_terkini=Http::post(config('api.url').'/api/daftarVault/'.$auth_user['cawangan'])->json();
+ $getVault = $peti_besi_terkini['bakiakhir'];
+
+ }else{
+ $getVault = $getVault[0]['bakiakhir'];
+ }
+
+ //Check Komuditi
+ $komuditicheck = Http::get( config('api.url').'/api/komuditi/checkdate',['tarikh' => $request->tarikh])->json();
+
+ //Dashboardall
+ $dashboard=Http::get( config('api.url').'/api/Dashboard_all/'.$auth_user['cawangan'])->json();
+
+ //Marhun Terkumpul
+ $marhun = Http::get(config('api.url'). '/api/marhunterkumpul/laporan/'. $auth_user['cawangan'] .'/'. $request->tarikh)->json();
+
+ $totalmarhun = 0;
+
+ foreach($marhun as $index=>$m)
+ {
+ $totalmarhun += $m['n_marhun'];
+ }
+
+ dd($totalmarhun,$dashboard);
+ //return view('khazanah.dashboard',compact('komuditicheck','cawangan_info','api_url','dashboard','totalmarhun','ringkasanharian','getVault','keseluruhanupahharian','upahsimpan','keuntungan'));
+ }
+
public function alirantunai()
{
$auth_user = Auth::user();
@@ -2770,16 +2817,16 @@ class KhazanahController extends Controller
$current = Carbon::now();
$current = new Carbon();
$tarikh_cetak = $current->toDateString();
- if($request->datetimepicker1 == null){
+ if($request->datetarikh == null){
$gadai_date = $current->toDateString();
}else{
- $split_date = explode('-',$request->datetimepicker1);
+ $split_date = explode('-',$request->datetarikh);
$gadai_date = $split_date[2] . '-' . $split_date[1] . '-' . $split_date[0];
}
$gadai = Http::get(config('api.url'). '/api/gadai/laporan/'. $auth_user['cawangan'] .'/'. $gadai_date)->json();
$cawangan=Http::get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
$cawangan_detail=$cawangan[0];
- // dd($gadai);
+
return view('print.laporan_gadaian', compact('gadai','cawangan_detail','tarikh_cetak','gadai_date','api_url'));
}
@@ -2791,26 +2838,27 @@ class KhazanahController extends Controller
}
public function cetakLaporanPenebusan(Request $request){
- // dd($request);
- $api_url = config('api.url');
- $auth_user = Auth::user();
- $current = Carbon::now();
- $current = new Carbon();
- $tarikh_cetak = $current->toDateString();
- if($request->datetimepicker1 == null){
- $tebus_date = $current->toDateString();
- }else{
- $split_date = explode('-',$request->datetimepicker1);
- $tebus_date = $split_date[2] . '-' . $split_date[1] . '-' . $split_date[0];
- }
- $tebus = Http::get(config('api.url'). '/api/tebus/laporan/'. $auth_user['cawangan'] .'/'. $tebus_date)->json();
- $tebuspengasingan = Http::get(config('api.url'). '/api/tebus/laporanjenistawarruq/'. $auth_user['cawangan'],['tarikh' => $tebus_date])->json();
- $upahlama = Http::get(config('api.url'). '/api/advansurdetails/'. $auth_user['cawangan'],['tarikh' => $tebus_date])->json();
-
- $cawangan=Http::get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
- $cawangan_detail=$cawangan[0];
- // dd($gadai);
- return view('print.laporan_penebusan', compact('tebus','cawangan_detail','tarikh_cetak','tebus_date','tebuspengasingan','api_url','upahlama'));
+ // dd($request);
+ $api_url = config('api.url');
+ $auth_user = Auth::user();
+ $current = Carbon::now();
+ $current = new Carbon();
+ $tarikh_cetak = $current->toDateString();
+ if($request->datetarikh == null){
+ $tebus_date = $current->toDateString();
+ }else{
+ $split_date = explode('-',$request->datetarikh);
+ $tebus_date = $split_date[2] . '-' . $split_date[1] . '-' . $split_date[0];
+ }
+ $tebus = Http::get(config('api.url'). '/api/tebus/laporan/'. $auth_user['cawangan'] .'/'. $tebus_date)->json();
+ $tebuspengasingan = Http::get(config('api.url'). '/api/tebus/laporanjenistawarruq/'. $auth_user['cawangan'],['tarikh' => $tebus_date])->json();
+ $upahlama = Http::get(config('api.url'). '/api/advansurdetails/'. $auth_user['cawangan'],['tarikh' => $tebus_date])->json();
+
+ $cawangan=Http::get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
+ $cawangan_detail=$cawangan[0];
+ // dd($gadai);
+ return view('print.laporan_penebusan', compact('tebus','cawangan_detail','tarikh_cetak','tebus_date','tebuspengasingan','api_url','upahlama'));
+
}
public function laporanLelongan(){
@@ -3192,6 +3240,15 @@ class KhazanahController extends Controller
return view('khazanah.laporan.ringkasanharian',compact('cawangan_info','api_url'));
}
+ public function laporanRingkasanTerkumpul(){
+ $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.ringkasanterkumpul',compact('cawangan_info','api_url'));
+ }
+
public function cetakLaporanRingkasanHarian(Request $request){
$api_url = config('api.url');
@@ -3271,6 +3328,30 @@ class KhazanahController extends Controller
return view('print.laporan_ringkasanharian', compact('cawangan_detail','tarikh_cetak','ringkasan_date','api_url','laporan','totalbilkawalanstok','totalpinjkawalanstok'));
}
+ // public function cetakLaporanRingkasanTerkumpul(Request $request){
+ // // dd($request);
+ // $api_url = config('api.url');
+ // $auth_user = Auth::user();
+ // $current = Carbon::now();
+ // $current = new Carbon();
+ // $tarikh_cetak = $current->toDateString();
+ // if($request->datetimepicker1 == null){
+ // $tebus_date = $current->toDateString();
+ // }else{
+ // $split_date = explode('-',$request->datetimepicker1);
+ // $tebus_date = $split_date[2] . '-' . $split_date[1] . '-' . $split_date[0];
+ // }
+ // $marhun = Http::get(config('api.url'). '/api/gadai/laporan/ringkasan/'. $auth_user['cawangan'],['tarikh' => $tebus_date])->json();
+ // $marhun = $marhun[0];
+
+ // $keseluruhanupahsimpan = $marhun['lelongupahsimpan'] + $marhun['tebus'][0]['upahsimpan'] + $marhun['advansur'][0]['upahsimpan'];
+
+ // $cawangan=Http::get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
+ // $cawangan_detail=$cawangan[0];
+ // // dd($gadai);
+ // return view('print.laporan_ringkasanterkumpul', compact('keseluruhanupahsimpan','marhun','cawangan_detail','tarikh_cetak','tebus_date','api_url'));
+ // }
+
public function cetakLaporanRingkasanTerkumpul(Request $request){
// dd($request);
$api_url = config('api.url');
@@ -3278,21 +3359,33 @@ class KhazanahController extends Controller
$current = Carbon::now();
$current = new Carbon();
$tarikh_cetak = $current->toDateString();
- if($request->datetimepicker1 == null){
- $tebus_date = $current->toDateString();
- }else{
- $split_date = explode('-',$request->datetimepicker1);
- $tebus_date = $split_date[2] . '-' . $split_date[1] . '-' . $split_date[0];
- }
- $marhun = Http::get(config('api.url'). '/api/gadai/laporan/ringkasan/'. $auth_user['cawangan'],['tarikh' => $tebus_date])->json();
- $marhun = $marhun[0];
- $keseluruhanupahsimpan = $marhun['lelongupahsimpan'] + $marhun['tebus'][0]['upahsimpan'] + $marhun['advansur'][0]['upahsimpan'];
+ if($request->datemula == null){
+ $mula_date = '2017-01-01';
+ }else{
+ $split_date = explode('-', $request->datemula);
+ $mula_date = $split_date[2] . '-' . $split_date[1] . '-' . $split_date[0];
+ }
+
+ if($request->datehingga == null){
+ $hingga_date = $current->toDateString();
+ }else{
+ $split_date = explode('-', $request->datehingga);
+ $hingga_date = $split_date[2] . '-' . $split_date[1] . '-' . $split_date[0];
+ }
+
+ $laporan_ringkasan = Http::get(config('api.url') . '/api/laporan/terkumpul',[
+ 'kodcaw' => $auth_user['cawangan'],
+ 'mula' => $mula_date,
+ 'akhir' => $hingga_date
+ ])->json();
+
+ $laporan_ringkasan = $laporan_ringkasan[0];
$cawangan=Http::get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
$cawangan_detail=$cawangan[0];
- // dd($gadai);
- return view('print.laporan_ringkasanterkumpul', compact('keseluruhanupahsimpan','marhun','cawangan_detail','tarikh_cetak','tebus_date','api_url'));
+
+ return view('print.laporan_ringkasanterkumpulv2', compact('laporan_ringkasan','cawangan_detail','tarikh_cetak','mula_date','hingga_date','api_url'));
}
public function laporanKawalanStok(){
@@ -4067,7 +4160,7 @@ class KhazanahController extends Controller
$upahsimpanxtra = $xtra['upahsimpan'];
$bakilelongxtra = $xtra['bakilelong'];
$utgterkumpulxtra = $xtra['untungrugiterkumpul'];
- $rugilelongxtra = -($xtra['kerugianlelong']);
+ $rugilelongxtra = -($xtra['kerugianlelong']);
}
//Terkumpul
@@ -4191,134 +4284,7 @@ class KhazanahController extends Controller
//KIRAAN UNTUK LEJER_AM BAYARAN ONLINE & TRANSAKSI BAYARAN UPAH
- $getProduct=Http::get(config('api.url').'/api/getProduct/'.$auth_user['cawangan'])->json();
- $glcode=$getProduct[0]['glcode'];
- $kodGL=$getProduct[0]['kodgl'];
- $glcode_UP=$getProduct[0]['glcode_up'];
-
- $get_GLCode=Http::get(config('api.url').'/api/getGlCode/'.$auth_user['cawangan'],['glcode'=>$kodGL])->json();
-
- $keterangan=$get_GLCode[0]['descpt'];
- $acctype=$get_GLCode[0]['acttype'];
-
- $total_bayaranOnline=0.0;
-
-
- // $getTotalBayaranOnline=Http::get(config('api.url').'/api/ansuranByrOnline/'.$auth_user['cawangan'])->json();
- // if(sizeof($getTotalBayaranOnline)!=0)
- // {
-
- // $total_bayaranOnline=$getTotalBayaranOnline[0]['cash_in'];
-
- // }
- // else
- // {
-
- // }
-
- //START UNTUK GLEJER
-
- //carian_GLejer untuk Bayaran Online (Update Bayaran)
- $getBayarOnline_GL=Http::get(config('api.url').'/api/getGlCode/'. $auth_user['cawangan'],['glcode'=>$GL_Code_BayaranOnline])->json();
- $keteranganBayaranOnlie=$getBayarOnline_GL[0]['descpt']; //keterangan glcode
- $actypeBayaranOnline=$getBayarOnline_GL[0]['acttype']; //keterangan acctype
-
- $get_current_GLejer_Details_BayaranOnline=Http::get(config('api.url').'/api/getGlejer/'. $auth_user['cawangan'],['glcode'=>$GL_Code_BayaranOnline])->json();
- if(sizeof($get_current_GLejer_Details_BayaranOnline)==0)
- { //start kalau xdak data
- $jumlah=0.0;
-
- $getGLedjer=Http::get(config('api.url').'/api/getSemalam_Glejer/'.$auth_user['cawangan'],['glcode'=>$GL_Code_BayaranOnline])->json();
-
- if(sizeof($getGLedjer)==0)
- {
- $jumlah=0.0;
- }
- else
- {
-
- //$glejer=$getGLedjer[0];
- $jumlahSemalam=$getGLedjer[0]['jumlah'];
-
- $hariIniSemalam=$getGLedjer[0]['hariini'];
- $jumlah=$jumlahSemalam+$hariIniSemalam;
-
-
- }
-
-
-
- $jumlahBulan_ini=0.0;
- $get_GlejerBulan_Tahun=Http::get(config('api.url').'/api/getLejerMonthYear/'.$auth_user['cawangan'],['glcode'=>$GL_Code_BayaranOnline])->json();
-
- if( sizeof($get_GlejerBulan_Tahun)==0)
- {
- $jumlahBulan_ini=0.0;
- }
- else
- {
- $jumlahBulan_ini=$get_GlejerBulan_Tahun[0]['jumlah'];
- $jumlahBulan_ini=$jumlah-$jumlahBulan_ini;
- }//end bulan tahun
- $Jumlah_TahunIni=0.0;
- $get_Glejer_Tahun=Http::get(config('api.url').'/api/getLejerYear/'.$auth_user['cawangan'],['glcode'=>$GL_Code_BayaranOnline])->json();
- if(sizeof($get_Glejer_Tahun)==0)
- {
- $Jumlah_TahunIni=0.0;
- }
- else
- {
-
-
- $JumTahunIni=$get_Glejer_Tahun[0]['jumlah'];
- $Jumlah_TahunIni=$jumlah-$JumTahunIni;
-
- }
-
- $HariIni=0.0;
- $kelmarin=$jumlah-$HariIni;
- //insert glejer untuk current date /hari ini
- $daftarGlejer=Http::post(config('api.url').'/api/daftarGlejer/'.$auth_user['cawangan'],[
-
- 'kodcaw' =>$auth_user['cawangan'],
- 'glcode' =>$GL_Code_BayaranOnline,
- 'descpt' =>$keteranganBayaranOnlie,
- 'debit'=>0.0,
- 'kredit'=>0.0,
- 'hariini'=>$HariIni,
- 'kelmarin'=>$kelmarin,
- 'jumlah'=>$jumlah,
- 'bulanini'=>$jumlahBulan_ini,
- 'tahunini'=>$Jumlah_TahunIni,
- 'acttype'=> $actypeBayaranOnline
-
- ]);
-
- }
- else
- {
-
- $get_lejer=Http::get(config('api.url').'/api/getGlejer/'.$auth_user['cawangan'],['glcode'=>$glcode])->json();
-
- if(sizeof($get_lejer)>0)
- {
- $hariIni=$get_lejer[0]['hariini'];
- $jumlah=$get_lejer[0]['kelmarin'];
- $kredit=$get_lejer[0]['kredit'];
- $debit=$get_lejer[0]['debit'];
- $recno=$get_lejer[0]['recno'];
- $kredit=$kredit+ $total_bayaranOnline;
- $Hari_Ini=$debit-$kredit;
- $Kelmarin=$jumlah-$Hari_Ini;
- $updateGlejer=Http::put(config('api.url').'/api/kemasKiniGlejer/'.$auth_user['cawangan'],[
- 'recno'=>$recno,
- 'debit'=>$debit,
- 'kredit'=>$kredit,
- 'hariini'=>$Hari_Ini,
- 'kelmarin'=>$Kelmarin,
- ]);
-
- }
+
$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();
@@ -4326,7 +4292,7 @@ class KhazanahController extends Controller
$debit=Http::get(config('api.url').'/api/glejer/sumDebit/'.$tarikh_mula.'/'.$tarikh_akhir.'/'.$auth_user['cawangan'])->json();
$kredit=Http::get(config('api.url').'/api/glejer/sumKredit/'.$tarikh_mula.'/'.$tarikh_akhir.'/'.$auth_user['cawangan'])->json();
$data=Http::get(config('api.url').'/api/glejer/getdata/'.$tarikh_mula.'/'.$tarikh_akhir.'/'.$auth_user['cawangan'])->json();
- }
+
//return view('print.laporan_imbanduga',compact('tarikh_imbangan','tarikh_cetak','cawangan_info','cawangan','api_url','cawangan_detail'));
return view( 'print.laporan_lejer_am',compact('cawangan','cawangan_info', 'api_url','cawangan_detail','tarikh_akhir','tarikh_mula','data','debit','kredit'));
@@ -4518,4 +4484,56 @@ class KhazanahController extends Controller
return view('print.suratgadaianhilang', compact('polis','gadai','customers','cawangan_detail','api_url'));
}
+ public function PemilihanAnsUpah()
+ {
+ $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.ansuranupah', compact('cawangan_info','api_url'));
+ }
+
+ public function LaporanUpah()
+ {
+ $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.upah', compact('cawangan_info','api_url'));
+ }
+
+ public function cetaklaporan_Upah(Request $request)
+ {
+ $api_url = config('api.url');
+ $auth_user = Auth::user();
+ $current = Carbon::now();
+ $current = new Carbon();
+ $tarikh_cetak = $current->toDateString();
+
+ if($request->datemula == null){
+ $mula_date = '2017-01-01';
+ }else{
+ $split_date = explode('-', $request->datemula);
+ $mula_date = $split_date[2] . '-' . $split_date[1] . '-' . $split_date[0];
+ }
+
+ if($request->datehingga == null){
+ $hingga_date = $current->toDateString();
+ }else{
+ $split_date = explode('-', $request->datehingga);
+ $hingga_date = $split_date[2] . '-' . $split_date[1] . '-' . $split_date[0];
+ }
+
+ $advansur = Http::get(config('api.url'). '/api/AnsuranByRangeTarikh/' . $auth_user['cawangan'],['mula' => $mula_date,'akhir' => $hingga_date])->json();
+
+ $cawangan = Http::get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
+ $cawangan_detail=$cawangan[0];
+
+ return view('print.laporan_upah', compact('advansur','cawangan_detail','tarikh_cetak','mula_date','hingga_date','api_url'));
+ }
+
}
diff --git a/app/Http/Controllers/LelongController.php b/app/Http/Controllers/LelongController.php
index bcf260a..47f0aa5 100644
--- a/app/Http/Controllers/LelongController.php
+++ b/app/Http/Controllers/LelongController.php
@@ -60,6 +60,61 @@ class LelongController extends Controller
}
+ // public function transaksituntutbaki(Request $request){
+
+ // $auth_user = Auth::user();
+
+ // $tuntutbaki = Http::post(config('api.url') . '/api/Tuntutbakisimpan/' . $auth_user['cawangan'], [
+ // 'batchno' => $request->batchno,
+ // 'jenis' => $request->jenis,
+ // 'norujukan' => $request->norujukan,
+ // 'teller' => $request->teller,
+ // 'bakipjm' => $request->bakipjm,
+ // 'bakiupah' => $request->bakiupah,
+ // 'cajlain' => $request->cajlain,
+ // 'cajlelong' => $request->cajlelong,
+ // 'jumlah' => $request->jumlah,
+ // 'nowakil' => $request->nowakil,
+ // 'hargajual' => $request->hargajual
+ // ])->json();
+
+ // $updatetuntutbaki = Http::put( config('api.url').'/api/tuntutbakiupdate/' . $auth_user['cawangan'] . '/' . $request->norujukan);
+
+ // $getTunai2=Http::get(config('api.url').'/api/GetCurrentTunai/'.$auth_user['cawangan'],['kodlaluan' => $request->teller])->json();
+
+ // $keluar = $getTunai2['keluar'];
+ // $baki = $getTunai2['baki'];
+ // $masuk = $getTunai2['masuk'];
+ // $bakiawal = $getTunai2['bakiawal'];
+ // $pendahuluan = $getTunai2['tambah'];
+ // $serahan = $getTunai2['kurang'];
+
+ // $bakiakhir = $baki;
+
+ // if($request->jenis == 'T'){
+ // $bakiakhir -= $request->jumlah;
+ // }
+ // else
+ // {
+ // $bakiakhir += -($request->jumlah);
+ // }
+
+ // //masuk dalam tunai aliran
+ // $updateTunai=Http::put( config('api.url').'/api/updateTunaiGT/'.$auth_user['cawangan'], [
+ // 'kodlaluan' => $request->teller,
+ // 'keluar' => $keluar,
+ // 'masuk' => $masuk,
+ // 'bakiakhir' => $bakiakhir
+ // ]);
+
+ // if($updatetuntutbaki)
+ // {
+ // return response('Berjaya');
+ // }else{
+ // return response('Gagal');
+ // }
+ // }
+
public function transaksituntutbaki(Request $request){
$auth_user = Auth::user();
@@ -90,15 +145,280 @@ class LelongController extends Controller
$serahan = $getTunai2['kurang'];
$bakiakhir = $baki;
+ $jumlah_byr=$request->jumlah;
- if($request->jenis == 'T'){
+ if($request->jenis == 'T')
+ {
$bakiakhir -= $request->jumlah;
+
+
+
+ $KOD_TUNAI='1000/010';
+ $BAKI_LELONG='7000/090';
+
+ $get_lejerTunai=Http::get(config('api.url').'/api/getGlejer/'.$auth_user['cawangan'],['glcode'=>$KOD_TUNAI])->json();
+ $hariIni_Tunai=$get_lejerTunai[0]['hariini'];
+ $kelmarin_Tunai=$get_lejerTunai[0]['kelmarin'];
+ $jumlah_Tunai=$get_lejerTunai[0]['jumlah'];
+ $kredit_Tunai=$get_lejerTunai[0]['kredit'];
+ $debit_Tunai=$get_lejerTunai[0]['debit'];
+ $recno_Tunai=$get_lejerTunai[0]['recno'];
+
+
+ $kredit_Tunai=$kredit_Tunai+$jumlah_byr;
+ $hariIni_Tunai=$debit_Tunai-$kredit_Tunai;
+ $kelmarin_Tunai=$jumlah_Tunai-$hariIni_Tunai;
+ $updateGlejer_Tunai=Http::put(config('api.url').'/api/kemasKiniGlejer/'.$auth_user['cawangan'],[
+ 'recno'=>$recno_Tunai,
+ 'debit'=>$debit_Tunai,
+ 'kredit'=>$kredit_Tunai,
+ 'hariini'=>$hariIni_Tunai,
+ 'kelmarin' =>$kelmarin_Tunai,
+
+ ]);
+
+
+ $get_KOD_BL=Http::get(config('api.url').'/api/getGlCode/'. $auth_user['cawangan'],['glcode'=>$BAKI_LELONG])->json();
+
+ $gl_cdetails_bl= $get_KOD_BL[0];
+ $keterangan_bl= $get_KOD_BL[0]['descpt']; //keterangan glcode
+ $actype_bl= $get_KOD_BL[0]['acttype'];
+
+
+ $get_current_GLejer_Baki_Lelong=Http::get(config('api.url').'/api/getGlejer/'. $auth_user['cawangan'],['glcode'=>$BAKI_LELONG])->json();
+
+ if(sizeof($get_current_GLejer_Baki_Lelong)==0)
+ {
+ $jumlah_bl=0.0;
+
+ $getGLedjer_bl_Semalam=Http::get(config('api.url').'/api/getSemalam_Glejer/'.$auth_user['cawangan'],['glcode'=>$BAKI_LELONG])->json();
+ if(sizeof($getGLedjer_bl_Semalam)==0)
+ {
+ $jumlah_bl=0.0;
+ }
+ else
+ {
+
+ $jumlahSemalam_bl=$getGLedjer_bl_Semalam[0]['jumlah'];
+
+ $hariIniSemalam_bl=$getGLedjer_bl_Semalam[0]['hariini'];
+ $jumlah_bl=$jumlahSemalam_bl+$hariIniSemalam_bl;
+
+ }
+ $jumlahBulan_ini_bl=0.0;
+ $get_GlejerBulan_Tahun_bl=Http::get(config('api.url').'/api/getLejerMonthYear/'.$auth_user['cawangan'],['glcode'=>$BAKI_LELONG])->json();
+ if( sizeof($get_GlejerBulan_Tahun_bl)==0)
+ {
+ $jumlahBulan_ini_bl=0.0;
+ }
+ else
+ {
+
+ $jumlahBulan_ini_bl=$get_GlejerBulan_Tahun_bl[0]['jumlah'];
+ $jumlahBulan_ini_bl=$jumlah_bl-$jumlahBulan_ini_bl;
+
+ }
+
+
+ $Jumlah_TahunIni_bl=0.0;
+ $get_Glejer_Tahun_bl=Http::get(config('api.url').'/api/getLejerYear/'.$auth_user['cawangan'],['glcode'=>$BAKI_LELONG])->json();
+
+ if(sizeof($get_Glejer_Tahun_bl)==0)
+ {
+ $Jumlah_TahunIni_bl=0.0;
+ }
+ else
+ {
+ $JumTahunIni_bl=$get_Glejer_Tahun_bl[0]['jumlah'];
+ $Jumlah_TahunIni_bl=$jumlah_bl-$JumTahunIni_bl;
+
+ }
+
+
+ $HariIni_bl=0.0;
+ $kelmarin_bl=$jumlah_bl-$HariIni_bl;
+ $daftarGlejer_bl=Http::post(config('api.url').'/api/daftarGlejer/'.$auth_user['cawangan'],[
+
+ 'kodcaw'=>$auth_user['cawangan'],
+ 'glcode'=>$BAKI_LELONG,
+ 'descpt'=>$keterangan_bl,
+ 'debit'=>$jumlah_byr,
+ 'kredit'=>0.0,
+ 'hariini'=>$HariIni_bl,
+ 'kelmarin'=>$kelmarin_bl,
+ 'jumlah'=>$jumlah_bl,
+ 'bulanini'=>$jumlahBulan_ini_bl,
+ 'tahunini'=>$Jumlah_TahunIni_bl,
+ 'acttype'=> $actype_bl
+
+ ]);
+
+
+ }
+ else
+ {
+
+ $hariIni_BL=$get_current_GLejer_Baki_Lelong[0]['hariini'];
+ $kelmarin_BL=$get_current_GLejer_Baki_Lelong[0]['kelmarin'];
+ $jumlah_BL= $get_current_GLejer_Baki_Lelong[0]['jumlah'];
+ $kredit_BL=$get_current_GLejer_Baki_Lelong[0]['kredit'];
+ $debit_BL= $get_current_GLejer_Baki_Lelong[0]['debit'];
+ $recno_BL=$get_current_GLejer_Baki_Lelong[0]['recno'];
+
+ $debit_BL=$debit_BL+$jumlah_byr;
+ $hariIni_Tunai=$debit_BL-$kredit_BL;
+ $kelmarin_BL=$jumlah_BL-$hariIni_BL;
+
+ $updateGlejer_BL=Http::put(config('api.url').'/api/kemasKiniGlejer/'.$auth_user['cawangan'],[
+ 'recno'=>$recno_BL,
+ 'debit'=>$debit_BL,
+ 'kredit'=>$kredit_BL,
+ 'hariini'=>$hariIni_BL,
+ 'kelmarin' =>$kelmarin_BL,
+
+ ]);
+
+ }
+
+
+
}
else
{
$bakiakhir += -($request->jumlah);
- }
+
+ $KOD_TUNAI='1000/010';
+ $get_lejerTunai=Http::get(config('api.url').'/api/getGlejer/'.$auth_user['cawangan'],['glcode'=>$KOD_TUNAI])->json();
+ $hariIni_Tunai=$get_lejerTunai[0]['hariini'];
+ $kelmarin_Tunai=$get_lejerTunai[0]['kelmarin'];
+ $jumlah_Tunai=$get_lejerTunai[0]['jumlah'];
+ $kredit_Tunai=$get_lejerTunai[0]['kredit'];
+ $debit_Tunai=$get_lejerTunai[0]['debit'];
+ $recno_Tunai=$get_lejerTunai[0]['recno'];
+
+
+ $debit_Tunai=$debit_Tunai+$jumlah_byr;
+ $hariIni_Tunai=$debit_Tunai-$kredit_Tunai;
+ $kelmarin_Tunai=$jumlah_Tunai-$hariIni_Tunai;
+ $updateGlejer_Tunai=Http::put(config('api.url').'/api/kemasKiniGlejer/'.$auth_user['cawangan'],[
+ 'recno'=>$recno_Tunai,
+ 'debit'=>$debit_Tunai,
+ 'kredit'=>$kredit_Tunai,
+ 'hariini'=>$hariIni_Tunai,
+ 'kelmarin' =>$kelmarin_Tunai,
+
+ ]);
+
+
+
+ $RUGI_LELONG='3000/020';
+
+ $get_KOD_RL=Http::get(config('api.url').'/api/getGlCode/'. $auth_user['cawangan'],['glcode'=>$RUGI_LELONG])->json();
+
+ $gl_cdetails_rl= $get_KOD_RL[0];
+ $keterangan_rl= $get_KOD_RL[0]['descpt']; //keterangan glcode
+ $actype_rl= $get_KOD_RL[0]['acttype'];
+
+
+ $get_current_GLejer_Rugi_Lelong=Http::get(config('api.url').'/api/getGlejer/'. $auth_user['cawangan'],['glcode'=>$RUGI_LELONG])->json();
+
+ if(sizeof($get_current_GLejer_Rugi_Lelong)==0)
+ {
+ $jumlah_rl=0.0;
+
+ $getGLedjer_rl_Semalam=Http::get(config('api.url').'/api/getSemalam_Glejer/'.$auth_user['cawangan'],['glcode'=>$RUGI_LELONG])->json();
+ if(sizeof($getGLedjer_rl_Semalam)==0)
+ {
+ $jumlah_rl=0.0;
+ }
+ else
+ {
+
+ $jumlahSemalam_rl=$getGLedjer_rl_Semalam[0]['jumlah'];
+
+ $hariIniSemalam_rl=$getGLedjer_rl_Semalam[0]['hariini'];
+ $jumlah_rl=$jumlahSemalam_rl+$hariIniSemalam_rl;
+
+ }
+ $jumlahBulan_ini_rl=0.0;
+ $get_GlejerBulan_Tahun_rl=Http::get(config('api.url').'/api/getLejerMonthYear/'.$auth_user['cawangan'],['glcode'=>$RUGI_LELONG])->json();
+ if( sizeof($get_GlejerBulan_Tahun_rl)==0)
+ {
+ $jumlahBulan_ini_rl=0.0;
+ }
+ else
+ {
+
+ $jumlahBulan_ini_rl=$get_GlejerBulan_Tahun_rl[0]['jumlah'];
+ $jumlahBulan_ini_rl=$jumlah_rl-$jumlahBulan_ini_rl;
+
+ }
+
+
+ $Jumlah_TahunIni_rl=0.0;
+ $get_Glejer_Tahun_rl=Http::get(config('api.url').'/api/getLejerYear/'.$auth_user['cawangan'],['glcode'=>$RUGI_LELONG])->json();
+
+ if(sizeof($get_Glejer_Tahun_rl)==0)
+ {
+ $Jumlah_TahunIni_rl=0.0;
+ }
+ else
+ {
+ $JumTahunIni_rl=$get_Glejer_Tahun_rl[0]['jumlah'];
+ $Jumlah_TahunIni_rl=$jumlah_rl-$JumTahunIni_rl;
+
+ }
+
+
+ $HariIni_rl=0.0;
+ $kelmarin_rl=$jumlah_rl-$HariIni_rl;
+ $daftarGlejer_bl=Http::post(config('api.url').'/api/daftarGlejer/'.$auth_user['cawangan'],[
+
+ 'kodcaw'=>$auth_user['cawangan'],
+ 'glcode'=>$RUGI_LELONG,
+ 'descpt'=>$keterangan_rl,
+ 'debit'=>0.0,
+ 'kredit'=>$jumlah_byr,
+ 'hariini'=>$HariIni_rl,
+ 'kelmarin'=>$kelmarin_rl,
+ 'jumlah'=>$jumlah_rl,
+ 'bulanini'=>$jumlahBulan_ini_rl,
+ 'tahunini'=>$Jumlah_TahunIni_rl,
+ 'acttype'=> $actype_rl
+
+ ]);
+
+
+ }
+ else
+ {
+
+ $hariIni_RL=$get_current_GLejer_Rugi_Lelong[0]['hariini'];
+ $kelmarin_RL=$get_current_GLejer_Rugi_Lelong[0]['kelmarin'];
+ $jumlah_RL= $get_current_GLejer_Rugi_Lelong[0]['jumlah'];
+ $kredit_RL=$get_current_GLejer_Rugi_Lelong[0]['kredit'];
+ $debit_RL= $get_current_GLejer_Rugi_Lelong[0]['debit'];
+ $recno_RL=$get_current_GLejer_Rugi_Lelong[0]['recno'];
+
+ $kredit_RL=$kredit_RL+$jumlah_byr;
+ $hariIni_Tunai=$debit_RL-$kredit_RL;
+ $kelmarin_BL=$jumlah_RL-$hariIni_RL;
+
+ $updateGlejer_RL=Http::put(config('api.url').'/api/kemasKiniGlejer/'.$auth_user['cawangan'],[
+ 'recno'=>$recno_RL,
+ 'debit'=>$debit_RL,
+ 'kredit'=>$kredit_RL,
+ 'hariini'=>$hariIni_RL,
+ 'kelmarin' =>$kelmarin_RL,
+
+ ]);
+
+ }
+
+
+
+ }
//masuk dalam tunai aliran
$updateTunai=Http::put( config('api.url').'/api/updateTunaiGT/'.$auth_user['cawangan'], [
'kodlaluan' => $request->teller,
diff --git a/resources/views/aliran_tunai/index.blade.php b/resources/views/aliran_tunai/index.blade.php
index acddf57..021c54b 100644
--- a/resources/views/aliran_tunai/index.blade.php
+++ b/resources/views/aliran_tunai/index.blade.php
@@ -116,7 +116,7 @@
@@ -292,6 +292,56 @@
var tele = "{{ $auth_user['name'] }}";
+ function serahankemaskini(data)
+ {
+
+ $.ajax({
+ type: 'get',
+ url: "{{ route('periksa.alirantunai') }}",
+ success: function(balasbalik){
+ if(balasbalik == 'sama')
+ {
+ openuptambahdanserah(data);
+ }else{
+
+ $.ajax({
+ type: 'get',
+ url: "{{ route('kemaskini.alirantunai') }}",
+ data: { "bakiakhir" : balasbalik['bakisemasa'],
+ "pendahuluan" : balasbalik['pendahuluan'],
+ "serahan" : balasbalik['serahan'],
+ "gadaian" : balasbalik['gadaian'],
+ "penebusan" : balasbalik['penebusan']
+ },
+ success: function(balas){
+ if(balas == 'berjaya')
+ {
+ Swal.fire({
+ icon: 'success',
+ title: 'Berjaya',
+ text: 'Kemaskini Berjaya!',
+ closeOnClickOutside: false
+ }).then(function() {
+ location.reload();
+ });
+
+ }else{
+ Swal.fire({
+ icon: 'danger',
+ title: 'Tidak Berjaya',
+ text: 'Kemaskini tidak berjaya!',
+ closeOnClickOutside: false
+ }).then(function() {
+ location.reload();
+ });
+ }
+ }
+ });
+ }
+ }
+ });
+ }
+
function periksaalirantunai()
{
diff --git a/resources/views/customers/info.blade.php b/resources/views/customers/info.blade.php
index 9876021..cc15ea7 100644
--- a/resources/views/customers/info.blade.php
+++ b/resources/views/customers/info.blade.php
@@ -470,6 +470,10 @@
"ordering": false
});
+ var bayaranupah = $('#tablehistoryupah').DataTable({
+ "ordering": false
+ });
+
const formatter = new Intl.NumberFormat('en-US', {
minimumFractionDigits: 2
});
@@ -821,6 +825,13 @@
rekodasal(gadai);
}
});
+ $.ajax({
+ method:'get',
+ url: api_url + '/api/ansuran/' + "{{ $cawangan_info['kodcaw'] }}" + '/' + histid,
+ success:function(ansuran){
+ rekodansuran(ansuran);
+ }
+ });
}
}else if($("input[name='options']:checked").val() == 'sudah_tebus'){
let histid = $('input[name="sudahtebus"]:checked').val();
@@ -858,6 +869,13 @@
rekodasal(gadai);
}
});
+ $.ajax({
+ method:'get',
+ url: api_url + '/api/ansuran/' + "{{ $cawangan_info['kodcaw'] }}" + '/' + histid,
+ success:function(ansuran){
+ rekodansuran(ansuran);
+ }
+ });
}
}
}
@@ -868,6 +886,24 @@
$('#nilaimarhunmodal').text('RM ' + formatter.format(gadaian[0][0]['nilaimarhun']));
}
+ function rekodansuran(data){
+ var counter = 1;
+
+ bayaranupah.clear().draw();
+ $.each(data,function(index,bayaran){
+
+ var urlroute = '{{ route("resit.advansur", ":id") }}';
+ urlroute = urlroute.replace(':id', bayaran['norujukan']);
+ bayaranupah.row.add([
+ counter,
+ bayaran['tarikh'],
+ "RM " + bayaran['upahDibayar'],
+ '
Cetak'
+ ]).draw();
+ counter = counter + 1;
+ });
+ }
+
function historybayarantable(data){
var counter = 1;
diff --git a/resources/views/homepage/penilai/home.blade.php b/resources/views/homepage/penilai/home.blade.php
index d3e45b3..0b39319 100644
--- a/resources/views/homepage/penilai/home.blade.php
+++ b/resources/views/homepage/penilai/home.blade.php
@@ -170,6 +170,7 @@
+
@@ -288,6 +289,29 @@
location.reload();
});
+ function checkallfunction(){
+ let totalmarhun = 0;
+
+ if(this.checked) {
+ // Iterate each checkbox
+ $(':checkbox').each(function() {
+ let marhun = Number($(this).data("marhun"));
+ totalmarhun += marhun;
+ this.checked = true;
+ });
+ $("#btn-serah").prop('disabled', false);
+ $('#marhunpilih').val(formatter.format(totalmarhun.toFixed(2)));
+ } else {
+ $(':checkbox').each(function() {
+ let marhun = Number($(this).data("marhun"));
+ totalmarhun -= marhun;
+ this.checked = false;
+ });
+ $('#marhunpilih').val(0);
+ $("#btn-serah").prop('disabled', true);
+ }
+ }
+
function checkallfunc(){
let totalmarhun = 0;
diff --git a/resources/views/homepage/penilai/home.blade.php.save b/resources/views/homepage/penilai/home.blade.php.save
deleted file mode 100644
index e69de29..0000000
diff --git a/resources/views/homepage/penilai/home.blade.php.save.1 b/resources/views/homepage/penilai/home.blade.php.save.1
deleted file mode 100644
index f5fc33d..0000000
--- a/resources/views/homepage/penilai/home.blade.php.save.1
+++ /dev/null
@@ -1,563 +0,0 @@
-@extends('layouts.app')
-@section('content')
-
-
-
-
-
-
-
-
-
-
-
Marhun
-
-
-
- | Bil |
- Jenis Marhun |
- Berat |
- Karat |
- Nilai Marhun |
- Nota |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Marhun
-
-
-
- | Bil |
- Jenis Marhun |
- Berat |
- Karat |
- Nilai Marhun |
- Nota |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- | Bil |
- Nama |
- No KP |
- No Rujukan |
- Pembiayaan (RM) |
- Nilai Marhun (RM) |
- Berat (g) |
-
-
-
- @php $count=1; @endphp
- @if (is_array($gadaian_semasa) || is_object($gadaian_semasa))
- @foreach($gadaian_semasa as $index=>$gadaian)
-
- | {{ $count }} |
-
- @php
- $customer_info = Http::get($api_url . '/api/customers/'. $gadaian['nokp'])->json();
- echo ($customer_info[0]['nama']);
- @endphp
- |
- {{ $gadaian['nokp'] }} |
-
- @php
- $marhun = Http::get($api_url . '/api/marhun/' . $gadaian['norujukan'] )->json();
- @endphp
- {{$gadaian['norujukan']}}
- |
- {{ number_format($gadaian['pinjaman'],2) }} |
- {{ number_format($gadaian['nilaimarhun'],2) }} |
- {{ number_format($gadaian['berat'],2) }} |
-
- @php $count++; @endphp
- @endforeach
- @endif
-
-
-
-
-
-
-
-
-
-
-
- Jumlah Nilai Marhun Dipilih
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- | Bil |
- Nama |
- No KP |
- No Rujukan |
- Pembiayaan (RM) |
- Nilai Marhun (RM) |
- Berat (g) |
-
-
-
-
-
-
-
-
-
-
-
-
-
-@endsection
diff --git a/resources/views/khazanah/dashboard.blade.php b/resources/views/khazanah/dashboard.blade.php
index 46c23a3..314c8bf 100644
--- a/resources/views/khazanah/dashboard.blade.php
+++ b/resources/views/khazanah/dashboard.blade.php
@@ -25,8 +25,9 @@
-
-
+ {{--
+
+
--}}
{{-- First Column --}}
@@ -258,6 +259,23 @@
var tablecapaian = $('#table-capaian').DataTable({
"scrollX": true
});
+
+ $('#dashboarddate').datepicker({
+ format: 'dd-mm-yyyy'
+ });
+
+ $('#dashboarddate').change(function(){
+
+ $.ajax({
+ method:'get',
+ url: "{{ route('khazanah.dashboarddate') }}",
+ data:{'kodcaw' : kodcaw,'tarikh' : date },
+ success: function(panjar){
+ gadaitable(panjar);
+ }
+ });
+
+ });
diff --git a/resources/views/khazanah/laporan/ansuran.blade.php b/resources/views/khazanah/laporan/ansuran.blade.php
index 9724af1..5d7fa10 100644
--- a/resources/views/khazanah/laporan/ansuran.blade.php
+++ b/resources/views/khazanah/laporan/ansuran.blade.php
@@ -9,6 +9,7 @@
- Home
- Laporan
+ - Ansuran & Upah
- Ansuran
diff --git a/resources/views/khazanah/laporan/ansuranupah.blade.php b/resources/views/khazanah/laporan/ansuranupah.blade.php
new file mode 100644
index 0000000..a50bc9b
--- /dev/null
+++ b/resources/views/khazanah/laporan/ansuranupah.blade.php
@@ -0,0 +1,112 @@
+@extends('layouts.app')
+
+@section('content')
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+@endsection
diff --git a/resources/views/khazanah/laporan/gadaian.blade.php b/resources/views/khazanah/laporan/gadaian.blade.php
index dd4b71e..61f1da9 100644
--- a/resources/views/khazanah/laporan/gadaian.blade.php
+++ b/resources/views/khazanah/laporan/gadaian.blade.php
@@ -28,7 +28,7 @@
Tarikh
-
+
@@ -78,7 +78,7 @@
"ordering": false
});
$(document).ready( function () {
- $('#datetimepicker1').datepicker({
+ $('#datetarikh').datepicker({
format: 'dd-mm-yyyy'
});
var current = new Date();
@@ -95,7 +95,7 @@
});
});
- $('#datetimepicker1').change(function(){
+ $('#datetarikh').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];
@@ -121,17 +121,13 @@
tablegadai.clear().draw();
$.each(data,function(index,gadai){
- $.ajax({
- method:'get',
- url:api_url + '/api/customers/' + gadai['nokp'],
- success:function(customer){
total_pinjaman += Number(gadai['pinjaman']);
total_upah12 += Number(gadai['upah12']);
total_nm += Number(gadai['nilaimarhun']);
total_berat += Number(gadai['berat']);
tablegadai.row.add([
counter,
- customer['nama'],
+ gadai['nama'],
gadai['nokp'],
gadai['norujukan'],
formatter.format(gadai['pinjaman']),
@@ -144,11 +140,8 @@
$('#nmtotal').text(formatter.format(total_nm.toFixed(2)));
$('#berattotal').text(formatter.format(total_berat.toFixed(2)));
counter = counter + 1;
- }
- });
});
}
@endsection
-
diff --git a/resources/views/khazanah/laporan/index.blade.php b/resources/views/khazanah/laporan/index.blade.php
index 959af9b..f7f3e5a 100644
--- a/resources/views/khazanah/laporan/index.blade.php
+++ b/resources/views/khazanah/laporan/index.blade.php
@@ -26,7 +26,7 @@
Pelanggan Baru
@@ -40,17 +41,16 @@
| Bil |
- Nama |
+ Nama |
No K/P |
No Rujukan |
- Tarikh Tebus |
Pembiayaan (RM) |
Keuntungan (RM) |
Bayaran (RM) |
- TOTAL |
+ TOTAL |
|
|
|
@@ -76,30 +76,31 @@
"ordering": true
});
$(document).ready( function () {
- $('#datetimepicker1').datepicker({
+ $('#datetarikh').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;
+ var today_date = current_year + '-' + current_month + '-' + current_date;
$.ajax({
method:'get',
- url: api_url + '/api/tebus/laporan/'+kodcaw+'/' + today_date,
+ url: api_url + '/api/tebus/laporan/' +kodcaw+ '/' + today_date,
success: function(tebus){
tebustable(tebus);
}
});
});
- $('#datetimepicker1').change(function(){
+ $('#datetarikh').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];
+ var today_date = split_date[2] + '-' + split_date[1] + '-' + split_date[0];
$.ajax({
method:'get',
- url: api_url + '/api/tebus/laporan/'+kodcaw+'/' + today_date,
+ url: api_url + '/api/tebus/laporan/' + kodcaw + '/' + today_date,
success: function(tebus){
tebustable(tebus);
}
@@ -110,7 +111,6 @@
});
-
const formatter = new Intl.NumberFormat('en-US', {
minimumFractionDigits: 2
});
@@ -120,40 +120,62 @@
var total_pinjaman = 0;
var total_keuntungan = 0;
var total_bayaran = 0;
+
+ console.log(data);
tabletebus.clear().draw();
$.each(data,function(index,tebus){
- $.ajax({
- url:api_url + '/api/gadai/norujukan/' + tebus['norujukan'],
- method:'get',
- success:function(gadai){
- $.ajax({
- url:api_url + '/api/customers/' + gadai[0][0]['nokp'],
- method:'get',
- success:function(customer){
- total_pinjaman += parseFloat(tebus['pinjaman']);
- total_keuntungan += parseFloat(tebus['bakiupah']);
- total_bayaran += parseFloat(tebus['bakipjm']);
- tabletebus.row.add([
- counter,
- customer['nama'],
- gadai[0][0]['nokp'],
- tebus['norujukan'],
- tebus['t_tebus'],
- formatter.format(tebus['pinjaman']),
- formatter.format(tebus['bakiupah']),
- formatter.format(tebus['bakipjm'])
- ]).draw();
- counter = counter + 1;
- $('#pinjamantotal').text(formatter.format(total_pinjaman.toFixed(2)));
- $('#keuntungantotal').text(formatter.format(total_keuntungan.toFixed(2)));
- $('#bayarantotal').text(formatter.format(total_bayaran.toFixed(2)));
-
- }
- });
- }
- });
+ total_pinjaman += parseFloat(tebus['pinjaman']);
+ total_keuntungan += parseFloat(tebus['bakiupah']);
+ total_bayaran += parseFloat(tebus['bakipjm']);
+ tabletebus.row.add([
+ counter,
+ tebus['nama'],
+ tebus['nokp'],
+ tebus['norujukan'],
+ formatter.format(tebus['pinjaman']),
+ formatter.format(tebus['bakiupah']),
+ formatter.format(tebus['bakipjm'])
+ ]).draw();
+ counter = counter + 1;
+ $('#pinjamantotal').text(formatter.format(total_pinjaman.toFixed(2)));
+ $('#keuntungantotal').text(formatter.format(total_keuntungan.toFixed(2)));
+ $('#bayarantotal').text(formatter.format(total_bayaran.toFixed(2)));
});
+
+
+ // $.each(data,function(index,tebus){
+ // $.ajax({
+ // url:api_url + '/api/gadai/norujukan/' + tebus['norujukan'],
+ // method:'get',
+ // success:function(gadai){
+ // $.ajax({
+ // url:api_url + '/api/customers/' + gadai[0][0]['nokp'],
+ // method:'get',
+ // success:function(customer){
+ // total_pinjaman += parseFloat(tebus['pinjaman']);
+ // total_keuntungan += parseFloat(tebus['bakiupah']);
+ // total_bayaran += parseFloat(tebus['bakipjm']);
+ // tabletebus.row.add([
+ // counter,
+ // customer['nama'],
+ // gadai[0][0]['nokp'],
+ // tebus['norujukan'],
+ // tebus['t_tebus'],
+ // formatter.format(tebus['pinjaman']),
+ // formatter.format(tebus['bakiupah']),
+ // formatter.format(tebus['bakipjm'])
+ // ]).draw();
+ // counter = counter + 1;
+ // $('#pinjamantotal').text(formatter.format(total_pinjaman.toFixed(2)));
+ // $('#keuntungantotal').text(formatter.format(total_keuntungan.toFixed(2)));
+ // $('#bayarantotal').text(formatter.format(total_bayaran.toFixed(2)));
+
+ // }
+ // });
+ // }
+ // });
+ // });
// console.log('Total Pinjam : ' + total_pinjaman);
// $('#jumlah_pinjaman').text('RM '+ total_pinjaman);
diff --git a/resources/views/khazanah/laporan/ringkasanterkumpul.blade.php b/resources/views/khazanah/laporan/ringkasanterkumpul.blade.php
new file mode 100644
index 0000000..29e492d
--- /dev/null
+++ b/resources/views/khazanah/laporan/ringkasanterkumpul.blade.php
@@ -0,0 +1,70 @@
+@extends('layouts.app')
+
+@section('content')
+
+
+@endsection
+
diff --git a/resources/views/khazanah/laporan/upah.blade.php b/resources/views/khazanah/laporan/upah.blade.php
new file mode 100644
index 0000000..2600868
--- /dev/null
+++ b/resources/views/khazanah/laporan/upah.blade.php
@@ -0,0 +1,214 @@
+@extends('layouts.app')
+
+@section('content')
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | Bil |
+ Tarikh |
+ No Rujukan |
+ Teller |
+ Pinjaman |
+ JBG |
+ Upah Dibayar |
+
+
+
+ TOTAL |
+ |
+ |
+ |
+
+
+
+
+
+
+
+
+
+
+
+@endsection
+
diff --git a/resources/views/lelongan/index.blade.php b/resources/views/lelongan/index.blade.php
index bf08b1b..302fb3b 100644
--- a/resources/views/lelongan/index.blade.php
+++ b/resources/views/lelongan/index.blade.php
@@ -54,11 +54,11 @@
@@ -239,17 +239,19 @@
let api = "{{ config('api.url') }}";
let nowakil = 0;
let jenis = '';
+ let mohon = '';
if($("input[name='radlelong']:checked").val() == 'baki')
{
jenis = 'T';
- let mohon = "Tuntut Baki Lelongan";
+ mohon = "Tuntut Baki Lelongan";
}else{
jenis = 'B';
- let mohon = "Bayar Baki Lelongan";
+ mohon = "Bayar Baki Lelongan";
}
+
let batchno = $('#batch').val();let teller = "{{ Auth::user()->name }}";let bakipjm = $('#pembiayaan').val().replace(/[^0-9.-]+/g,"");let bakiupah = $('#keuntungan').val();
let cajlain = 0.00; let cajlelong = $('#cajlelong').val();
let jumlah = $('#jumlah').val().replace(/[^0-9.-]+/g,"");let hargajual = $('#hargajual').val().replace(/[^0-9.-]+/g,"");
diff --git a/resources/views/modal/historytebus.blade.php b/resources/views/modal/historytebus.blade.php
index 0de2db9..d1c0d8e 100644
--- a/resources/views/modal/historytebus.blade.php
+++ b/resources/views/modal/historytebus.blade.php
@@ -24,6 +24,9 @@
Bayaran
+
+ Upah
+
Rekod
@@ -44,6 +47,21 @@
+
+
+
+
+
+ | Bil |
+ Tarikh |
+ Upah |
+ Action |
+
+
+
+
+
+
diff --git a/resources/views/penebusan/index.blade.php b/resources/views/penebusan/index.blade.php
index 529b4d3..f672226 100644
--- a/resources/views/penebusan/index.blade.php
+++ b/resources/views/penebusan/index.blade.php
@@ -2234,7 +2234,7 @@
sumberat += parseFloat(value);
});
- var jenistebus = $('#sltjenistebus').find(":selected").val();
+ var jenistebus = $('#sltjenistebus').find(":selected").val();
var nopelanggan = "{{ $gadai['nopelanggan'] }}";
var jbg = "{{ $gadai['tempoh'] }}";
var kadarupah = "{{ $gadai['kadarupah'] }}";
diff --git a/resources/views/print/laporan_gadaian.blade.php b/resources/views/print/laporan_gadaian.blade.php
index f7b6e19..addd58a 100644
--- a/resources/views/print/laporan_gadaian.blade.php
+++ b/resources/views/print/laporan_gadaian.blade.php
@@ -180,14 +180,14 @@
$formattedweddingdate = $myDateTime->format('d-m-Y');
echo($formattedweddingdate)
@endphp
-
-
| Tarikh Cetak |
@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
$formattedweddingdate = $myDateTime->format('d-m-Y');
echo($formattedweddingdate)
@endphp |
+
+
|
|
|
@@ -214,9 +214,9 @@
Keuntungan |
Peratus (%) |
- @php $counter = 1; $totalpinjaman = 0; @endphp
+ @php $counter = 1; $totalpinjaman = 0; $totalberat = 0; $totalnm = 0; $totalupah = 0;@endphp
@foreach($gadai as $index=>$item)
- @php $totalpinjaman += $item['pinjaman'] @endphp
+ @php $totalpinjaman += $item['pinjaman']; $totalberat += $item['berat']; $totalnm += $item['nilaimarhun']; $totalupah += $item['upah12']; @endphp
@if($index > 0)
@if($item['teller'] != $gadai[$index - 1]['teller'])
@@ -235,12 +235,9 @@
| {{ $counter }} |
{{$item['norujukan']}} |
- @php
- $customer_detail = Http::get($api_url . '/api/customers/' . $item['nokp'])->json();
- echo $customer_detail['nama'];
- @endphp
+ {{ $item['nama'] }}
|
- {{$customer_detail['alamat1']}} |
+ {{ $item['alamat1'] }} |
{{ $item['nokp'] }} |
{{ $item['masa'] }} |
{{ number_format($item['berat'],2) }} |
@@ -275,8 +272,25 @@
@endif
@endforeach
+
+
+
+ |
+ Berat (g/m) |
+ Nilai Marhun (RM) |
+ Pembiayaan (RM) |
+ Upah/Keuntungan (RM) |
+
+
+ | JUMLAH KESELURUHAN |
+ {{ number_format($totalberat,2) }} |
+ {{ number_format($totalnm,2) }} |
+ {{ number_format($totalpinjaman,2) }} |
+ {{ number_format($totalupah,2) }} |
+
+
-
JUMLAH KESELURUHAN GADAIAN : RM {{ number_format($totalpinjaman,2) }}
+{{--
JUMLAH KESELURUHAN GADAIAN : RM {{ number_format($totalpinjaman,2) }}
--}}
@@ -298,22 +312,6 @@
-
Laporan Transaksi Gadaian
-
-
-
-
- | Bil |
- Jenis |
- Penebusan(RM) |
-
-
- | 0 |
- Rugi Lelong |
- 0.00 |
-
-
-
diff --git a/resources/views/print/laporan_lejer_am.blade.php b/resources/views/print/laporan_lejer_am.blade.php
index 6ead757..ef6bc18 100644
--- a/resources/views/print/laporan_lejer_am.blade.php
+++ b/resources/views/print/laporan_lejer_am.blade.php
@@ -1,452 +1,454 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-| TARIKH DARI | {{$tarikh_mula}} |
-HINGGA | {{$tarikh_akhir}} |
-
-
-
-
-
-
-
+ #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;
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | TARIKH DARI | {{$tarikh_mula}} |
+ HINGGA | {{$tarikh_akhir}} |
+
+
+
+
+
+
+
+
+ | KOD GL | KETERANGAN | DEBIT | KREDIT | JUMLAH |
+
+ @foreach($data as $index=>$var)
+
+
+ | {{ $var['glcode']}} | {{$var['descpt']}} | {{$var['total_debit']}} | {{$var['total_kredit']}} |
+
+ @if($var['totalharini'] >0 )
+ {{
+
+ $var['totalharini']
+ }}
+
+
+
+ |
+ @else
+
+
+
+ ( {{ number_format(abs($var['totalharini']),2)}} )
- |
-@else
-
-
-
-( {{ number_format(abs($var['hariini']),2)}} )
-
-
-
- |
-
- @endif
-
-
-@endforeach
-
-
-| JUMLAH: | @foreach($debit as $db=>$vr) {{ number_format($vr['totalDebit'],2)}} @endforeach
-
- | @foreach($kredit as $db=>$vr) {{ number_format($vr['totalKredit'],2)}} @endforeach |
-
-
-
-@foreach($kredit as $db=>$vr)
-@foreach($debit as $db2=>$vr2)
-
-{{ number_format($vr['totalKredit'] -$vr2['totalDebit'] ,2) }}
-@endforeach
+ |
+
+ @endif
+
+
@endforeach
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-| | DISEMAK | | DISAHKAN | |
-
-
-
-| |
- |
-
- |
-
- |
-
-
-
-
-
-| |
- |
-
- |
-
- |
-
-
-
-
-
-
-
-
-
- |
- ........................................................ | |
- ......................................................... |
- |
-
-
-
\ No newline at end of file
+
+
+ | JUMLAH: | @foreach($debit as $db=>$vr) {{ number_format($vr['totalDebit'],2)}} @endforeach
+
+ | @foreach($kredit as $db=>$vr) {{ number_format($vr['totalKredit'],2)}} @endforeach |
+
+
+
+ @foreach($kredit as $db=>$vr)
+ @foreach($debit as $db2=>$vr2)
+
+ {{ number_format($vr['totalKredit'] -$vr2['totalDebit'] ,2) }}
+ @endforeach
+ @endforeach
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | | DISEMAK | | DISAHKAN | |
+
+
+
+ | |
+ |
+
+ |
+
+ |
+
+
+
+
+
+ | |
+ |
+
+ |
+
+ |
+
+
+
+
+
+
+
+
+
+ |
+ ........................................................ | |
+ ......................................................... |
+ |
+
+
+
\ No newline at end of file
diff --git a/resources/views/print/laporan_penebusan.blade.php b/resources/views/print/laporan_penebusan.blade.php
index 49fbfca..0fcc15a 100644
--- a/resources/views/print/laporan_penebusan.blade.php
+++ b/resources/views/print/laporan_penebusan.blade.php
@@ -145,12 +145,6 @@
-
-
-
-
-
-
@@ -219,9 +207,9 @@
Bayaran(RM) |
Jumlah(RM) |
- @php $counter = 1; $totalbayaran = 0;@endphp
+ @php $counter = 1; $totalbayaran = 0; $totalpinjaman = 0; $totalupah = 0;@endphp
@foreach($tebus as $index=>$item)
- @php $totalbayaran += ($item['jenistebus'] === 'S') ? ($item['pinjaman']+$item['bakiupah']) : $item['bakipjm']; @endphp
+ @php $totalbayaran += ($item['jenistebus'] === 'S') ? ($item['pinjaman']+$item['bakiupah']) : $item['bakipjm']; $totalpinjaman += $item['pinjaman']; $totalupah += $item['bakiupah'];@endphp
@if($index > 0)
@if($item['teller'] != $tebus[$index - 1]['teller'])
@@ -238,18 +226,11 @@
| {{ $counter }} |
{{ $item['norujukan'] }} |
-
- @php
- $gadai_detail = Http::get($api_url . '/api/gadai/norujukan/'. $item['norujukan'])->json();
- $customer_detail = Http::get($api_url . '/api/customers/' . $gadai_detail[0][0]['nokp'])->json();
-
- echo $customer_detail['nama'];
- @endphp
- |
- {{$gadai_detail[0][0]['nokp']}} |
+ {{ $item['nama'] }} |
+ {{ $item['nokp'] }} |
@php
- $myDateTime = DateTime::createFromFormat('Y-m-d', $gadai_detail[0][0]['t_gadai']);
+ $myDateTime = DateTime::createFromFormat('Y-m-d', $item['t_gadai']);
$formattedweddingdate = $myDateTime->format('d-m-Y');
echo($formattedweddingdate);
@endphp
@@ -296,24 +277,19 @@
@endforeach
-JUMLAH KESELURUHAN BAYARAN : RM {{ number_format($totalbayaran,2) }}
-
-
-
-
+
+
- |
- .................................................................. |
- |
- .................................................................. |
- |
+ |
+ Pembiayaan (RM) |
+ Upah/Keuntungan (RM) |
+ Jumlah (RM) |
- |
- DI SEMAK |
- |
- DI SAHKAN |
- |
+ JUMLAH KESELURUHAN |
+ {{ number_format($totalpinjaman,2) }} |
+ {{ number_format($totalupah,2) }} |
+ {{ number_format($totalbayaran,2) }} |
@@ -349,12 +325,26 @@
{{ number_format($upahlama['total'],2) }} |
Not Applicable |
+
+
+{{-- JUMLAH KESELURUHAN BAYARAN : RM {{ number_format($totalbayaran,2) }} --}}
+
+
+
+
- | 0 |
- Baki Lelong |
- 0.00 |
- Not Applicable |
- Not Applicable |
+ |
+ .................................................................. |
+ |
+ .................................................................. |
+ |
+
+
+ |
+ DI SEMAK |
+ |
+ DI SAHKAN |
+ |
@@ -363,3 +353,5 @@
+
+
diff --git a/resources/views/print/laporan_ringkasanterkumpulv2.blade.php b/resources/views/print/laporan_ringkasanterkumpulv2.blade.php
new file mode 100644
index 0000000..f294468
--- /dev/null
+++ b/resources/views/print/laporan_ringkasanterkumpulv2.blade.php
@@ -0,0 +1,188 @@
+
+
+
+
+
+
+
+Tarikh Mula: {{ $mula_date }} Tarikh Hingga : {{ $hingga_date }} Tarikh Cetak : {{ $tarikh_cetak }}
+
+
+
+
+
+
+
+
+
+ H) PERATUSAN PEMBIAYAAN
+
+
+
+
+
+
+
+ |
+ MARGIN |
+ 70% |
+ 75% |
+ 80% |
+
+
+
+
+ | 1 |
+ PEMBIAYAAN |
+ RM {{ number_format($laporan_ringkasan['gadai_70'],2) }} |
+ RM {{ number_format($laporan_ringkasan['gadai_75'],2) }} |
+ RM {{ number_format($laporan_ringkasan['gadai_80'],2) }} |
+
+
+ | 2 |
+ NILAI MARHUN |
+ RM {{ number_format($laporan_ringkasan['nilaimarhun_70'],2) }} |
+ RM {{ number_format($laporan_ringkasan['nilaimarhun_75'],2) }} |
+ RM {{ number_format($laporan_ringkasan['nilaimarhun_80'],2) }} |
+
+
+ | 3 |
+ BILANGAN |
+ {{ $laporan_ringkasan['bilangan_70'] }} |
+ {{ $laporan_ringkasan['bilangan_75'] }} |
+ {{ $laporan_ringkasan['bilangan_80'] }} |
+
+
+
+
+
+
+
+
+
+
+
+
+ ................................................
+
+
+
+
+
+ ................................................
+
+
+
\ No newline at end of file
diff --git a/resources/views/print/laporan_upah.blade.php b/resources/views/print/laporan_upah.blade.php
new file mode 100644
index 0000000..cfb975b
--- /dev/null
+++ b/resources/views/print/laporan_upah.blade.php
@@ -0,0 +1,317 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | LAPORAN UPAH |
+ |
+ |
+ |
+
+
+ | TARIKH CETAK:
+ @php
+ $myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
+ $formattedweddingdate = $myDateTime->format('d-m-Y');
+ echo($formattedweddingdate);
+ @endphp
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+
+
+ | MULA: |
+ @php
+ $myDateTime = DateTime::createFromFormat('Y-m-d', $mula_date);
+ $formattedweddingdate = $myDateTime->format('d-m-Y');
+ echo($formattedweddingdate);
+ @endphp |
+ HINGGA: |
+ @php
+ $myDateTime = DateTime::createFromFormat('Y-m-d', $hingga_date);
+ $formattedweddingdate = $myDateTime->format('d-m-Y');
+ echo($formattedweddingdate);
+ @endphp |
+ |
+ |
+ |
+ |
+ |
+ |
+
+
+
+
+
+
+ | Bil |
+ Tarikh |
+ No Rujukan |
+ Teller |
+ Pinjaman |
+ JBG |
+ Upah Dibayar |
+
+ @php $counter = 1; $totalbayaran = 0; $totalpembiayaan = 0; $totalpembiayaanteller = 0; $totalbayaranteller = 0; @endphp
+ @foreach($advansur as $index=>$item)
+ @php $totalbayaran += $item['upahDibayar']; $totalpembiayaan += $item['pinjaman'];$totalbayaranteller += $item['upahDibayar']; $totalpembiayaanteller += $item['pinjaman']; @endphp
+ @if($index > 0)
+ @if($item['teller'] != $advansur[$index - 1]['teller'])
+
+ | Teller : {{ $item['teller'] }} |
+
+ @php $counter = 1;$totalpembiayaanteller = 0; $totalbayaranteller = 0; @endphp
+ @endif
+ @else
+
+ | Teller : {{ $item['teller'] }} |
+
+ @php $counter = 1;$totalpembiayaanteller = 0; $totalbayaranteller = 0; @endphp
+
+ @endif
+
+
+ | {{ $counter }} |
+ {{ $item['tarikh'] }} |
+ {{ $item['norujukan'] }} |
+ {{ $item['teller'] }} |
+ {{ number_format($item['pinjaman'],2) }} |
+ {{ $item['jbg'] }} |
+ {{ number_format($item['upahDibayar'],2) }} |
+
+ @php $counter++; @endphp
+ @if($index+1 < sizeof($advansur))
+ @if($item['teller'] != $advansur[$index + 1]['teller'])
+
+ | {{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }} |
+ {{ number_format($totalpembiayaanteller,2) }} |
+ |
+ {{ number_format($totalbayaranteller,2) }} |
+
+ @php @endphp
+ @endif
+@else
+
+ | {{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }} |
+ {{ number_format($totalpembiayaanteller,2) }} |
+ |
+ {{ number_format($totalbayaranteller,2) }} |
+
+@endif
+ @endforeach
+
+
+
+
+ |
+ Pembiayaan (RM) |
+ Upah Dibayar (RM) |
+
+
+ | JUMLAH KESELURUHAN |
+ {{ number_format($totalpembiayaan,2) }} |
+ {{ number_format($totalbayaran,2) }} |
+
+
+
+
+
+
+
+ |
+ .................................................................. |
+ |
+ .................................................................. |
+ |
+ .................................................................. |
+ |
+
+
+ |
+ Disediakan |
+ |
+ Disemak |
+ |
+ Disahkan |
+ |
+
+
+
+
+
+
+
+
diff --git a/routes/web.php b/routes/web.php
index fbc9f25..b731a31 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -133,7 +133,7 @@ Route::post('laporan/tebus/cetak',['as'=>'tebus.laporancetak','uses'=>'KhazanahC
Route::get('/khazanah/pelanggan',['as'=>'khazanah.pelanggan','uses'=>'KhazanahController@index'])->middleware('auth','khazanah');
Route::get('/khazanah/customer_info',['as'=>'khazanah.customer_info','uses'=>'KhazanahController@info'])->middleware('auth','khazanah');
Route::get('/khazanah/searchpelanggan',['as'=>'khazanah.searchpelanggan','uses'=>'KhazanahController@search'])->middleware('auth','khazanah');
-Route::post('/khazanah/pendahuluanserahanHQ',['as'=>'khazanah.pendahuluanserahanHQ','uses'=>'KhazanahController@pendahuluanserahanHQ'])->middleware('auth','khazanah');
+Route::get('/khazanah/pendahuluanserahanHQ',['as'=>'khazanah.pendahuluanserahanHQ','uses'=>'KhazanahController@pendahuluanserahanHQ'])->middleware('auth','khazanah');
Route::get('/penebusankhazanah/{norujukan}',['as'=>'penebusan.khazanah','uses' => 'PenebusanController@PenebusanKhazanah'])->middleware('auth','khazanah');
Route::post('/kakitangan/harian',['as'=>'kakitangan.harian','uses'=>'KakitanganController@kakitanganHarian'])->middleware('auth','khazanah');
@@ -150,6 +150,7 @@ Route::post('/kemaskinipendahuluan', ['as' =>'khazanah.kemaskiniPendahuluan','us
Route::post('/kemaskiniserahan',['as'=>'khazanah.KemaskiniSerahan','uses'=>'KhazanahController@KemaskiniSerahan'])->middleware('auth','khazanah');
Route::get('/kakitangan',['as'=>'khazanah.kakitangan','uses'=>'KhazanahController@kakitangan'])->middleware('auth','khazanah');
Route::get('/dashboard',['as'=>'khazanah.dashboard','uses'=>'KhazanahController@dashboard'])->middleware('auth','khazanah');
+Route::get('/dashboarddate',['as'=>'khazanah.dashboarddate','uses'=>'KhazanahController@changedatedashboard'])->middleware('auth','khazanah');
Route::get('/capaian',['as'=>'khazanah.capaian','uses'=>'KhazanahController@capaian'])->middleware('auth','khazanah');
Route::get('/alirantunai',['as'=>'khazanah.alirantunai','uses'=>'KhazanahController@alirantunai'])->middleware('auth','khazanah');
Route::get('/pelangganan',['as'=>'khazanah.pelangganan','uses'=>'KhazanahController@pelanggan'])->middleware('auth','khazanah');
@@ -181,6 +182,9 @@ Route::put('/simpantuntutbaki',['as'=>'lelong.tuntutbaki','uses'=>'LelongControl
//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');
+Route::get('/laporan/homepage/ansuranupah',['as'=>'homepage.ansuranupah','uses'=>'KhazanahController@PemilihanAnsUpah'])->middleware('auth','khazanah');
+Route::get('/laporan/upah',['as'=>'laporan.upah','uses'=>'KhazanahController@LaporanUpah'])->middleware('auth','khazanah');
+Route::post('laporan/upah/cetak',['as'=>'upah.laporancetak','uses'=>'KhazanahController@cetaklaporan_Upah'])->middleware('auth','khazanah');
Route::get('/laporan/ansuran',['as'=>'laporan.ansuran','uses'=>'KhazanahController@laporanAnsuran'])->middleware('auth','khazanah');
Route::post('laporan/ansuran/cetak',['as'=>'ansuran.laporancetak','uses'=>'KhazanahController@cetakLaporanAnsuran'])->middleware('auth','khazanah');
Route::get('/laporan/pelangganbaru',['as'=>'laporan.pelangganbaru','uses'=>'KhazanahController@laporanPelangganBaru'])->middleware('auth','khazanah');
@@ -199,6 +203,7 @@ 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/',['as'=>'laporan.ringkasanharian','uses'=>'KhazanahController@laporanRingkasanHarian'])->middleware('auth','khazanah');
Route::get('laporan/ringkasanharian/cetak',['as'=>'ringkasanharian.laporancetak','uses'=>'KhazanahController@cetakLaporanRingkasanHarian'])->middleware('auth','khazanah');
+Route::get('laporan/ringkasanterkumpul/',['as'=>'laporan.ringkasanterkumpul','uses'=>'KhazanahController@laporanRingkasanTerkumpul'])->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');
|