diff --git a/app/Http/Controllers/AliranTunaiController.php b/app/Http/Controllers/AliranTunaiController.php index dec40c4..7ceee81 100644 --- a/app/Http/Controllers/AliranTunaiController.php +++ b/app/Http/Controllers/AliranTunaiController.php @@ -18,6 +18,10 @@ class AliranTunaiController extends Controller public function index(){ $auth_user = Auth::user(); $cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json(); - return view('aliran_tunai.index',compact('cawangan_info')); + $alirantunai = Http::get(config('api.url') . '/api/GetCurrentTunai/' . $auth_user['cawangan'] . '/' . 'SAMSIANA')->json(); + + $api_url = config('api.url'); + + return view('aliran_tunai.index',compact('cawangan_info','alirantunai','api_url')); } } diff --git a/app/Http/Controllers/CustomersController.php b/app/Http/Controllers/CustomersController.php index 25890ec..d0a1155 100644 --- a/app/Http/Controllers/CustomersController.php +++ b/app/Http/Controllers/CustomersController.php @@ -96,7 +96,7 @@ class CustomersController extends Controller */ public function store(Request $request) { - dd($request); + // dd(request()->all()); if($request->warganegara){ $warganegara = 'Y'; }else{ diff --git a/app/Http/Controllers/KhazanahController.php b/app/Http/Controllers/KhazanahController.php index ed9dae3..d41b704 100644 --- a/app/Http/Controllers/KhazanahController.php +++ b/app/Http/Controllers/KhazanahController.php @@ -2,6 +2,7 @@ namespace App\Http\Controllers; +use App\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Http; use Illuminate\Support\Facades\Auth; @@ -16,8 +17,10 @@ class KhazanahController extends Controller $auth_user = Auth::user(); $api_url = config('api.url'); $gadai = Http::get( config('api.url') .'/api/gadai/serah_marhun/khazanah/'. $auth_user['cawangan'])->json(); + $listserah = Http::get(config('api.url').'/api/listSerahMarhunController/'.$auth_user['cawangan'])->json(); + $cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json(); - return view('khazanah.menu',compact('cawangan_info','api_url','gadai')); + return view('khazanah.menu',compact('cawangan_info','api_url','gadai','listserah')); } public function gadaian() @@ -32,12 +35,97 @@ class KhazanahController extends Controller return view('khazanah.gadaian',compact('cawangan_info','api_url','gadai','petibesi')); } + //KHAZANAH FARIS EDITED + public function tebus() { $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.tebus',compact('cawangan_info','api_url')); + $listserah = Http::get(config('api.url').'/api/listSerahMarhunController/'.$auth_user['cawangan'])->json(); + $senaraitebus = Http::get(config('api.url').'/api/SenaraiPenebusanKhazanah/'.$auth_user['cawangan'])->json(); + + + return view('khazanah.tebus',compact('cawangan_info','api_url','listserah','senaraitebus')); + } + + public function barcodescannedtebus(Request $request) + { + $auth_user = Auth::user(); + + $update=Http::put(config('api.url').'/api/updatetagterima/'.$auth_user['cawangan'].'/'.$request->norujukan_barcode)->json(); + + return $this->tebus(); + } + + //END KHAZANAH FARIS + + public function pendahuluanserah($id) + { + + $array_reqteller = []; + + $auth_user = Auth::user(); + $api_url = config('api.url'); + + $gadai = Http::get( config('api.url') .'/api/gadai/serah_marhun/khazanah/'. $auth_user['cawangan'])->json(); + $cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json(); + + $reqTeller = Http::get( config('api.url') .'/api/requestTeller/get/'. $auth_user['cawangan'].'/SAMSIANA')->json(); + + + + foreach($reqTeller as $index=>$req) + { + + if($id == $req['no']) + array_push($array_reqteller,["teller" => $req]); + + } + + + + $array_reqteller = $array_reqteller[0]['teller']; + + // dd($array_reqteller); + + + $listUser=User::where('cawangan',$auth_user['cawangan'] )->get(); + $denominasi=Http::get(config('api.url').'/api/DenominasiController/'.$auth_user['cawangan'])->json(); + + return view('khazanah.pendahuluanserah',compact('cawangan_info','api_url','listUser','denominasi','array_reqteller')); + } + + + + public function khazanahserahan($id) + { + $array_reqteller = []; + + $auth_user = Auth::user(); + $api_url = config('api.url'); + + $reqTeller = Http::get( config('api.url') .'/api/requestTeller/get/'. $auth_user['cawangan'].'/SAMSIANA')->json(); + + $gadai = Http::get( config('api.url') .'/api/gadai/serah_marhun/khazanah/'. $auth_user['cawangan'])->json(); + $cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json(); + + $listUser=User::where('cawangan',$auth_user['cawangan'] )->get(); + $denominasi=Http::get(config('api.url').'/api/DenominasiController/'.$auth_user['cawangan'])->json(); + + foreach($reqTeller as $index=>$req) + { + + if($id == $req['no']) + array_push($array_reqteller,["teller" => $req]); + + } + + $array_reqteller = $array_reqteller[0]['teller']; + + + return view('khazanah.khazanahserahan',compact('cawangan_info','api_url','listUser','denominasi','array_reqteller')); + } public function kelulusan() @@ -54,7 +142,9 @@ class KhazanahController extends Controller $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.pendahuluan',compact('cawangan_info','api_url')); + $tunai=Http::get(config('api.url').'/api/TunaiController/'.$auth_user['cawangan'])->json(); + + return view('khazanah.pendahuluan',compact('cawangan_info','api_url','auth_user','tunai')); } @@ -67,6 +157,15 @@ class KhazanahController extends Controller } + public function SenaraiPengguna() + { + $auth_user = Auth::user(); + $listUser=User::where('cawangan',$auth_user['cawangan'] )->get(); + $cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json(); + //dd($listUser); + return view('khazanah.pendahuluan',compact('listUser','cawangan_info')); + } + public function barcodescanned(Request $request){ // dd($request); $auth_user = Auth::user(); @@ -105,6 +204,316 @@ class KhazanahController extends Controller return view('khazanah.laporan.index',compact('cawangan_info','api_url','gadai')); } + public function kemaskiniPendahuluan(Request $request) //Daftar Pendahuluan kepada Kaunter + { + + $auth_user = Auth::user(); + $api_url = config('api.url'); + $peti_besi_terkini=Http::get(config('api.url').'/api/VaultController/'.$auth_user['cawangan'])->json(); + $baki_akhir=$peti_besi_terkini[0]["BakiAkhir"]; + + + $amount = $request->amt; + + // dd($baki_akhir); + + if($amount>$baki_akhir) + { + dd($amount); + //WI ERROR MESSAGE SKIT + } + else + { + + $tarikh=$request->tarikh; + $kodlaluan=$request->teller; + $tambah=$request->amt; + $kurang=0.0; + $nota=$request->nota; + $kodcaw=$auth_user['cawangan']; + + + // $addTunai=Http::post(config('api.url').'/api/add/addTunai/'.$auth_user['cawangan'],[ + // 'kodcaw'=>$kodcaw, + // 'KodLaluan'=>$kodlaluan, + // 'tambah'=>$tambah, + // 'kurang'=>$kurang, + // 'nota'=>$nota + // ]); + + $getTunai=Http::get(config('api.url').'/api/TunaiController/'.$auth_user['cawangan'])->json(); + + dd($getTunai); + return; + + if(sizeof($getTunai) == 0) + { + dd($getTunai); + } + else + { + $bakiawal=0;$masuk=0;$yuran=0;$keluar=0;$baki=0;$tmbh=0;$kurang=0; + + $daftarTunai=Http::post(config('api.url').'/api/tunai/daftarTunai/'.$auth_user['cawangan'],[ + 'teller'=>$request->teller + ]); + + + $BakiAkhirT=0;$BakiAwalT=0;$tambahT=0; + + $getTunai2=Http::get(config('api.url').'/api/TunaiController/'.$auth_user['cawangan'])->json(); + + + + $bakiAwal=$getTunai2[0]['BakiAwal']; + $keluar=$getTunai2[0]['Keluar']; + + if($bakiAwal==0) + { + $BakiAwalT=0; + } + else + { + $BakiAwalT=$bakiAwal; + } + if($keluar==0) + { + $tambahT=$tambah; + } + else + $tambahT=$keluar; + + $kurang=0; + $BakiAkhirT=$BakiAwalT+$tambahT; + + $updateTunai=Http::put( config('api.url').'/api/updateTunai/'.$auth_user['cawangan'].'/'.$kodlaluan, [ + + 'tambah'=>$tambahT, + 'kurang'=>$kurang, + 'bakiakhir'=>$BakiAkhirT + ]); + + // echo($tambahT); + // echo "
"; + // echo($kurang); + // echo "
"; + // echo($BakiAkhirT); + // dd($tambah); + + + $latestVault=Http::get( config('api.url').'/api/VaultController/'.$auth_user['cawangan'])->json(); + $masukV=$latestVault[0]['Masuk']; + $keluarV=$latestVault[0]['Keluar']; + $pendahuluanV=$latestVault[0]['pendahuluan']; + $serahanV=$latestVault[0]['serahan']; + $BakiAwalV=$latestVault[0]['BakiAwal']; + + + if($masukV==0) + { + $masukV=0; + } + else + { + $masukV=$latestVault[0]["Masuk"]; + } + + + if($keluarV==0) // checking wang keluar + { + $keluarV=0; + } + else + { + $keluarV=$latestVault[0]['Keluar']; + } + + if($pendahuluanV==0) + { + $pendahuluanV=0; + } + else + { + $pendahuluanV=$latestVault[0]['pendahuluan']; + } + + if($serahanV==0) + { + $serahanV=0; + + }else + { + $serahanV=$latestVault[0]['serahan']; + } + + $keluarV=$keluarV+$tambahT; + $GetLatestBakiTunai=Http::get( config('api.url').'/api/getLatestBaki/'.$auth_user['cawangan'])->json(); + + $bakiTerkini=$GetLatestBakiTunai; + $bakiAwalV=$BakiAwalV; + $bakiAkhirV=$bakiAwalV-$keluarV+$masukV+$pendahuluanV-$serahanV; + $bakiEOD=$bakiAkhirV+$GetLatestBakiTunai; + $createTempVault=Http::post(config('api.url').'/api/daftarVault/'.$auth_user['cawangan']); + + //get temporary latest vault/ petibesi + + $getVault=Http::get( config('api.url').'/api/VaultController/'.$auth_user['cawangan'])->json(); + + $updateVault=Http::put( config('api.url').'/api/UpdateVault/'.$auth_user['cawangan'],[ + + 'masuk'=>$masukV, + 'keluar'=>$keluarV, + 'bakiawal'=>$bakiAwalV, + 'bakiakhir'=>$bakiAkhirV, + 'bakieod'=>$bakiEOD + + ]); + + //-----PROCESS SELESAI----------------------------------- + //didplay final result + return view('khazanah.menu'); + //dd($updateVault); + + + } //endif + + } //end + + } //End + + public function KemaskiniSerahan(Request $request) + { + + $auth_user = Auth::user(); + $api_url = config('api.url'); + $peti_besi_terkini=Http::get(config('api.url').'/api/VaultController/'.$auth_user['cawangan'])->json(); + $baki_akhir=$peti_besi_terkini[0]["BakiAkhir"]; + $teller=$request->teller; + + $getTunai=Http::get(config('api.url').'/api/GetCurrentTunai/'.$auth_user['cawangan'].'/'.$teller)->json(); + $bakiAkhir=$getTunai[0]['Baki']; + $keluarT=$getTunai[0]['Keluar']; + $masukT=$getTunai[0]['Masuk']; + $tambahT=$getTunai[0]['Tambah']; + $kurangT=$getTunai[0]['Kurang']; + $bakiAwalT=$getTunai[0]['BakiAwal']; + + $tambah=$request->tambah; + + if($tambah>$bakiAkhir) + echo "Maaf, Serahan Lebih Besar Dari Baki Akhir Cash Box"; + + else + { + $tarikh=$request->tarikh; + $kodlaluan=$request->teller; + + $kurang=$request->kurang; + $nota=$request->nota; + $kodcaw=$auth_user['cawangan']; + + + $addTunai=Http::post(config('api.url').'/api/add/addTunai/'.$auth_user['cawangan'],[ + 'kodcaw'=>$kodcaw, + 'teller'=>$request->teller, + 'tambah'=>$tambahT, + 'kurang'=>$kurang, + 'nota'=>$nota]); + + + + $tambah_T=0;$kurang_T=0;$baki_AwalT=0.0; + + if($tambahT==0) + $tambah_T=0; + + else + $tambah_T=$tambahT+$tambah; + + + if($kurangT==0) + $kurang_T=$kurang; + + else { + $kurang=$kurang+$kurangT; + $kurang_T=$kurang; + } + + if($bakiAwalT==0) + $baki_AwalT=0; + + else + $baki_AwalT=$bakiAwalT; + + + $bakiAkhirT=$baki_AwalT+$tambah_T+$masukT-$keluarT-$kurang_T; + + //dd($bakiAkhirT, $tambah_T,$masukT,$keluarT,$kurang); + + + $latestVault=Http::get(config('api.url').'/api/currentVault/'.$auth_user['cawangan'])->json(); + $masukV=$latestVault[0]['Masuk']; + $keluarV=$latestVault[0]['Keluar']; + $pendahuluanV=$latestVault[0]['pendahuluan']; + $serahanV=$latestVault[0]['serahan']; + + $masuk_V=0;$pendahuluan_V=0;$keluar_V=0;$serahan_V=0; + + if($masukV==0) + $masuk_V=0; + + else + $masuk_V=$masukV; + + if($keluarV==0) + $keluar_V=0; + + else + $keluar_V=$keluarV; + + + if($pendahuluanV==0) + $pendahuluan_V=0; + + else + $pendahuluan_V=$pendahuluanV; + + + if($serahanV==0) + $serahan_V=0; + + else + $serahan_V=$serahanV; + + } + + $GetLatestBakiTunai=Http::get( config('api.url').'/api/getLatestBaki/'.$auth_user['cawangan'])->json(); + $sumBaki=$GetLatestBakiTunai; + + $bakiAkhirV=$bakiAwalV-$keluar_V+$masuk_V+$pendahuluan_V-$serahan_V; + + // dd($bakiAkhirV,$bakiAwalV,$keluar_V,$masuk_V,$pendahuluan_V,$serahan_V); + $BakiEOD=$bakiAkhirV+$sumBaki; + // dd($BakiEOD); + + + $updateVault=Http::put( config('api.url').'/api/UpdateVault/'.$auth_user['cawangan'],[ + 'masuk'=>$masuk_V, + 'keluar'=>$keluar_V, + 'bakiawal'=>$bakiAwalV, + 'bakiakhir'=>$bakiAkhirV, + 'bakieod'=>$BakiEOD + + + ]); + + //--FINAL RESULT...KENA RIDERECT KE PAGE SEBELUMNYA.. + + dd($updateVault); + } + + + public function laporanGadaian(){ $auth_user = Auth::user(); $api_url = config('api.url'); @@ -120,7 +529,7 @@ class KhazanahController extends Controller $current = new Carbon(); $tarikh_cetak = $current->toDateString(); if($request->datetimepicker1 == null){ - $tebus_date = $current->toDateString(); + $gadai_date = $current->toDateString(); }else{ $split_date = explode('-',$request->datetimepicker1); $gadai_date = $split_date[2] . '-' . $split_date[1] . '-' . $split_date[0]; @@ -158,4 +567,288 @@ class KhazanahController extends Controller // dd($gadai); return view('print.laporan_penebusan', compact('tebus','cawangan_detail','tarikh_cetak','tebus_date','api_url')); } -} + + public function laporanLelongan(){ + $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.lelongan',compact('cawangan_info','api_url')); + } + + public function cetaklaporanLelongan(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/lelongan/laporan/'. $auth_user['cawangan'] .'/'. $tebus_date)->json(); + $cawangan=Http::get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json(); + $cawangan_detail=$cawangan[0]; + + return view('print.laporan_lelongan', compact('tebus','cawangan_detail','tarikh_cetak','tebus_date','api_url')); + } + + public function laporanAnsuran(){ + $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.ansuran',compact('cawangan_info','api_url')); + } + + public function cetakLaporanAnsuran(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/ansuran/laporan/'. $auth_user['cawangan'] .'/'. $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_ansuran', compact('tebus','cawangan_detail','tarikh_cetak','tebus_date','api_url')); + } + + public function laporanPelangganBaru(){ + $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.pelangganbaru',compact('cawangan_info','api_url')); + } + + public function cetakLaporanPelangganBaru(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]; + } + $senaraipelanggan = Http::get(config('api.url'). '/api/customers/laporan/'. $auth_user['cawangan'] .'/'. $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_pelangganbaru', compact('senaraipelanggan','cawangan_detail','tarikh_cetak','tebus_date','api_url')); + } + + public function laporanStokAudit(){ + $auth_user = Auth::user(); + $api_url = config('api.url'); + + + $cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json(); + $stokaudit = Http::get(config('api.url'). '/api/gadai/cawangan/'. $auth_user['cawangan'])->json(); + + dd($stokaudit); + return view('khazanah.laporan.stokaudit',compact('cawangan_info','api_url')); + } + + public function cetakLaporanStokAudit(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]; + } + $stokaudit = Http::get(config('api.url'). '/api/gadai/cawangan/'. $auth_user['cawangan']. '/' . $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_stokaudit', compact('stokaudit','cawangan_detail','tarikh_cetak','tebus_date','api_url')); + } + + public function laporanBatalSuratGadai(){ + $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.batalsuratgadai',compact('cawangan_info','api_url')); + } + + public function cetakLaporanBatalSuratGadai(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]; + } + $batalgadai = Http::get(config('api.url'). '/api/batalgadai/laporan/'. $auth_user['cawangan'] .'/'. $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_batalsuratgadai', compact('batalgadai','cawangan_detail','tarikh_cetak','tebus_date','api_url')); + } + + public function laporanMarhunHarian(){ + $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.marhunharian',compact('cawangan_info','api_url')); + } + + public function cetakLaporanMarhunHarian(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/marhun/laporan/'. $auth_user['cawangan'] .'/'. $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_marhunharian', compact('marhun','cawangan_detail','tarikh_cetak','tebus_date','api_url')); + } + + public function laporanMarhunTerkumpul(){ + $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.marhunterkumpul',compact('cawangan_info','api_url')); + } + + public function cetakLaporanMarhunTerkumpul(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/marhunterkumpul/laporan/'. $auth_user['cawangan'] .'/'. $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_marhunterkumpul', compact('marhun','cawangan_detail','tarikh_cetak','tebus_date','api_url')); + } + + + public function cetakLaporanRingkasanHarian(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/ringkasanharian/'. $auth_user['cawangan'] .'/'. $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_ringkasanharian', compact('keseluruhanupahsimpan', 'marhun','cawangan_detail','tarikh_cetak','tebus_date','api_url')); + } + + 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'] .'/'. $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 laporanKawalanStok(){ + $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.kawalanstok',compact('cawangan_info','api_url')); + } + + public function cetakLaporanKawalanStok(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]; + } + $kawalanstok = Http::get(config('api.url'). '/api/kawalanstok/laporan/'. $auth_user['cawangan'] .'/'. $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_kawalanstok', compact('kawalanstok','cawangan_detail','tarikh_cetak','tebus_date','api_url')); + } +} \ No newline at end of file diff --git a/public/js/main.js b/public/js/main.js index e69de29..5fa0b37 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -0,0 +1,154 @@ + +//Pendahuluan Serah + +function totalamount(idwang,bilangan) +{ + var amount = 0; + switch (idwang) { + case 'bundle1': + amount += (bilangan * 100); + break; + case 'bundle20': + amount += (bilangan * 1000); + break; + case 'bundle5': + amount += (bilangan * 500); + break; + case 'bundle50': + amount += (bilangan * 5000); + break; + case 'bundle10': + amount += (bilangan * 1000); + break; + case 'bundle100': + amount += (bilangan * 5000); + break; + case 'sen1': + amount += (bilangan * 0.01); + break; + case 'sen5': + amount += (bilangan * 0.05); + break; + case 'sen20': + amount += (bilangan * 0.20); + break; + case 'sen50': + amount += (bilangan * 0.50); + break; + case 'ringgit1': + amount += (bilangan * 1); + break; + case 'ringgit5': + amount += (bilangan * 5); + break; + case 'ringgit10': + amount += (bilangan * 10); + break; + case 'ringgit20': + amount += (bilangan * 20); + break; + case 'ringgit50': + amount += (bilangan * 50); + break; + case 'ringgit100': + amount += (bilangan * 100); + break; + } + + return amount; +} + +var arrayambilan = [["bundle1",0],["bundle5",0],["bundle10",0], + ["bundle20",0],["bundle50",0],["bundle100",0], + ["sen1",0],["sen5",0],["sen10",0], + ["sen20",0],["sen50",0],["ringgit1",0], + ["ringgit5",0],["ringgit10",0],["ringgit20",0], + ["ringgit50",0],["ringgit100",0] + ]; + +function totalkey(datakeyin) +{ + var idkey = $(datakeyin).attr('id'); + var valkey = $(datakeyin).val(); + var amount = 0; + + var validate = parseFloat($('#amt').data('amaun')); + + $.each(arrayambilan, function( index, arr ){ + if(arr[0] == idkey) + arrayambilan[index][1] = totalamount(idkey,valkey); + + amount += arr[1]; + }); + + + + + if(amount > validate) + { + $('#' + idkey).val(''); + Swal.fire({ + icon: 'error', + title: 'Oops...', + text: 'Something went wrong!', + footer: 'Why do I have this issue?' + }); + } + else + { + $('#amt').val(amount); + } + +} + + +//Pendahuluan +function tambahdanserahanfunc(e) +{ + + var id = $(e).attr('id'); + + if(id == "tambahmodal") + { + var txt = $('#txtmodal').val(); + + $.ajax({ + method:"POST", + url: 'http://api.localhost:8000/api/requestTeller/ALS/SAMSIANA', + data: { + "modal" : txt, + "serahan" : 0 + }, + success:function(data) + { + alert('success'); + }, + error: function(xhRequest, ajaxOptions, thrownError){ + console.log(xhRequest); + } + }); + + + } + else if(id == "serahanmodal") + { + + var txt = $('#txtmodal').val(); + + $.ajax({ + method:"POST", + url: 'http://api.localhost:8000/api/requestTeller/ALS/SAMSIANA', + data: { + 'modal' : 0, + 'serahan' : txt + }, + success:function(data) + { + alert('success'); + }, + error: function(xhRequest, ajaxOptions, thrownError){ + console.log(xhRequest); + } + }); + } +} diff --git a/resources/views/aliran_tunai/index.blade.php b/resources/views/aliran_tunai/index.blade.php index 55be161..0e8a225 100644 --- a/resources/views/aliran_tunai/index.blade.php +++ b/resources/views/aliran_tunai/index.blade.php @@ -10,7 +10,7 @@
-

RM 5,000.00

+

RM {{ number_format($alirantunai['BakiAwal'],2) }}

Baki Awal Tunai

@@ -22,7 +22,7 @@
-

RM 3,020.00

+

RM {{ number_format($alirantunai['Masuk'],2) }}

Tunai Diterima

@@ -34,7 +34,7 @@
-

RM 4,000.00

+

RM {{ number_format($alirantunai['Keluar'],2) }}

Tunai Dikeluar

@@ -48,7 +48,7 @@
-

RM 5,000.00

+

RM {{ number_format($alirantunai['Baki'],2) }}

Baki Akhir Tunai

@@ -59,7 +59,7 @@
-

RM 4,000.00

+

RM {{ number_format($alirantunai['Tambah'],2) }}

23

Gadaian

@@ -71,7 +71,7 @@
-

RM 4,020.00

+

RM {{ number_format($alirantunai['Kurang'],2) }}

18

Penebusan

@@ -82,13 +82,16 @@
+
+ +
- - + +
-
+
@@ -110,7 +113,11 @@ + @endsection \ No newline at end of file diff --git a/resources/views/customers/index.blade.php b/resources/views/customers/index.blade.php index 2626779..3758d41 100644 --- a/resources/views/customers/index.blade.php +++ b/resources/views/customers/index.blade.php @@ -97,9 +97,9 @@
Ahli
diff --git a/resources/views/khazanah/LaporanscanserahMarhun.php b/resources/views/khazanah/LaporanscanserahMarhun.php new file mode 100644 index 0000000..a66412e --- /dev/null +++ b/resources/views/khazanah/LaporanscanserahMarhun.php @@ -0,0 +1,255 @@ + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + +
LAPORAN SCAN PENGELUARAN MARHUN Tarikh Cetak:@php $date=date('Y-m-d'); echo $date; @endphp
TARIKH @php $date=date('y-m-d'); echo $date; @endphp
+ +
+ + + + + + + + + + + + + @foreach($marhun_serah_petibesi as $item) + + + + + + + + + + + + @endforeach + + + + + + + +
BilNorujukanTarikhMasaPenilaiTellerMarhunNilai MarhunBerat
{{$loop->iteration}}{{$item['norujukan']}}{{$item['t_gadai']}}{{$item['masa']}}{{$item['penilai']}}{{$item['teller']}}{{$item['marhun']}}{{$item['nilaimarhun']}}{{$item['berat']}}
JUMLAH + @foreach($marhun_serah_petibesi as $item) + {{$item['nilaimarhun'] }} + @endforeach + + @foreach($marhun_serah_petibesi as $item) + {{$item['berat'] }} + @endforeach +
+ +
+
+ + + + + + + + + + + + + + + +
.................................................................. ..................................................................
DI SEMAK DI SAHKAN
+ + + + + + diff --git a/resources/views/khazanah/gadaian.blade.php b/resources/views/khazanah/gadaian.blade.php index 4bda810..e66c923 100644 --- a/resources/views/khazanah/gadaian.blade.php +++ b/resources/views/khazanah/gadaian.blade.php @@ -23,7 +23,8 @@ Berat Karat Nilai Marhun - Nota + Nota test + @@ -59,7 +60,7 @@
- +
@@ -113,7 +114,8 @@ @php $marhun = Http::get($api_url . '/api/marhun/' . $gadaian['norujukan'] )->json(); @endphp - {{$gadaian['norujukan']}} + {{$gadaian['norujukan']}} {{ $gadaian['pinjaman'] }} {{ $gadaian['nilaimarhun'] }} diff --git a/resources/views/khazanah/khazanahserahan.blade.php b/resources/views/khazanah/khazanahserahan.blade.php new file mode 100644 index 0000000..821176e --- /dev/null +++ b/resources/views/khazanah/khazanahserahan.blade.php @@ -0,0 +1,307 @@ +@extends('layouts.app') + +@section('content') + + +
+ +
+
+
+
{{ __('Pendahuluan Wang Peti Besi') }}
+ +
+ + +@csrf +
+
Tarikh
+
+
+
+ +
+
+
Teller ID
+
+
+
+
+ + + + +
+
Amaun (RM)
+
+
Nota
+
+
+
+
+
+
+
+
+ + + Batal +
+
+
+ + + +
+
+ +

Wang Bundle

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
RekodAmbilanTotalRekodAmbilanTotal (RM)
RM1 RM20
RM5 RM50
RM10 RM100 +
+
+ + + + + + + + +
Total Wang Tunai Bundle (RM)
+
+ + +
+
+ +

Wang Keping

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
RekodAmbilanTotalRekodAmbilanTotal (RM)
RM0.01 RM1
RM0.05 RM5
RM0.10 RM10
RM0.20 RM20
RM0.50 RM50
RM100
+
+ + + + + + + + +
Total Wang Tunai Keping (RM)
+
+ +
+
+ + + + + + + + + + + + + + + +
Total Keseluruhan (RM)
Baki Akhir Sistem (RM)
Lebihan/Kekurangan (RM)
+ + +
+
+
+
+ + + + + + + + +@endsection diff --git a/resources/views/khazanah/laporan/ansuran.blade.php b/resources/views/khazanah/laporan/ansuran.blade.php new file mode 100644 index 0000000..2b6234d --- /dev/null +++ b/resources/views/khazanah/laporan/ansuran.blade.php @@ -0,0 +1,137 @@ +@extends('layouts.app') + +@section('content') +
+
+
+
+
{{ __('Laporan Semakan Penebusan') }}
+ +
+
+
+ +
+
+

Laporan Semakan Ansuran

+
+
+
+
+
+ @csrf +
+
+ Tarikh +
+ + +
+
+
+
+
+
+ + + + + + + + + + + + + +
BilNo RujukanNamaNo K/PJBGPembiayaanAnsuran UpahNilai Marhun
+
+
+
+
+ Bilangan Surat : 3 + Jumlah Pinjaman : RM 3,000.00 +
+
+
+
+
+
+
+ +@endsection + diff --git a/resources/views/khazanah/laporan/batalsuratgadai.blade.php b/resources/views/khazanah/laporan/batalsuratgadai.blade.php new file mode 100644 index 0000000..5f6131e --- /dev/null +++ b/resources/views/khazanah/laporan/batalsuratgadai.blade.php @@ -0,0 +1,118 @@ +@extends('layouts.app') + +@section('content') +
+
+
+
+
{{ __('Laporan Semakan Penebusan') }}
+ +
+
+
+ +
+
+

Laporan Batal Surat Gadai

+
+
+
+
+
+ @csrf +
+
+ Tarikh +
+ + +
+
+
+
+
+
+ + + + + + + + + + +
BilNo RujukanNama TellerTarikhMasa
+
+
+
+
+ Bilangan Surat : 3 + Jumlah Pinjaman : RM 3,000.00 +
+
+
+
+
+
+
+ +@endsection + diff --git a/resources/views/khazanah/laporan/index.blade.php b/resources/views/khazanah/laporan/index.blade.php index 0c372fd..fff5672 100644 --- a/resources/views/khazanah/laporan/index.blade.php +++ b/resources/views/khazanah/laporan/index.blade.php @@ -15,13 +15,13 @@ Gadaian
Aging Bulan @@ -35,13 +35,13 @@ Penebusan
Aging Pinjaman @@ -52,16 +52,16 @@
Aging Kawalan Stok diff --git a/resources/views/khazanah/laporan/kawalanstok.blade.php b/resources/views/khazanah/laporan/kawalanstok.blade.php new file mode 100644 index 0000000..1575468 --- /dev/null +++ b/resources/views/khazanah/laporan/kawalanstok.blade.php @@ -0,0 +1,53 @@ +@extends('layouts.app') + +@section('content') +
+
+
+
+
{{ __('Laporan Semakan Penebusan') }}
+ +
+
+
+ +
+
+

Laporan Kawalan Stok

+
+
+
+
+
+ @csrf +
+
+ Tarikh +
+ + +
+
+
+
+
+
+
+
+
+ +@endsection + diff --git a/resources/views/khazanah/laporan/lelongan.blade.php b/resources/views/khazanah/laporan/lelongan.blade.php new file mode 100644 index 0000000..bb4a97d --- /dev/null +++ b/resources/views/khazanah/laporan/lelongan.blade.php @@ -0,0 +1,143 @@ +@extends('layouts.app') + +@section('content') +
+
+
+
+
{{ __('Laporan Semakan Penebusan') }}
+ +
+
+
+ +
+
+

Laporan Semakan Lelongan

+
+
+
+
+
+ @csrf +
+
+ Tarikh +
+ + +
+
+
+
+
+
+ + + + + + + + + + + + + + + + +
BilNo RujukanPenggadaiN. Marhun AsalPembiayaanU.SimpanC.LelHarga LelBakiHarga AsasPembeli
+
+
+
+
+ Bilangan Surat : 3 + Jumlah Pinjaman : RM 3,000.00 +
+
+
+
+
+
+
+ +@endsection + diff --git a/resources/views/khazanah/laporan/marhunharian.blade.php b/resources/views/khazanah/laporan/marhunharian.blade.php new file mode 100644 index 0000000..eabbb68 --- /dev/null +++ b/resources/views/khazanah/laporan/marhunharian.blade.php @@ -0,0 +1,128 @@ +@extends('layouts.app') + +@section('content') +
+
+
+
+
{{ __('Laporan Semakan Penebusan') }}
+ +
+
+
+ +
+
+

Laporan Marhun Harian

+
+
+
+
+
+ @csrf +
+
+ Tarikh +
+ + +
+
+
+
+
+
+ + + + + + + + + + + + + + + +
BilNo RujukanNo K/PNamaMarhunNotaBeratKaratHargaN.Marhun
+
+
+
+
+ Bilangan Surat : 3 + Jumlah Pinjaman : RM 3,000.00 +
+
+
+
+
+
+
+ +@endsection + diff --git a/resources/views/khazanah/laporan/marhunterkumpul.blade.php b/resources/views/khazanah/laporan/marhunterkumpul.blade.php new file mode 100644 index 0000000..de6caf2 --- /dev/null +++ b/resources/views/khazanah/laporan/marhunterkumpul.blade.php @@ -0,0 +1,56 @@ +@extends('layouts.app') + +@section('content') +
+
+
+
+
{{ __('Laporan Semakan Penebusan') }}
+ +
+
+
+ +
+
+

Laporan Marhun Terkumpul

+
+
+
+
+
+ @csrf +
+
+ Tarikh +
+ + +
+
+
+
+
+
+
+
+
+ +@endsection + diff --git a/resources/views/khazanah/laporan/pelangganbaru.blade.php b/resources/views/khazanah/laporan/pelangganbaru.blade.php new file mode 100644 index 0000000..113ab74 --- /dev/null +++ b/resources/views/khazanah/laporan/pelangganbaru.blade.php @@ -0,0 +1,119 @@ +@extends('layouts.app') + +@section('content') +
+
+
+
+
{{ __('Laporan Semakan Penebusan') }}
+ +
+
+
+ +
+
+

Laporan Pelanggan Baru

+
+
+
+
+
+ @csrf +
+
+ Tarikh +
+ + +
+
+
+
+
+
+ + + + + + + + + + +
BilNo PelangganNo K/PNamaYuran Ahli
+
+
+
+
+ Bilangan Surat : 3 + Jumlah Pinjaman : RM 3,000.00 +
+
+
+
+
+
+
+ +@endsection + diff --git a/resources/views/khazanah/laporan/stokaudit.blade.php b/resources/views/khazanah/laporan/stokaudit.blade.php new file mode 100644 index 0000000..a3ed59b --- /dev/null +++ b/resources/views/khazanah/laporan/stokaudit.blade.php @@ -0,0 +1,71 @@ +@extends('layouts.app') + +@section('content') +
+
+
+
+
{{ __('Laporan Semakan Penebusan') }}
+ +
+
+
+ +
+
+

Laporan Stok Audit

+
+
+
+
+
+ @csrf +
+
+ Tarikh +
+ + +
+
+
+
+
+
+ + + + + + + + + + + + + + +
BilNo RujukanJBGNo KPMarhunBeratN.M (RM)PembiayaanJT
+
+
+
+
+ Bilangan Surat : 3 + Jumlah Pinjaman : RM 3,000.00 +
+
+
+
+
+
+
+ +@endsection + diff --git a/resources/views/khazanah/laporanscanbarcode.blade.php b/resources/views/khazanah/laporanscanbarcode.blade.php new file mode 100644 index 0000000..27784e6 --- /dev/null +++ b/resources/views/khazanah/laporanscanbarcode.blade.php @@ -0,0 +1,254 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + +
LAPORAN SCAN KEMASUKAN GADAIAN Tarikh Cetak:@php $date=date('Y-m-d'); echo $date; @endphp
TARIKH @php $date=date('y-m-d'); echo $date; @endphp
+ +
+ + + + + + + + + + + + + @foreach($marhun_serah_petibesi as $item) + + + + + + + + + + + + @endforeach + + + + + + + +
BilNorujukanTarikhMasaPenilaiTellerMarhunNilai MarhunBerat
{{$loop->iteration}}{{$item['norujukan']}}{{$item['t_gadai']}}{{$item['masa']}}{{$item['penilai']}}{{$item['teller']}}{{$item['marhun']}}{{$item['nilaimarhun']}}{{$item['berat']}}
JUMLAH + @foreach($marhun_serah_petibesi as $item) + {{$item['nilaimarhun'] }} + @endforeach + + @foreach($marhun_serah_petibesi as $item) + {{$item['berat'] }} + @endforeach +
+ +
+
+ + + + + + + + + + + + + + + +
.................................................................. ..................................................................
DI SEMAK DI SAHKAN
+ + + + + + diff --git a/resources/views/khazanah/menu.blade.php b/resources/views/khazanah/menu.blade.php index e7a108a..06ef095 100644 --- a/resources/views/khazanah/menu.blade.php +++ b/resources/views/khazanah/menu.blade.php @@ -10,7 +10,7 @@ diff --git a/resources/views/khazanah/pendahuluan.blade.php b/resources/views/khazanah/pendahuluan.blade.php index 58d499e..46c3ef8 100644 --- a/resources/views/khazanah/pendahuluan.blade.php +++ b/resources/views/khazanah/pendahuluan.blade.php @@ -20,60 +20,136 @@
- -
-
- -
- -
-
-
-
-
- -
- -
-
-
- -
-
- -
- -
- -
- Sahkan -
- -
-
- - - - - +
- + - - + + + + + + + - - - - - +
BilTeller
Teller IDCawanganModalSerahanTarikhAction
1Teller1
+
+
+ + + + + + + @endsection diff --git a/resources/views/khazanah/pendahuluanserah.blade.php b/resources/views/khazanah/pendahuluanserah.blade.php new file mode 100644 index 0000000..821176e --- /dev/null +++ b/resources/views/khazanah/pendahuluanserah.blade.php @@ -0,0 +1,307 @@ +@extends('layouts.app') + +@section('content') + + +
+ +
+
+
+
{{ __('Pendahuluan Wang Peti Besi') }}
+ +
+ +
+@csrf +
+
Tarikh
+
+
+
+ +
+
+
Teller ID
+
+
+
+
+ + + + +
+
Amaun (RM)
+
+
Nota
+
+
+
+
+
+
+
+
+ + + Batal +
+
+
+ + + +
+
+ +

Wang Bundle

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
RekodAmbilanTotalRekodAmbilanTotal (RM)
RM1 RM20
RM5 RM50
RM10 RM100 +
+
+ + + + + + + + +
Total Wang Tunai Bundle (RM)
+
+ + +
+
+ +

Wang Keping

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
RekodAmbilanTotalRekodAmbilanTotal (RM)
RM0.01 RM1
RM0.05 RM5
RM0.10 RM10
RM0.20 RM20
RM0.50 RM50
RM100
+
+ + + + + + + + +
Total Wang Tunai Keping (RM)
+
+ +
+
+ + + + + + + + + + + + + + + +
Total Keseluruhan (RM)
Baki Akhir Sistem (RM)
Lebihan/Kekurangan (RM)
+ +
+
+
+
+
+ + + + + + + + +@endsection diff --git a/resources/views/khazanah/serahan.blade.php b/resources/views/khazanah/serahan.blade.php index b383044..9935a8c 100644 --- a/resources/views/khazanah/serahan.blade.php +++ b/resources/views/khazanah/serahan.blade.php @@ -20,60 +20,135 @@
- -
-
- -
- -
-
-
-
-
- -
- -
-
-
- -
-
- -
- -
- -
- Sahkan -
- -
-
- - - - - +
- + - - + + + + + + + - - - - - +
BilTeller
Teller IDCawanganModalSerahanTarikhAction
1Teller1
+
+
+ + + + + + + @endsection diff --git a/resources/views/khazanah/tebus.blade.php b/resources/views/khazanah/tebus.blade.php index ec7fa4b..a9fad55 100644 --- a/resources/views/khazanah/tebus.blade.php +++ b/resources/views/khazanah/tebus.blade.php @@ -1,5 +1,44 @@ @extends('layouts.app') + + + @section('content')
@@ -13,11 +52,19 @@
- - +
+ @csrf + + + + + +
+
+
@@ -47,15 +94,26 @@ No Rujukan Penilai Transaksi + Nilai Marhun + @foreach($listserah as $ls) - 1 - 31231 - 2321 - 32 + {{ $loop->iteration }} + + @php + $marhun = Http::get($api_url . '/api/marhun/' . $ls['norujukan'] )->json(); + // dd($marhun); + @endphp + + {{$ls['norujukan']}} + + {{ $ls['jenistebus'] }} + {{ $ls['nilaimarhun'] }} + @endforeach
@@ -70,24 +128,33 @@ No Rujukan PO / PPO Transaksi - Masa + Nilai Marhun + @foreach($senaraitebus as $index) - 1 - 31231 - 2321 - 32 - 323 + {{$loop->iteration}} + + + @php + $marhun = Http::get($api_url . '/api/marhun/' . $index['norujukan'] )->json(); + @endphp + + {{$index['norujukan']}} + + {{$index['jenistebus']}} + {{$index['nilaimarhun']}} + @endforeach
-

Jumlah Surat Gadai : 4

+

Jumlah Surat Gadai : {{ count($listserah) + count($senaraitebus) }}

Cetak @@ -99,4 +166,45 @@
+ + @endsection diff --git a/resources/views/penebusan/index.blade.php b/resources/views/penebusan/index.blade.php index cda3d16..19201c5 100644 --- a/resources/views/penebusan/index.blade.php +++ b/resources/views/penebusan/index.blade.php @@ -821,10 +821,6 @@ function bayaransemua() var keuntungan_sebulan = pinjamanbaru * kadarupahbaru; var keuntungan_6bln = keuntungan_sebulan * 6; - // console.log("keuntungan : " + keuntungan_sebulan + "keuntungan 6bulan : " + keuntungan_6bln); - - alert(norujukan); - $.ajax({ method:"GET", url: "{{ route('tebus.separuh') }}", diff --git a/resources/views/print/laporan_ansuran.blade.php b/resources/views/print/laporan_ansuran.blade.php new file mode 100644 index 0000000..3b0ad46 --- /dev/null +++ b/resources/views/print/laporan_ansuran.blade.php @@ -0,0 +1,270 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + +
LAPORAN ANSURAN Tarikh Cetak: + @php + $myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak); + $formattedweddingdate = $myDateTime->format('d-m-Y'); + echo($formattedweddingdate) + @endphp +
TARIKH@php + $myDateTime = DateTime::createFromFormat('Y-m-d', $tebus_date); + $formattedweddingdate = $myDateTime->format('d-m-Y'); + echo($formattedweddingdate) + @endphp +
+ +
+ + + + + + + + + + + + @php $counter = 1; @endphp + @foreach($tebus as $index=>$item) + + + + + + + + + + + + @php $counter++; @endphp + @if($index+1 < sizeof($tebus)) + @if($item['teller'] != $tebus[$index + 1]['teller']) + + + + @php $counter = 0; @endphp + @endif + @else + + + + @endif + @endforeach +
BilNorujukanNamaNo KPJBGPembiayaanAnsuran UpahN Marhun
{{ $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[0]['nama']; + @endphp + {{$gadai_detail[0][0]['nokp']}}{{$item['jbg']}}{{$item['pinjaman']}}{{$item['ansuran']}}{{$item['nilaimarhun']}}
{{ $counter }} Jumlah Bagi Teller : {{$item['teller']}}
{{ $counter }} Jumlah Bagi Teller : {{$item['teller']}}
+ +
+
+ + + + + + + + + + + + + + + +
.................................................................. ..................................................................
DI SEMAK DI SAHKAN
+ + + + + + diff --git a/resources/views/print/laporan_batalsuratgadai.blade.php b/resources/views/print/laporan_batalsuratgadai.blade.php new file mode 100644 index 0000000..3e36959 --- /dev/null +++ b/resources/views/print/laporan_batalsuratgadai.blade.php @@ -0,0 +1,236 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + +
Laporan Batal Surat Gadai Tarikh Cetak: + @php + $myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak); + $formattedweddingdate = $myDateTime->format('d-m-Y'); + echo($formattedweddingdate) + @endphp +
TARIKH@php + $myDateTime = DateTime::createFromFormat('Y-m-d', $tebus_date); + $formattedweddingdate = $myDateTime->format('d-m-Y'); + echo($formattedweddingdate) + @endphp +
+ +
+ + + + + + + + + @php $counter = 1;@endphp + + @foreach($batalgadai as $index=>$item) + + + + + + + + + @php $counter++;@endphp + + @endforeach + + + + + +
BilNo RujukanNama TellerTarikhMasa
{{ $counter }}{{$item['noRujukan']}}{{$item['namaTeller']}}{{$item['tarikh']}}{{$item['masa']}}
+ +
+
+ + + + + + diff --git a/resources/views/print/laporan_kawalanstok.blade.php b/resources/views/print/laporan_kawalanstok.blade.php new file mode 100644 index 0000000..fc61eb2 --- /dev/null +++ b/resources/views/print/laporan_kawalanstok.blade.php @@ -0,0 +1,495 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + +
Laporan Kawalan Stok Tarikh Cetak: + @php + $myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak); + $formattedweddingdate = $myDateTime->format('d-m-Y'); + echo($formattedweddingdate) + @endphp +
TARIKH@php + $myDateTime = DateTime::createFromFormat('Y-m-d', $tebus_date); + $formattedweddingdate = $myDateTime->format('d-m-Y'); + echo($formattedweddingdate) + @endphp +
+ +
+ + + + + + + + + + + + + + + + + + + + @php $counter = 1;@endphp + + {{-- {{ dd($kawalanstok) }} --}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @php $counter++;@endphp + + + + + + + + + + + + + + + + + + + + + + + + +
Nilai MarhunRM1.00 - RM400.99RM401.00 - RM2,000.99RM2,001.00 - RM1,000,000.00Jumlah
BilPinjamanBilPinjamanBilPinjamanBilPinjaman
Gadai + Baki C/F
+ Hari Ini
+ Jumlah +
+ {{ $kawalanstok[0]['gadai1'][0]['bil']}}
+ {{ $kawalanstok[0]['gadaiini1'][0]['bil']}}
+ {{ $gad1 = ($kawalanstok[0]['gadai1'][0]['bil'] + $kawalanstok[0]['gadaiini1'][0]['bil']) }} +
+ {{ $kawalanstok[0]['gadai1'][0]['pinj']}}
+ {{ floatval($kawalanstok[0]['gadaiini1'][0]['pinj']) }}
+ {{ $gadpinj1 = ($kawalanstok[0]['gadai1'][0]['pinj'] + $kawalanstok[0]['gadaiini1'][0]['pinj']) }} +
+ {{ $kawalanstok[0]['gadai2'][0]['bil']}}
+ {{ $kawalanstok[0]['gadaiini2'][0]['bil']}}
+ {{ $gad2 = ($kawalanstok[0]['gadai2'][0]['bil'] + $kawalanstok[0]['gadaiini2'][0]['bil']) }} +
+ {{ $kawalanstok[0]['gadai2'][0]['pinj']}}
+ {{ floatval($kawalanstok[0]['gadaiini2'][0]['pinj']) }}
+ {{ $gadpinj2 = ($kawalanstok[0]['gadai2'][0]['pinj'] + $kawalanstok[0]['gadaiini2'][0]['pinj']) }} +
+ {{ $kawalanstok[0]['gadai3'][0]['bil']}}
+ {{ $kawalanstok[0]['gadaiini3'][0]['bil']}}
+ {{ $gad3 = ($kawalanstok[0]['gadai3'][0]['bil'] + $kawalanstok[0]['gadaiini3'][0]['bil']) }} +
+ {{ $kawalanstok[0]['gadai3'][0]['pinj']}}
+ {{ floatval($kawalanstok[0]['gadaiini3'][0]['pinj']) }}
+ {{ $gadpinj3 = ($kawalanstok[0]['gadai3'][0]['pinj'] + $kawalanstok[0]['gadaiini3'][0]['pinj']) }} +
+ {{ $totalbilgadaikeseluruhan = $kawalanstok[0]['gadai1'][0]['bil'] + $kawalanstok[0]['gadai2'][0]['bil'] + $kawalanstok[0]['gadai3'][0]['bil']}}
+ {{ $totalbilgadaisehari = $kawalanstok[0]['gadaiini1'][0]['bil'] + $kawalanstok[0]['gadaiini2'][0]['bil'] + $kawalanstok[0]['gadaiini3'][0]['bil']}}
+ {{ $totalbilgadai = $totalbilgadaikeseluruhan + $totalbilgadaisehari }} +
+ {{ $totalpinjgadaikeseluruhan = $kawalanstok[0]['gadai1'][0]['pinj'] + $kawalanstok[0]['gadai2'][0]['pinj'] + $kawalanstok[0]['gadai3'][0]['pinj']}}
+ {{ $totalpinjgadaisehari = $kawalanstok[0]['gadaiini1'][0]['pinj'] + $kawalanstok[0]['gadaiini2'][0]['pinj'] + $kawalanstok[0]['gadaiini3'][0]['pinj']}}
+ {{ $totalpinjgadai = $totalpinjgadaikeseluruhan + $totalpinjgadaisehari }} +
Penebusan + Baki C/F
+ Hari Ini
+ Jumlah +
+ {{ $kawalanstok[1]['tebus1'][0]['bil']}}
+ {{ $kawalanstok[1]['tebusini1'][0]['bil']}}
+ {{ $teb1 = ($kawalanstok[1]['tebus1'][0]['bil'] + $kawalanstok[1]['tebusini1'][0]['bil']) }} +
+ {{ $kawalanstok[1]['tebus1'][0]['pinj']}}
+ {{ floatval($kawalanstok[1]['tebusini1'][0]['pinj']) }}
+ {{ $tebpinj1 = ($kawalanstok[1]['tebus1'][0]['pinj'] + $kawalanstok[1]['tebusini1'][0]['pinj']) }} +
+ {{ $kawalanstok[1]['tebus2'][0]['bil']}}
+ {{ $kawalanstok[1]['tebusini2'][0]['bil']}}
+ {{ $teb2 = ($kawalanstok[1]['tebus2'][0]['bil'] + $kawalanstok[1]['tebusini2'][0]['bil']) }} +
+ {{ $kawalanstok[1]['tebus2'][0]['pinj']}}
+ {{ floatval($kawalanstok[1]['tebusini2'][0]['pinj']) }}
+ {{ $tebpinj2 = ($kawalanstok[1]['tebus2'][0]['pinj'] + $kawalanstok[1]['tebusini2'][0]['pinj']) }} +
+ {{ $kawalanstok[1]['tebus3'][0]['bil']}}
+ {{ $kawalanstok[1]['tebusini3'][0]['bil']}}
+ {{ $teb3 = ($kawalanstok[1]['tebus3'][0]['bil'] + $kawalanstok[1]['tebusini3'][0]['bil']) }} +
+ {{ $kawalanstok[1]['tebus3'][0]['pinj']}}
+ {{ floatval($kawalanstok[1]['tebusini3'][0]['pinj']) }}
+ {{ $tebpinj3 = ($kawalanstok[1]['tebus3'][0]['pinj'] + $kawalanstok[1]['tebusini3'][0]['pinj']) }} +
+ {{ $totalbiltebuskeseluruhan = $kawalanstok[1]['tebus1'][0]['bil'] + $kawalanstok[1]['tebus2'][0]['bil'] + $kawalanstok[1]['tebus3'][0]['bil']}}
+ {{ $totalbiltebussehari = $kawalanstok[1]['tebusini1'][0]['bil'] + $kawalanstok[1]['tebusini2'][0]['bil'] + $kawalanstok[1]['tebusini3'][0]['bil']}}
+ {{ $totalbiltebus = $totalbiltebuskeseluruhan + $totalbiltebussehari }} +
+ {{ $totalpinjtebuskeseluruhan = $kawalanstok[1]['tebus1'][0]['pinj'] + $kawalanstok[1]['tebus2'][0]['pinj'] + $kawalanstok[1]['tebus3'][0]['pinj']}}
+ {{ $totalpinjtebussehari = $kawalanstok[1]['tebusini1'][0]['pinj'] + $kawalanstok[1]['tebusini2'][0]['pinj'] + $kawalanstok[1]['tebusini3'][0]['pinj']}}
+ {{ $totalpinjtebus = $totalpinjtebuskeseluruhan + $totalpinjtebussehari }} +
Lelongan + Baki C/F
+ Hari Ini
+ Jumlah +
+ {{ $kawalanstok[2]['lelong1'][0]['bil']}}
+ {{ $kawalanstok[2]['lelongini1'][0]['bil']}}
+ {{ $lel1 = ($kawalanstok[2]['lelong1'][0]['bil'] + $kawalanstok[2]['lelongini1'][0]['bil']) }} +
+ {{ $kawalanstok[2]['lelong1'][0]['pinj']}}
+ {{ floatval($kawalanstok[2]['lelongini1'][0]['pinj']) }}
+ {{ $lelpinj1 = ($kawalanstok[2]['lelong1'][0]['pinj'] + $kawalanstok[2]['lelongini1'][0]['pinj']) }} +
+ {{ $kawalanstok[2]['lelong2'][0]['bil']}}
+ {{ $kawalanstok[2]['lelongini2'][0]['bil']}}
+ {{ $lel2 = ($kawalanstok[2]['lelong2'][0]['bil'] + $kawalanstok[2]['lelongini2'][0]['bil']) }} +
+ {{ $kawalanstok[2]['lelong2'][0]['pinj']}}
+ {{ floatval($kawalanstok[2]['lelongini2'][0]['pinj']) }}
+ {{ $lelpinj2 = ($kawalanstok[2]['lelong2'][0]['pinj'] + $kawalanstok[2]['lelongini2'][0]['pinj']) }} +
+ {{ intval($kawalanstok[2]['lelong3'][0]['bil']) }}
+ {{ intval($kawalanstok[2]['lelongini3'][0]['bil']) }}
+ {{ $lel3 = ($kawalanstok[2]['lelong3'][0]['bil'] + $kawalanstok[2]['lelongini3'][0]['bil']) }} +
+ {{ $kawalanstok[2]['lelong3'][0]['pinj'] }}
+ {{ floatval($kawalanstok[2]['lelongini3'][0]['pinj']) }}
+ {{ $lelpinj3 = ($kawalanstok[2]['lelong3'][0]['pinj'] + $kawalanstok[2]['lelongini3'][0]['pinj']) }} +
+ {{ $totalbillelongkeseluruhan = $kawalanstok[2]['lelong1'][0]['bil'] + $kawalanstok[2]['lelong2'][0]['bil'] + $kawalanstok[2]['lelong3'][0]['bil'] }}
+ {{ $totalbillelongsehari = $kawalanstok[2]['lelongini1'][0]['bil'] + $kawalanstok[2]['lelongini2'][0]['bil'] + $kawalanstok[2]['lelongini3'][0]['bil'] }}
+ {{ $totalbillelong = $totalbillelongkeseluruhan + $totalbillelongsehari }} +
+ {{ $totalpinjlelongkeseluruhan = $kawalanstok[2]['lelong1'][0]['pinj'] + $kawalanstok[2]['lelong2'][0]['pinj'] + $kawalanstok[2]['lelong3'][0]['pinj'] }}
+ {{ $totalpinjlelongsehari = $kawalanstok[2]['lelongini1'][0]['pinj'] + $kawalanstok[2]['lelongini2'][0]['pinj'] + $kawalanstok[2]['lelongini3'][0]['pinj'] }}
+ {{ $totalpinjlelong = floatval($totalpinjlelongkeseluruhan + $totalpinjlelongsehari) }} +
Hapus Kira + Baki C/F
+ Hari Ini
+ Jumlah +
+ {{ $kawalanstok[3]['hapuskira1'][0]['bil'] }}
+ {{ $kawalanstok[3]['hapuskiraini1'][0]['bil'] }}
+ {{ $hpk1 = $kawalanstok[3]['hapuskira1'][0]['bil'] + $kawalanstok[3]['hapuskiraini1'][0]['bil'] }} +
+ {{ floatval($kawalanstok[3]['hapuskira1'][0]['pinj']) }}
+ {{ floatval($kawalanstok[3]['hapuskiraini1'][0]['pinj']) }}
+ {{ $hpkpinj1 = ($kawalanstok[3]['hapuskira1'][0]['pinj'] + $kawalanstok[3]['hapuskiraini1'][0]['pinj']) }} +
+ {{ $kawalanstok[3]['hapuskira2'][0]['bil'] }}
+ {{ $kawalanstok[3]['hapuskiraini2'][0]['bil'] }}
+ {{ $hpk2 = ($kawalanstok[3]['hapuskira2'][0]['bil'] + $kawalanstok[3]['hapuskiraini2'][0]['bil']) }} +
+ {{ floatval($kawalanstok[3]['hapuskira2'][0]['pinj']) }}
+ {{ floatval($kawalanstok[3]['hapuskiraini2'][0]['pinj']) }}
+ {{ $hpkpinj2 = ($kawalanstok[3]['hapuskira2'][0]['pinj'] + $kawalanstok[3]['hapuskiraini2'][0]['pinj']) }} +
+ {{ $kawalanstok[3]['hapuskira3'][0]['bil'] }}
+ {{ $kawalanstok[3]['hapuskiraini3'][0]['bil'] }}
+ {{ $hpk3 = ($kawalanstok[3]['hapuskira3'][0]['bil'] + $kawalanstok[3]['hapuskiraini3'][0]['bil']) }} +
+ {{ floatval($kawalanstok[3]['hapuskira3'][0]['pinj']) }}
+ {{ floatval($kawalanstok[3]['hapuskiraini3'][0]['pinj']) }}
+ {{ $hpkpinj3 = $kawalanstok[3]['hapuskira3'][0]['pinj'] + $kawalanstok[3]['hapuskiraini3'][0]['pinj'] }} +
+ {{ $totalbilhapuskirakeseluruhan = $kawalanstok[3]['hapuskira1'][0]['bil'] + $kawalanstok[3]['hapuskira2'][0]['bil'] + $kawalanstok[3]['hapuskira3'][0]['bil'] }}
+ {{ $totalbilhapuskirasehari = $kawalanstok[3]['hapuskiraini1'][0]['bil'] + $kawalanstok[3]['hapuskiraini2'][0]['bil'] + $kawalanstok[3]['hapuskiraini3'][0]['bil'] }}
+ {{ $totalbilhapuskira = $totalbilhapuskirakeseluruhan + $totalbilhapuskirasehari }} +
+ {{ $totalpinjhapuskirakeseluruhan = $kawalanstok[3]['hapuskira1'][0]['pinj'] + $kawalanstok[3]['hapuskira2'][0]['pinj'] + $kawalanstok[3]['hapuskira3'][0]['pinj'] }}
+ {{ $totalpinjhapuskirasehari = $kawalanstok[3]['hapuskiraini1'][0]['pinj'] + $kawalanstok[3]['hapuskiraini2'][0]['pinj'] + $kawalanstok[3]['hapuskiraini3'][0]['pinj'] }}
+ {{ $totalpinjhapuskira = $totalpinjhapuskirakeseluruhan + $totalpinjhapuskirasehari }} +
Baki + {{ $gad1 - $teb1 - $lel1 - $hpk1 }} + + + {{ $gadpinj1 - $tebpinj1 - $lelpinj1 - $hpkpinj1,2 }} + + + {{ $gad2 - $teb2 - $lel2 - $hpk2 }} + + + {{ $gadpinj2 - $tebpinj2 - $lelpinj2 - $hpkpinj2 }} + + + {{ $gad3 - $teb3 - $lel3 - $hpk3 }} + + + {{ $gadpinj3 - $tebpinj3 - $lelpinj3 - $hpkpinj3 }} + + + {{ $totalbil = $totalbilgadai-$totalbiltebus-$totalbillelong-$totalbilhapuskira }} + + + {{ $totalpinjgadai-$totalpinjtebus-$totalpinjlelong-$totalpinjhapuskira }} + +
+ {{ (($gad1 - $teb1 - $lel1 - $hpk1)/$totalbil)*100 }} + + + {{ $gadpinj1 - $tebpinj1 - $lelpinj1 - $hpkpinj1 }} + + + {{ (($gad2 - $teb2 - $lel2 - $hpk2)/$totalbil)*100 }} + + + {{ $gadpinj2 - $tebpinj2 - $lelpinj2 - $hpkpinj2 }} + + + {{ (($gad3 - $teb3 - $lel3 - $hpk3)/$totalbil)*100 }} + + + {{ $gadpinj3 - $tebpinj3 - $lelpinj3 - $hpkpinj3 }} + +
+ +
+
+ + + + + + diff --git a/resources/views/print/laporan_lelongan.blade.php b/resources/views/print/laporan_lelongan.blade.php new file mode 100644 index 0000000..a42c6e7 --- /dev/null +++ b/resources/views/print/laporan_lelongan.blade.php @@ -0,0 +1,314 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + +
LAPORAN LELONGAN Tarikh Cetak: + @php + $myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak); + $formattedweddingdate = $myDateTime->format('d-m-Y'); + echo($formattedweddingdate) + @endphp +
TARIKH@php + $myDateTime = DateTime::createFromFormat('Y-m-d', $tebus_date); + $formattedweddingdate = $myDateTime->format('d-m-Y'); + echo($formattedweddingdate) + @endphp +
+ +
+ + + + + + + + + + + + + + + @php $counter = 1;$totalnilaimarhun = 0; $totalpinjaman = 0; $totalupahsimpan = 0; $totalclel = 0; $totalhargalel = 0; $totalbaki = 0; $totalhargaasas = 0; $totalbakilelong = 0; $totalrugilelong = 0; @endphp + @foreach($tebus as $index=>$item) + + + + + + + + + + + + + + @php $counter++; + if ($item['baki'] > 0) + $totalbakilelong += $item['baki']; + else if($item['baki'] < 0) + $totalrugilelong -= $item['baki']; + + $totalpinjaman += $item['pinjaman']; + $totalnilaimarhun += $item['nilaimarhun']; + $totalupahsimpan += $item['baki']; + $totalclel += $item['cajlelong']; + $totalhargalel += $item['hargajual']; + $totalbaki += $item['baki']; + $totalhargaasas += $item['hargaasas']; + @endphp + @endforeach + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
BilNo RujukanPenggadaiN. Marhun AsalPembiayaanU.SimpanC.LelHarga LelBakiHarga AsasPembeli
{{ $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[0]['nama'] . '
' . $gadai_detail[0][0]['nokp'] . '
' . $customer_detail[0]['alamat1'] . '
' . $customer_detail[0]['alamat2']; + @endphp +
{{$item['nilaimarhun']}}{{$item['pinjaman']}}{{$item['bakiupah']}}{{$item['cajlelong']}}{{$item['hargajual']}}{{ $item['baki'] }}{{$item['hargaasas']}}{!!$item['nama'] . '
' . $item['nokp'] . '
' . $item['alamat1']. '
' . $item['alamat2'] !!}
8Jumlah Bagi Teller{{ $totalnilaimarhun }}{{ $totalpinjaman }}{{ $totalupahsimpan }}{{ $totalclel }}{{ $totalhargalel }}{{ $totalbaki }}{{ $totalhargaasas }}
8Jumlah Keseluruhan{{ $totalnilaimarhun }}{{ $totalpinjaman }}{{ $totalupahsimpan }}{{ $totalclel }}{{ $totalhargalel }}{{ $totalbaki }}{{ $totalhargaasas }}
Jumlah Baki Lelong (A){!! $totalbakilelong !!}
Jumlah Kerugian Lelong (B){!! $totalrugilelong !!}
A-B{!! $totalbakilelong + $totalrugilelong !!}
+ +
+
+ + + + + + + + + + + +
..................................................................
Diterima Oleh
+ + + + + + diff --git a/resources/views/print/laporan_marhunharian.blade.php b/resources/views/print/laporan_marhunharian.blade.php new file mode 100644 index 0000000..00bdf87 --- /dev/null +++ b/resources/views/print/laporan_marhunharian.blade.php @@ -0,0 +1,263 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + +
LAPORAN MARHUN HARIAN Tarikh Cetak: + @php + $myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak); + $formattedweddingdate = $myDateTime->format('d-m-Y'); + echo($formattedweddingdate) + @endphp +
TARIKH@php + $myDateTime = DateTime::createFromFormat('Y-m-d', $tebus_date); + $formattedweddingdate = $myDateTime->format('d-m-Y'); + echo($formattedweddingdate) + @endphp +
+ +
+ + + + + + + + + + + + + + @php $counter = 1;$totalberat = 0;$totalnm = 0;@endphp + + @foreach($marhun as $index=>$item) + + + + + + + + + + + + + @php $counter++;$totalberat += $item['berat'];$totalnm += $item['n_marhun'];@endphp + @endforeach + + + + + + + + +
BilNo RujukanNo K/PNamaMarhunNotaBeratKaratHargaN.Marhun
{{ $counter }}{{$item['norujukan']}}{{$item['nokp']}}{{$item['nama']}}{{$item['marhun']}}{{$item['nota']}}{{$item['berat']}}{{$item['karat']}}{{$item['harga']}}{{$item['n_marhun']}}
JUMLAH(RM){{ $totalberat }}{{ $totalnm }}
+ +
+
+ + + + + + + + + + + + + + + +
.................................................................. ..................................................................
DI SEMAK DI SAHKAN
+ + + + + + diff --git a/resources/views/print/laporan_marhunterkumpul.blade.php b/resources/views/print/laporan_marhunterkumpul.blade.php new file mode 100644 index 0000000..6d5fb6b --- /dev/null +++ b/resources/views/print/laporan_marhunterkumpul.blade.php @@ -0,0 +1,370 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + +
LAPORAN MARHUN TERKUMPUL Tarikh Cetak: + @php + $myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak); + $formattedweddingdate = $myDateTime->format('d-m-Y'); + echo($formattedweddingdate) + @endphp +
TARIKH@php + $myDateTime = DateTime::createFromFormat('Y-m-d', $tebus_date); + $formattedweddingdate = $myDateTime->format('d-m-Y'); + echo($formattedweddingdate) + @endphp +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + @php $counter = 1;$totalberat = 0;$totalnm = 0;$masuk = false;$pertama = true;@endphp + + @foreach($marhun as $index=>$item) + + @if($index == 0) + + + + + + + + + + + + + + + @if($index != sizeof($marhun) - 1) + @if($item['norujukan'] != $marhun[$index+1]['norujukan']) + + + + + + + + + + + + @endif + @endif + @php $counter++; @endphp + @else + @if($item['norujukan'] == $marhun[$index-1]['norujukan']) + {{-- --}} + + + + + + + + + + + + + + + @php + $totalberat += floatval($item['berat']); + $totalnm += floatval($item['n_marhun']); + @endphp + @else + + @php + $totalberat += floatval($item['berat']); + $totalnm += floatval($item['n_marhun']); + @endphp + + {{-- --}} + + + + + + + + + + + + + + + + @php $counter++; $masuk = true; @endphp + @endif + @endif + + @if(($index != sizeof($marhun) - 1 && $masuk == true)) + {{-- --}} + @if($item['norujukan'] != $marhun[$index+1]['norujukan']) + + + + + + + + + + + + @php $totalberat = 0;$totalnm = 0;@endphp + @endif + @endif + + @if(($index == sizeof($marhun) - 1)) + {{-- --}} + + + + + + + + + + + + @php $totalberat = 0;$totalnm = 0;@endphp + @endif + + + + @endforeach +
Gadaian AsalSemakan
BilNo RujukanNo K/PNamaPinjamanMarhunMutuBeratN. MarhunMarhunMutuBeratN.MarhunCatatan
{{ $counter }}{{ $item['norujukan'] }}{{ $item['nokp'] }}{{ $item['nama'] }}{{ $item['pinjaman'] }}{{ $item['marhun'] }}{{ $item['karat'] }}{{ $item['berat'] }}{{ $item['n_marhun'] }}
JUMLAH {{ number_format($item['berat'],2) }} {{ number_format($item['n_marhun'],2) }}
masuk 1{{ $item['marhun'] }}{{ $item['karat'] }}{{ $item['berat'] }}{{ $item['n_marhun'] }}masuk2{{ $counter }}{{ $item['norujukan'] }}{{ $item['nokp'] }}{{ $item['nama'] }}{{ $item['pinjaman'] }}{{ $item['marhun'] }}{{ $item['karat'] }}{{ $item['berat'] }}{{ $item['n_marhun'] }}kucen
JUMLAH {{ number_format($totalberat,2) }} {{ number_format($totalnm,2) }}
kucen
JUMLAH {{ number_format($totalberat,2) }} {{ number_format($totalnm,2) }}
+ +
+
+ + + + + + + + + + + + + + + +
.................................................................. ..................................................................
DI SEMAK DI SAHKAN
+ + + + + + diff --git a/resources/views/print/laporan_pelangganbaru.blade.php b/resources/views/print/laporan_pelangganbaru.blade.php new file mode 100644 index 0000000..c6e8ccd --- /dev/null +++ b/resources/views/print/laporan_pelangganbaru.blade.php @@ -0,0 +1,236 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + +
SENARAI PELANGGAN BARU Tarikh Cetak: + @php + $myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak); + $formattedweddingdate = $myDateTime->format('d-m-Y'); + echo($formattedweddingdate) + @endphp +
TARIKH@php + $myDateTime = DateTime::createFromFormat('Y-m-d', $tebus_date); + $formattedweddingdate = $myDateTime->format('d-m-Y'); + echo($formattedweddingdate) + @endphp +
+ +
+ + + + + + + + + @php $counter = 1;$totalyuran = 0; @endphp + + @foreach($senaraipelanggan as $index=>$item) + + + + + + + + + @php $counter++; $totalyuran += $item['yuranahli'];@endphp + + @endforeach + + + + + +
BilNo PelangganNo KPNamaYuran Ahli
{{ $counter }}{{$item['nopelanggan']}}{{$item['kpbaru']}}{{$item['nama']}}{{$item['yuranahli']}}
JUMLAH KESELURUHAN : RM {{ number_format($totalyuran,2) }}
+ +
+
+ + + + + + diff --git a/resources/views/print/laporan_ringkasanharian.blade.php b/resources/views/print/laporan_ringkasanharian.blade.php new file mode 100644 index 0000000..cf30452 --- /dev/null +++ b/resources/views/print/laporan_ringkasanharian.blade.php @@ -0,0 +1,323 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + +
LAPORAN RINGKASAN HARIAN Tarikh Cetak: + @php + $myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak); + $formattedweddingdate = $myDateTime->format('d-m-Y'); + echo($formattedweddingdate) + @endphp +
TARIKH@php + $myDateTime = DateTime::createFromFormat('Y-m-d', $tebus_date); + $formattedweddingdate = $myDateTime->format('d-m-Y'); + echo($formattedweddingdate) + @endphp +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
JUMLAHJUMLAH PENDAPATAN
GADAIBIL
+ N. MARHUN
+ PEMBIAYAAN + +
{{ $marhun['gadai'][0]['bilangan'] }}
+ {{ number_format($marhun['gadai'][0]['jumlahmarhun'],2) }}
+ {{ number_format($marhun['gadai'][0]['jumlahpinjaman'],2) }}
+
PENEBUSANBIL
+ N. MARHUN
+ PEMBIAYAAN
+ UPAH SIMPAN +
{{ $marhun['tebus'][0]['bilangan'] }}
+ {{ number_format($marhun['tebus'][0]['jumlahmarhun'],2) }}
+ {{ number_format($marhun['tebus'][0]['jumlahpinjaman'],2) }}
+ {{ number_format($marhun['tebus'][0]['upahsimpan'],2) }} +
UPAH SIMPAN
+ CAJ LELONG
+
{{ number_format($keseluruhanupahsimpan,2) }}
+ {{ number_format($marhun['cajlelong'],2) }}
+
ANSURANBIL
+ N. MARHUN
+ PEMBIAYAAN
+ UPAH SIMPAN +
{{ $marhun['advansur'][0]['bilangan'] }}
+ {{ number_format($marhun['advansur'][0]['jumlahmarhun'],2) }}
+ {{ number_format($marhun['advansur'][0]['jumlahpinjaman'],2) }}
+ {{ number_format($marhun['advansur'][0]['upahsimpan'],2) }} +
LELONGANBIL
+ N. MARHUN
+ PEMBIAYAAN
+ UPAH SIMPAN
+ CAJ LELONG
+ LEBIHAN LELONG
+ RUGI LELONG

+ TERIMA RUGI LELONG

+ BAYAR LEBIHAN LELONG +
+ + {{ $marhun['lelong'][0]['bilangan'] }}
+ {{ number_format($marhun['lelong'][0]['jumlahmarhun'],2) }}
+ {{ number_format($marhun['lelong'][0]['jumlahpinjaman'],2) }}
+ {{ number_format($marhun['lelongupahsimpan'],2) }}
+ {{ number_format($marhun['cajlelong'],2) }}
+ {{ number_format($marhun['lelongbaki'],2) }}
+ {{ number_format($marhun['lelongrugi'],2) }}

+ {{ number_format($marhun['terimarugilelong'],2) }}

+ {{ number_format($marhun['bayarlebihanlelong'],2) }} + +
+ + + + + + + + +
..................................................................
+

DI SEMAK

+ ..................................................................
+

DI SAHKAN

+ +
+ + +
HAPUS KIRABIL
+ N. MARHUN
+ PEMBIAYAAN +
+ {{ $marhun['hapuskira'][0]['bilangan'] }}
+ {{ number_format($marhun['hapuskira'][0]['jumlahmarhun'],2) }}
+ {{ number_format($marhun['hapuskira'][0]['jumlahpinjaman'],2) }}
+
SERAHAN WANG TAK DITUNTUTBIL
+ N. MARHUN
+ PEMBIAYAAN
+
{{ $marhun['wtd'][0]['bilangan'] }}
+ {{ number_format($marhun['wtd'][0]['jumlahmarhun'],2) }}
+ {{ number_format($marhun['wtd'][0]['jumlahpinjaman'],2) }}
+
+ +
+
\ No newline at end of file diff --git a/resources/views/print/laporan_ringkasanterkumpul.blade.php b/resources/views/print/laporan_ringkasanterkumpul.blade.php new file mode 100644 index 0000000..70b9281 --- /dev/null +++ b/resources/views/print/laporan_ringkasanterkumpul.blade.php @@ -0,0 +1,317 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + +
LAPORAN RINGKASAN TERKUMPUL Tarikh Cetak: + @php + $myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak); + $formattedweddingdate = $myDateTime->format('d-m-Y'); + echo($formattedweddingdate) + @endphp +
TARIKH@php + $myDateTime = DateTime::createFromFormat('Y-m-d', $tebus_date); + $formattedweddingdate = $myDateTime->format('d-m-Y'); + echo($formattedweddingdate) + @endphp +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
JUMLAHJUMLAH PENDAPATAN
GADAIBIL
+ N. MARHUN
+ PEMBIAYAAN + +
{{ $marhun['gadai'][0]['bilangan'] }}
+ {{ number_format($marhun['gadai'][0]['jumlahmarhun'],2) }}
+ {{ number_format($marhun['gadai'][0]['jumlahpinjaman'],2) }}
+
PENEBUSANBIL
+ N. MARHUN
+ PEMBIAYAAN
+ UPAH SIMPAN +
{{ $marhun['tebus'][0]['bilangan'] }}
+ {{ number_format($marhun['tebus'][0]['jumlahmarhun'],2) }}
+ {{ number_format($marhun['tebus'][0]['jumlahpinjaman'],2) }}
+ {{ number_format($marhun['tebus'][0]['upahsimpan'],2) }} +
UPAH SIMPAN
+ CAJ LELONG
+
{{ number_format($keseluruhanupahsimpan,2) }}
+ {{ number_format($marhun['cajlelong'],2) }}
+
ANSURANBIL
+ N. MARHUN
+ PEMBIAYAAN
+ UPAH SIMPAN +
{{ $marhun['advansur'][0]['bilangan'] }}
+ {{ number_format($marhun['advansur'][0]['jumlahmarhun'],2) }}
+ {{ number_format($marhun['advansur'][0]['jumlahpinjaman'],2) }}
+ {{ number_format($marhun['advansur'][0]['upahsimpan'],2) }} +
LELONGANBIL
+ N. MARHUN
+ PEMBIAYAAN
+ UPAH SIMPAN
+ CAJ LELONG
+ LEBIHAN LELONG
+ RUGI LELONG

+ TERIMA RUGI LELONG

+ BAYAR LEBIHAN LELONG +
+ + {{ $marhun['lelong'][0]['bilangan'] }}
+ {{ number_format($marhun['lelong'][0]['jumlahmarhun'],2) }}
+ {{ number_format($marhun['lelong'][0]['jumlahpinjaman'],2) }}
+ {{ number_format($marhun['lelongupahsimpan'],2) }}
+ {{ number_format($marhun['cajlelong'],2) }}
+ {{ number_format($marhun['lelongbaki'],2) }}
+ {{ number_format($marhun['lelongrugi'],2) }}

+ {{ number_format($marhun['terimarugilelong'],2) }}

+ {{ number_format($marhun['bayarlebihanlelong'],2) }} + +
+ + + + + + + + +
..................................................................
+

DI SEMAK

+ ..................................................................
+

DI SAHKAN

+ +
+ + +
HAPUS KIRABIL
+ N. MARHUN
+ PEMBIAYAAN +
{{ $marhun['hapuskira'][0]['bilangan'] }}
+ {{ number_format($marhun['hapuskira'][0]['jumlahmarhun'],2) }}
+ {{ number_format($marhun['hapuskira'][0]['jumlahpinjaman'],2) }}
+ +
+
+
+ + + + + + + + diff --git a/resources/views/print/laporan_stokaudit.blade.php b/resources/views/print/laporan_stokaudit.blade.php new file mode 100644 index 0000000..a737844 --- /dev/null +++ b/resources/views/print/laporan_stokaudit.blade.php @@ -0,0 +1,254 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + +
Laporan Stok Audit Tarikh Cetak: + @php + $myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak); + $formattedweddingdate = $myDateTime->format('d-m-Y'); + echo($formattedweddingdate) + @endphp +
TARIKH@php + $myDateTime = DateTime::createFromFormat('Y-m-d', $tebus_date); + $formattedweddingdate = $myDateTime->format('d-m-Y'); + echo($formattedweddingdate) + @endphp +
+ +
+ + + + + + + + + + + + + @php $counter = 1; @endphp + @foreach($stokaudit as $index=>$item) + + + + + + + + + + + + + @php $counter++; @endphp + + @endforeach +
BilNorujukanJBGNo. KPMarhunBeratNilai Marhun (RM)PembiayaanJenis Tebus
{{ $counter }}{{$item['norujukan']}}{{ $item['jbg'] }}{{$item['nokp']}}{{ $item['marhun'] }}{{ number_format($item['berat'],2) }}{{ number_format($item['nilaimarhun'],2) }}{{ number_format($item['pinjaman'],2) }}{{$item['jenistebus']}}
+ +
+
+ + + + + + + + + + + + + + + +
.................................................................. ..................................................................
DI SEMAK DI SAHKAN
+ + + + + + diff --git a/routes/web.php b/routes/web.php index 6f0a8e8..1d1d222 100644 --- a/routes/web.php +++ b/routes/web.php @@ -68,8 +68,35 @@ Route::get('/laporan/gadaian',['as'=>'laporan.gadaian','uses'=>'KhazanahControll Route::post('laporan/gadaian/cetak',['as'=>'gadaian.laporancetak','uses'=>'KhazanahController@cetakLaporanGadai'])->middleware('auth','khazanah'); Route::get('/laporan/tebus',['as'=>'laporan.tebus','uses'=>'KhazanahController@laporanPenebusan'])->middleware('auth','khazanah'); Route::post('laporan/tebus/cetak',['as'=>'tebus.laporancetak','uses'=>'KhazanahController@cetakLaporanPenebusan'])->middleware('auth','khazanah'); +//Added Yang Baru - Faris +Route::post('/barcodescannedtebus',['as'=>'barcodetebus.scanned','uses'=>'KhazanahController@barcodescannedtebus'])->middleware('auth','khazanah'); +Route::get('/pendahuluanserah/{id}',['as'=>'pendahuluan.serah','uses'=>'KhazanahController@pendahuluanserah'])->middleware('auth','khazanah'); +Route::get('/khazanahserahan/{id}',['as'=>'khazanah.serah','uses'=>'KhazanahController@khazanahserahan'])->middleware('auth','khazanah'); +Route::post('/kemaskinipendahuluan', ['as' =>'khazanah.kemaskiniPendahuluan','uses'=>'KhazanahController@kemaskiniPendahuluan'])->middleware('auth','khazanah'); +// Route::post('/kemaskinipendahuluan', ['as' =>'khazanah.kemaskiniPendahuluan','uses'=>'KhazanahController@kemaskiniPendahuluan'])->middleware('auth','khazanah'); +Route::post('/kemaskiniserahan',['as'=>'khazanah.KemaskiniSerahan','uses'=>'KhazanahController@KemaskiniSerahan'])->middleware('auth','khazanah'); -Route::post('/barcodescanned',['as'=>'barcode.scanned','uses'=>'KhazanahController@barcodescanned'])->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'); +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'); +Route::post('laporan/pelangganbaru/cetak',['as'=>'pelangganbaru.laporancetak','uses'=>'KhazanahController@cetakLaporanPelangganBaru'])->middleware('auth','khazanah'); +Route::get('/laporan/stokaudit',['as'=>'laporan.stokaudit','uses'=>'KhazanahController@laporanStokAudit'])->middleware('auth','khazanah'); +Route::get('laporan/stokaudit/cetak',['as'=>'stokaudit.laporancetak','uses'=>'KhazanahController@cetakLaporanStokAudit'])->middleware('auth','khazanah'); +Route::get('/laporan/kawalanstok',['as'=>'laporan.kawalanstok','uses'=>'KhazanahController@laporanKawalanStok'])->middleware('auth','khazanah'); +Route::post('laporan/kawalanstok/cetak',['as'=>'kawalanstok.laporancetak','uses'=>'KhazanahController@cetakLaporanKawalanStok'])->middleware('auth','khazanah'); +Route::get('/laporan/batalsuratgadai',['as'=>'laporan.batalsuratgadai','uses'=>'KhazanahController@laporanBatalSuratGadai'])->middleware('auth','khazanah'); +Route::post('laporan/batalsuratgadai/cetak',['as'=>'batalsuratgadai.laporancetak','uses'=>'KhazanahController@cetakLaporanBatalSuratGadai'])->middleware('auth','khazanah'); +Route::get('/laporan/marhunharian',['as'=>'laporan.marhunharian','uses'=>'KhazanahController@laporanMarhunHarian'])->middleware('auth','khazanah'); +Route::post('laporan/marhunharian/cetak',['as'=>'marhunharian.laporancetak','uses'=>'KhazanahController@cetakLaporanMarhunHarian'])->middleware('auth','khazanah'); +Route::get('/laporan/marhunterkumpul',['as'=>'laporan.marhunterkumpul','uses'=>'KhazanahController@laporanMarhunTerkumpul'])->middleware('auth','khazanah'); +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::post('/barcodescanned',['as'=>'barcode.scanned','uses'=>'KhazanahController@barcodescanned'])->middleware('auth','khazanah'); \ No newline at end of file