@@ -331,7 +331,8 @@ class GadaianController extends Controller
|
|||||||
|
|
||||||
$pembayaran_segera = "https://spare.arrahn.com.my/pembayaransegera";
|
$pembayaran_segera = "https://spare.arrahn.com.my/pembayaransegera";
|
||||||
|
|
||||||
return view('print.sag',compact('gadai_detail','customer_detail','marhun_detail','cawangan_detail','api_url','pembayaran_segera','auth_username','mutu'));
|
// return view('print.sag',compact('gadai_detail','customer_detail','marhun_detail','cawangan_detail','api_url','pembayaran_segera','auth_username','mutu'));
|
||||||
|
return view('print.sag_ujrah',compact('gadai_detail','customer_detail','marhun_detail','cawangan_detail','api_url','pembayaran_segera','auth_username','mutu'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function resit($id)
|
public function resit($id)
|
||||||
|
|||||||
@@ -4176,4 +4176,257 @@ class KhazanahController extends Controller
|
|||||||
return view('print.laporan_imbangduga-akru',compact('tarikh_imbangan', 'tarikh_imbangan2','hartasemasa','tanggungansemasa','totalhartasemasa','totaltanggungansemasa','tarikh_cetak','cawangan_info','cawangan','api_url','cawangan_detail'));
|
return view('print.laporan_imbangduga-akru',compact('tarikh_imbangan', 'tarikh_imbangan2','hartasemasa','tanggungansemasa','totalhartasemasa','totaltanggungansemasa','tarikh_cetak','cawangan_info','cawangan','api_url','cawangan_detail'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public function laporanGadaianUjrah (){
|
||||||
|
|
||||||
|
$auth_user = Auth::user();
|
||||||
|
$api_url = config('api.url');
|
||||||
|
|
||||||
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/' . $auth_user['cawangan'])->json();
|
||||||
|
|
||||||
|
return view('khazanah.laporanujrah.gadaianujrah', compact('auth_user','api_url','cawangan_info'));
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function cetakLaporanGadaiUjrah(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];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/gadailaporanRangeDate/'. $auth_user['cawangan'] ,['mula' => $mula_date,'akhir' => $hingga_date])->json();
|
||||||
|
$cawangan=Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
|
||||||
|
$cawangan_detail=$cawangan[0];
|
||||||
|
|
||||||
|
return view('print.laporan_gadaian_ujrah', compact('gadai','cawangan_detail','tarikh_cetak','mula_date','api_url','hingga_date'));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public function laporanPenebusanUjrah(){
|
||||||
|
|
||||||
|
$auth_user = Auth::user();
|
||||||
|
$api_url = config('api.url');
|
||||||
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
|
return view('khazanah.laporanujrah.tebusujrah',compact('cawangan_info','api_url'));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function cetakLaporanPenebusanUjrah(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->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];
|
||||||
|
}
|
||||||
|
|
||||||
|
$tebus = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/tebusujrah/laporan/'. $auth_user['cawangan'] ,['mula' => $mula_date,'akhir' => $hingga_date])->json();
|
||||||
|
$tebuspengasingan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/tebus/laporanjenistawarruqujrah/'. $auth_user['cawangan'] ,['mula' => $mula_date,'akhir' => $hingga_date])->json();
|
||||||
|
$upahlama = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/advansurdetailsrange/'. $auth_user['cawangan'],['mula' => $mula_date,'akhir' => $hingga_date])->json();
|
||||||
|
$ansuran = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/ansuransummaryrange/'. $auth_user['cawangan'],['mula' => $mula_date,'akhir' => $hingga_date])->json();
|
||||||
|
|
||||||
|
$cawangan=Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
|
||||||
|
$cawangan_detail=$cawangan[0];
|
||||||
|
return view('print.laporan_tebus_ujrah', compact('tebus','cawangan_detail','tarikh_cetak','mula_date','hingga_date','tebuspengasingan','api_url','upahlama','ansuran'));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function laporanAnsuranUjrah(){
|
||||||
|
$auth_user = Auth::user();
|
||||||
|
$api_url = config('api.url');
|
||||||
|
|
||||||
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
|
return view('khazanah.laporanujrah.ansuranujrah',compact('cawangan_info','api_url'));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function cetakLaporanAnsuranUjrah(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->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];
|
||||||
|
}
|
||||||
|
|
||||||
|
$tebus = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/ansuranujrah/laporan/'. $auth_user['cawangan'],['mula' => $mula_date,'akhir' => $hingga_date])->json();
|
||||||
|
$cawangan=Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
|
||||||
|
$cawangan_detail=$cawangan[0];
|
||||||
|
return view('print.laporan_ansuran_ujrah', compact('tebus','cawangan_detail','tarikh_cetak','mula_date','hingga_date','api_url'));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function laporanStokAuditKhas(){
|
||||||
|
$auth_user = Auth::user();
|
||||||
|
$api_url = config('api.url');
|
||||||
|
|
||||||
|
|
||||||
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
|
|
||||||
|
return view('khazanah.laporan.stokauditkhas',compact('cawangan_info','api_url'));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function cetakLaporanStokAuditKhas(Request $request){
|
||||||
|
$api_url = config('api.url');
|
||||||
|
$auth_user = Auth::user();
|
||||||
|
$current = Carbon::now();
|
||||||
|
$current = new Carbon();
|
||||||
|
$tarikh_cetak = $current->toDateString();
|
||||||
|
$daritempoh = $request->daritempoh;
|
||||||
|
$hinggatempoh = $request->hinggatempoh;
|
||||||
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
|
|
||||||
|
$cawangan=Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
|
||||||
|
$cawangan_detail=$cawangan[0];
|
||||||
|
|
||||||
|
if($request->radaktif === 'aktif')
|
||||||
|
{
|
||||||
|
$stokaudit = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/stokauditkhas/aktif/'. $auth_user['cawangan'],
|
||||||
|
['daritempoh' => $daritempoh, 'hinggatempoh' => $hinggatempoh])->json();
|
||||||
|
return view('print.laporan_stokauditkhas', compact('stokaudit','cawangan_detail','tarikh_cetak','daritempoh','hinggatempoh','api_url','cawangan_info'));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function cetakExportLaporanStokAuditKhas(Request $request){
|
||||||
|
// dd($request->all());
|
||||||
|
$api_url = config('api.url');
|
||||||
|
$auth_user = Auth::user();
|
||||||
|
$current = Carbon::now();
|
||||||
|
$current = new Carbon();
|
||||||
|
$tarikh_cetak = $current->toDateString();
|
||||||
|
$daritempoh = $request->daritempoh;
|
||||||
|
$hinggatempoh = $request->hinggatempoh;
|
||||||
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
|
|
||||||
|
$cawangan=Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
|
||||||
|
$cawangan_detail=$cawangan[0];
|
||||||
|
|
||||||
|
$stokaudit = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/stokauditkhas/aktif/'. $auth_user['cawangan'],['daritempoh' => $daritempoh, 'hinggatempoh' => $hinggatempoh])->json();
|
||||||
|
|
||||||
|
if($request->type == 'excel')
|
||||||
|
{
|
||||||
|
return view('excel.excel_stokauditkhas', compact('stokaudit','cawangan_detail','tarikh_cetak','daritempoh','hinggatempoh','api_url','cawangan_info'));
|
||||||
|
}
|
||||||
|
elseif($request->type == 'whatsapp')
|
||||||
|
{
|
||||||
|
|
||||||
|
$blastwhatsapp = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url').'/api/blastwasapbysag/'.$auth_user['cawangan'],
|
||||||
|
['daritempoh' => $daritempoh, 'hinggatempoh' => $hinggatempoh, 'namapengguna' => $auth_user['name'],])->json();
|
||||||
|
if($blastwhatsapp == 'success'){
|
||||||
|
return redirect()->route('laporan.stokauditkhas')
|
||||||
|
->with('success','Blast Whatsapp Dalam Proses.');
|
||||||
|
}
|
||||||
|
elseif($blastwhatsapp == 'failed'){
|
||||||
|
return redirect()->route('laporan.stokauditkhas')
|
||||||
|
->with('failed','Blast Whatsapp Tidak Berjaya, Sila Semak Semula Rekod Blasted.');
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$stokaudit = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/stokauditkhas/aktif/'. $auth_user['cawangan'],['daritempoh' => $daritempoh, 'hinggatempoh' => $hinggatempoh])->json();
|
||||||
|
return view('pdf.pdf_stokauditkhas', compact('stokaudit','cawangan_detail','tarikh_cetak','daritempoh','hinggatempoh','api_url','cawangan_info'));
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function rekodblast(Request $request){
|
||||||
|
$auth_user = Auth::user();
|
||||||
|
$api_url = config('api.url');
|
||||||
|
|
||||||
|
|
||||||
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
|
$rekodblast = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/rekodblast/'. $auth_user['cawangan'])->json();
|
||||||
|
return view('khazanah.laporan.rekodblast',compact('cawangan_info','api_url','rekodblast'));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function rekodblastexport(Request $request){
|
||||||
|
$auth_user = Auth::user();
|
||||||
|
$api_url = config('api.url');
|
||||||
|
$current = Carbon::now();
|
||||||
|
$current = new Carbon();
|
||||||
|
$tarikh_cetak = $current->toDateString();
|
||||||
|
|
||||||
|
$cawangan=Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
|
||||||
|
$cawangan_detail=$cawangan[0];
|
||||||
|
|
||||||
|
if($request->type == 'pdf')
|
||||||
|
{
|
||||||
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
|
$rekodblast = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/rekodblast/'. $auth_user['cawangan'])->json();
|
||||||
|
return view('pdf.pdf_rekodblast', compact('cawangan_info','api_url','rekodblast','cawangan_detail','tarikh_cetak'));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function rekodblastsms(Request $request){
|
||||||
|
$auth_user = Auth::user();
|
||||||
|
$api_url = config('api.url');
|
||||||
|
|
||||||
|
|
||||||
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
|
$rekodblastsms = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/rekodblastsms/'. $auth_user['cawangan'])->json();
|
||||||
|
return view('khazanah.laporan.rekodblastsms',compact('cawangan_info','api_url','rekodblastsms'));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function rekodblastsmsexport(Request $request){
|
||||||
|
$auth_user = Auth::user();
|
||||||
|
$api_url = config('api.url');
|
||||||
|
$current = Carbon::now();
|
||||||
|
$current = new Carbon();
|
||||||
|
$tarikh_cetak = $current->toDateString();
|
||||||
|
|
||||||
|
$cawangan=Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
|
||||||
|
$cawangan_detail=$cawangan[0];
|
||||||
|
|
||||||
|
if($request->type == 'pdf')
|
||||||
|
{
|
||||||
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
|
$rekodblastsms = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/rekodblastsms/'. $auth_user['cawangan'])->json();
|
||||||
|
return view('pdf.pdf_rekodblastsms', compact('cawangan_info','api_url','rekodblastsms','cawangan_detail','tarikh_cetak'));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,7 +64,9 @@ class PenebusanController extends Controller
|
|||||||
"nowakil" => $request->nowakil,
|
"nowakil" => $request->nowakil,
|
||||||
"jenisbayarantebus" => $request->jenisbayarantebus,
|
"jenisbayarantebus" => $request->jenisbayarantebus,
|
||||||
"teller" => $request->teller,
|
"teller" => $request->teller,
|
||||||
'jeniskeuntungan' => $request->jeniskeuntungan
|
'jeniskeuntungan' => $request->jeniskeuntungan,
|
||||||
|
"duitpelanggan" => $request->duitpelanggan,
|
||||||
|
"bakipelanggan" => $request->bakipelanggan
|
||||||
])->json();
|
])->json();
|
||||||
|
|
||||||
if($updatetebus)
|
if($updatetebus)
|
||||||
@@ -84,7 +86,9 @@ class PenebusanController extends Controller
|
|||||||
$updategadai = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url').'/api/gadaikaunter/'. $request->kodcaw .'/norujukan/' . $request->norujukan,[
|
$updategadai = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url').'/api/gadaikaunter/'. $request->kodcaw .'/norujukan/' . $request->norujukan,[
|
||||||
'bayaran' => $request->bayaran,
|
'bayaran' => $request->bayaran,
|
||||||
'teller' => $request->teller,
|
'teller' => $request->teller,
|
||||||
'nowakil' => $request->nowakil
|
'nowakil' => $request->nowakil,
|
||||||
|
'duitpelanggan' => $request->duitpelanggan,
|
||||||
|
'bakipelanggan' => $request->bakipelanggan
|
||||||
])->json();
|
])->json();
|
||||||
|
|
||||||
if($updategadai == 'success')
|
if($updategadai == 'success')
|
||||||
@@ -427,6 +431,8 @@ class PenebusanController extends Controller
|
|||||||
'teller' => $request->teller,
|
'teller' => $request->teller,
|
||||||
'jeniskeuntungan' => 'asal',
|
'jeniskeuntungan' => 'asal',
|
||||||
'totalbayaran' => $request->totalbayaran,
|
'totalbayaran' => $request->totalbayaran,
|
||||||
|
"bayaranpelanggan" => $request->bayaran,
|
||||||
|
"bakipelanggan" => $request->bakipelanggan,
|
||||||
])->json();
|
])->json();
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -144,12 +144,12 @@
|
|||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<nav class="mb-3">
|
<nav class="mb-3">
|
||||||
<div class="nav nav-tabs" id="nav-tab" role="tablist">
|
<div class="nav nav-tabs" id="nav-tab" role="tablist">
|
||||||
<a class="nav-item nav-link active" id="nav-tawarruq-tab" data-toggle="tab" href="#nav-tawarruq" role="tab" aria-controls="nav-tawarruq" aria-selected="true">SAG Baru</a>
|
<a class="nav-item nav-link" id="nav-tawarruq-tab" data-toggle="tab" href="#nav-tawarruq" role="tab" aria-controls="nav-tawarruq" aria-selected="false">SAG Baru</a>
|
||||||
<a class="nav-item nav-link" id="nav-xtawarruq-tab" data-toggle="tab" href="#nav-xtawarruq" role="tab" aria-controls="nav-xtawarruq" aria-selected="false"><span id="textnavsag">SAG Lama</span></a>
|
<a class="nav-item nav-link active" id="nav-xtawarruq-tab" data-toggle="tab" href="#nav-xtawarruq" role="tab" aria-controls="nav-xtawarruq" aria-selected="true"><span id="textnavsag">SAG Lama</span></a>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
<div class="tab-content" id="navtawarruqdannottawarruq">
|
<div class="tab-content" id="navtawarruqdannottawarruq">
|
||||||
<div class="tab-pane fade show active" id="nav-tawarruq" role="tabpanel" aria-labelledby="nav-tawarruq-tab">
|
<div class="tab-pane fade" id="nav-tawarruq" role="tabpanel" aria-labelledby="nav-tawarruq-tab">
|
||||||
<table class="table table-striped table-hover" id="myTable">
|
<table class="table table-striped table-hover" id="myTable">
|
||||||
<thead class="thead-dark">
|
<thead class="thead-dark">
|
||||||
<tr>
|
<tr>
|
||||||
@@ -167,7 +167,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane fade" id="nav-xtawarruq" role="tabpanel" aria-labelledby="nav-xtawarruq-tab">
|
<div class="tab-pane fade show active" id="nav-xtawarruq" role="tabpanel" aria-labelledby="nav-xtawarruq-tab">
|
||||||
<table id="xtawarruq" class="table table-striped table-hover">
|
<table id="xtawarruq" class="table table-striped table-hover">
|
||||||
<thead class="thead-dark">
|
<thead class="thead-dark">
|
||||||
{{-- <tr>
|
{{-- <tr>
|
||||||
|
|||||||
@@ -0,0 +1,346 @@
|
|||||||
|
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||||
|
<script src="{{ asset('js/table2excel.js') }}"></script>
|
||||||
|
<style>
|
||||||
|
|
||||||
|
.radiostyle .radio-green {
|
||||||
|
background-color: #27ae60;
|
||||||
|
color:white;
|
||||||
|
box-shadow: 5px 10px #888888;
|
||||||
|
width:200px;
|
||||||
|
margin-right:5px;
|
||||||
|
transition: 0.5s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-red {
|
||||||
|
background-color: #e74c3c;
|
||||||
|
color:white;
|
||||||
|
width:200px;
|
||||||
|
margin-right:5px;
|
||||||
|
box-shadow: 5px 10px #888888;
|
||||||
|
transition: 0.5s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-yellow {
|
||||||
|
background-color: #3498db;
|
||||||
|
color:white;
|
||||||
|
width:200px;
|
||||||
|
margin-right:5px;
|
||||||
|
box-shadow: 5px 10px #888888;
|
||||||
|
transition: 0.5s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-green:hover {
|
||||||
|
box-shadow: 5px 5px #888888;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-red:hover {
|
||||||
|
box-shadow: 5px 5px #888888;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-yellow:hover {
|
||||||
|
box-shadow: 5px 5px #888888;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-green input[type="radio"]:checked{
|
||||||
|
box-shadow: 5px 10px #888888;
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-yellow input[type="radio"]:checked{
|
||||||
|
box-shadow: 5px 10px #888888;
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-red input[type="radio"]:checked{
|
||||||
|
box-shadow: 5px 10px #888888;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#header {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header td,
|
||||||
|
#customers th {
|
||||||
|
|
||||||
|
padding: 4px;
|
||||||
|
font-size: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header tr:nth-child(even) {
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header tr:hover {
|
||||||
|
background-color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header th {
|
||||||
|
padding-top: 12px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding: 4px;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#scan {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan td,
|
||||||
|
#scan th {
|
||||||
|
|
||||||
|
padding: 8px;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan tr:nth-child(even) {
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan tr:hover {
|
||||||
|
background-color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan th {
|
||||||
|
padding-top: 12px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding: 4px;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#scan {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan td,
|
||||||
|
#scan th {
|
||||||
|
border-collapse: collapse;
|
||||||
|
padding: 8px;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan tr:nth-child(even) {
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan tr:hover {
|
||||||
|
background-color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan th {
|
||||||
|
border-collapse: collapse;
|
||||||
|
padding-top: 12px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding: 4px;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#details {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details td,
|
||||||
|
#details th {
|
||||||
|
|
||||||
|
padding: 8px;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details tr:nth-child(even) {
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details tr:hover {
|
||||||
|
background-color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details th {
|
||||||
|
padding-top: 12px;
|
||||||
|
font-style: bold;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding: 4px;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#sign {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sign td,
|
||||||
|
#sign th {
|
||||||
|
|
||||||
|
padding: 8px;
|
||||||
|
font-size: 11px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sign tr:nth-child(even) {
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sign tr:hover {
|
||||||
|
background-color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sign th {
|
||||||
|
padding-top: 12px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding: 4px;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<table id="header">
|
||||||
|
<tr>
|
||||||
|
<th rowspan="4" style="width:50px"><br><img src="{{ asset('img/ARRAHN1.png') }}" style="width:70px"></img></th>
|
||||||
|
<th colspan="1">KOPERASI PERMODALAN KELANTAN BERHAD</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{{ $cawangan_detail['namacaw'] }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{{ $cawangan_detail['alamat1'] }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{{ $cawangan_detail['alamat2'].' No Tel : '. $cawangan_detail['notel'].' No Faks : '. $cawangan_detail['nofaks'] }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<table id="scan">
|
||||||
|
<tr>
|
||||||
|
<th colspan ="5"><b>Laporan Stok Audit</b></th>
|
||||||
|
<th> </th>
|
||||||
|
<th> </th>
|
||||||
|
<th><b> Tarikh Cetak:</b>
|
||||||
|
@php
|
||||||
|
$myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
|
||||||
|
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||||
|
echo($formattedweddingdate)
|
||||||
|
@endphp
|
||||||
|
</th>
|
||||||
|
<th></th>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
<table id="details" class="table table-bordered">
|
||||||
|
<thead>
|
||||||
|
<th>Bil</th>
|
||||||
|
<th>Nama</th>
|
||||||
|
<th>No. KP</th>
|
||||||
|
<th>No. Telefon</th>
|
||||||
|
<th>Norujukan</th>
|
||||||
|
{{-- <th>Tempoh</th> --}}
|
||||||
|
{{-- <th>Berat</th> --}}
|
||||||
|
{{-- <th>Nilai Marhun (RM)</th> --}}
|
||||||
|
{{-- <th>Pembiayaan Asal (RM)</th> --}}
|
||||||
|
{{-- <th>Baki Pembiayaan (RM)</th> --}}
|
||||||
|
{{-- <th>Kadar Upah</th> --}}
|
||||||
|
{{-- <th>Tempoh Belum Bayar</th> --}}
|
||||||
|
{{-- <th>Keuntungan Belum Bayar (RM)</th> --}}
|
||||||
|
{{-- <th>Lanjutan</th> --}}
|
||||||
|
</thead>
|
||||||
|
@php
|
||||||
|
$counter = 1;
|
||||||
|
$totalpinjaman = 0;
|
||||||
|
@endphp
|
||||||
|
{{-- {{dd($stokaudit['rekod'])}} --}}
|
||||||
|
@foreach ($stokaudit['rekod'] as $index => $item)
|
||||||
|
@php
|
||||||
|
if ($item['listsag'][0]['hargajualan'] == null) {
|
||||||
|
$totalpinjaman += $item['listsag'][0]['pinjaman'];
|
||||||
|
} else {
|
||||||
|
$totalpinjaman += $item['listsag'][0]['bakipjm'];
|
||||||
|
}
|
||||||
|
@endphp
|
||||||
|
<tr>
|
||||||
|
<td>{{ $counter }}</td>
|
||||||
|
<td style="white-space: nowrap;">{{ $item['info']['nama'] ?? '-' }}</td>
|
||||||
|
<td>'{{ $item['nokp'] }}</td>
|
||||||
|
<td>6{{ $item['info']['telefon'] ?? '' }}</td>
|
||||||
|
<td style="white-space: nowrap;">@foreach($item['listsag'] as $item1){{ $item1['norujukan']}}, <br>@endforeach</td>
|
||||||
|
{{-- <td>@foreach($item['listsag'] as $item1){{ $item1['tempoh']}}<br>@endforeach</td> --}}
|
||||||
|
{{-- <td>@foreach($item['listsag'] as $item1){{ $item1['berat']}}<br>@endforeach</td> --}}
|
||||||
|
{{-- <td align = "right">@foreach($item['listsag'] as $item1){{ $item1['nilaimarhun']}}<br>@endforeach</td> --}}
|
||||||
|
{{-- <td align = "right">@foreach($item['listsag'] as $item1){{ $item1['pinjaman']}}<br>@endforeach</td> --}}
|
||||||
|
{{-- <td align = "right">@foreach($item['listsag'] as $item1){{ $item1['bakipjm']}}<br>@endforeach</td> --}}
|
||||||
|
{{-- <td>@foreach($item['listsag'] as $item1){{ $item1['kadarupah']}}<br>@endforeach</td> --}}
|
||||||
|
{{-- <td>@foreach($item['listsag'] as $item1){{ number_format($item1['tempoh'] - $item1['tempohbayar'], 2) }}<br>@endforeach</td> --}}
|
||||||
|
{{-- <td align = "right">@foreach($item['listsag'] as $item1){{ number_format($item1['tunggakan'], 2) }}<br>@endforeach</td> --}}
|
||||||
|
{{-- <td>@foreach($item['listsag'] as $item1){{ $item1['lelong_tawarruq']}}<br>@endforeach</td> --}}
|
||||||
|
</tr>
|
||||||
|
@php $counter++; @endphp
|
||||||
|
@endforeach
|
||||||
|
<tfoot>
|
||||||
|
{{-- <th colspan='6'>Jumlah</th> --}}
|
||||||
|
{{-- <th>{{ number_format($stokaudit['totalberat'], 2) }}</th> --}}
|
||||||
|
{{-- <th align = "right">{{ number_format($stokaudit['totalnilaimarhun'], 2) }}</th> --}}
|
||||||
|
{{-- <th align = "right">{{ number_format($stokaudit['totalpinjaman'], 2) }}</th> --}}
|
||||||
|
{{-- <th align = "right">{{ number_format($stokaudit['totalbakipjm'], 2) }}</th> --}}
|
||||||
|
{{-- <th align = "right">{{ number_format($stokaudit['totaltunggakan'], 2) }}</th> --}}
|
||||||
|
</tfoot>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
<script src="{{ asset('js/jquery.min.js') }}"></script>
|
||||||
|
<script>
|
||||||
|
|
||||||
|
$(document).ready(function () {
|
||||||
|
|
||||||
|
var table2excel = new Table2Excel();
|
||||||
|
table2excel.export(document.querySelectorAll("#details"),'stok_audit_khas');
|
||||||
|
setTimeout(function(){ window.close() }, 10);
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||||
|
<script src="{{ asset('js/table2excel.js') }}"></script>
|
||||||
@@ -17,7 +17,8 @@
|
|||||||
<div class="row form-group justify-content-center">
|
<div class="row form-group justify-content-center">
|
||||||
<div class="col-3 mx-1" >
|
<div class="col-3 mx-1" >
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<a href="{{ route('laporan.gadaian') }}" class="btn btn-dark btn-lg btn-block mb-3">Gadaian</a>
|
{{-- <a href="{{ route('laporan.gadaian') }}" class="btn btn-dark btn-lg btn-block mb-3">Gadaian</a> --}}
|
||||||
|
<a href="{{ route('laporan.gadaianujrah') }}" class="btn btn-dark btn-lg btn-block mb-3">Gadaian</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="row d-none">
|
<div class="row d-none">
|
||||||
{{-- <a href="{{ route('laporan.lelongan') }}" class="btn btn-dark btn-lg btn-block mb-3">Lelongan</a> --}}
|
{{-- <a href="{{ route('laporan.lelongan') }}" class="btn btn-dark btn-lg btn-block mb-3">Lelongan</a> --}}
|
||||||
@@ -53,7 +54,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-3 mx-1">
|
<div class="col-3 mx-1">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<a href="{{ route('laporan.tebus') }}" class="btn btn-dark btn-lg btn-block mb-3">Penebusan</a>
|
{{-- <a href="{{ route('laporan.tebus') }}" class="btn btn-dark btn-lg btn-block mb-3">Penebusan</a> --}}
|
||||||
|
<a href="{{ route('laporan.tebusujrah') }}" class="btn btn-dark btn-lg btn-block mb-3">Penebusan</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<a href="{{ route('laporan.kawalanstok') }}" class="btn btn-dark btn-lg btn-block mb-3">Kawalan Stok Produk</a>
|
<a href="{{ route('laporan.kawalanstok') }}" class="btn btn-dark btn-lg btn-block mb-3">Kawalan Stok Produk</a>
|
||||||
@@ -82,10 +84,13 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<a href="{{ route('laporan.serahmarhuntebus') }}" class="btn btn-dark btn-lg btn-block mb-3">Serah Marhun Tebus</a>
|
<a href="{{ route('laporan.serahmarhuntebus') }}" class="btn btn-dark btn-lg btn-block mb-3">Serah Marhun Tebus</a>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<a href="{{ route('laporan.stokauditkhas') }}" class="btn btn-dark btn-lg btn-block mb-3">SA(Whatsapp & SMS)</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-3 mx-1">
|
<div class="col-3 mx-1">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<a href="{{ route('homepage.ansuranupah') }}" class="btn btn-dark btn-lg btn-block mb-3">Ansuran & Upah</a>
|
<a href="{{ route('laporan.ansuranujrah') }}" class="btn btn-dark btn-lg btn-block mb-3">Ansuran</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<a href="{{ route('laporan.stokaudit') }}" class="btn btn-dark btn-lg btn-block mb-3">Stok Audit</a>
|
<a href="{{ route('laporan.stokaudit') }}" class="btn btn-dark btn-lg btn-block mb-3">Stok Audit</a>
|
||||||
|
|||||||
@@ -0,0 +1,274 @@
|
|||||||
|
@extends('layouts.app')
|
||||||
|
<style>
|
||||||
|
|
||||||
|
.radiostyle .radio-green {
|
||||||
|
background-color: #27ae60;
|
||||||
|
color:white;
|
||||||
|
box-shadow: 5px 10px #888888;
|
||||||
|
width:200px;
|
||||||
|
margin-right:5px;
|
||||||
|
transition: 0.5s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-red {
|
||||||
|
background-color: #e74c3c;
|
||||||
|
color:white;
|
||||||
|
width:200px;
|
||||||
|
margin-right:5px;
|
||||||
|
box-shadow: 5px 10px #888888;
|
||||||
|
transition: 0.5s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-yellow {
|
||||||
|
background-color: #3498db;
|
||||||
|
color:white;
|
||||||
|
width:200px;
|
||||||
|
margin-right:5px;
|
||||||
|
box-shadow: 5px 10px #888888;
|
||||||
|
transition: 0.5s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-green:hover {
|
||||||
|
box-shadow: 5px 5px #888888;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-red:hover {
|
||||||
|
box-shadow: 5px 5px #888888;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-yellow:hover {
|
||||||
|
box-shadow: 5px 5px #888888;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-green input[type="radio"]:checked{
|
||||||
|
box-shadow: 5px 10px #888888;
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-yellow input[type="radio"]:checked{
|
||||||
|
box-shadow: 5px 10px #888888;
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-red input[type="radio"]:checked{
|
||||||
|
box-shadow: 5px 10px #888888;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#details {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details td,
|
||||||
|
#details th {
|
||||||
|
|
||||||
|
padding: 8px;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details tr:nth-child(even) {
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details tr:hover {
|
||||||
|
background-color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details th {
|
||||||
|
padding-top: 12px;
|
||||||
|
font-style: bold;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding: 4px;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="card">
|
||||||
|
<nav aria-label="breadcrumb">
|
||||||
|
<ol class="breadcrumb pb-3">
|
||||||
|
<li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="{{ route('laporan') }}">Laporan</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="{{ route('laporan.stokauditkhas') }}">Stok Audit Khas (Blast Whatsapp & SMS)</a></li>
|
||||||
|
<li class="breadcrumb-item active" aria-current="page">Rekod Blast Whatsapp</li>
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<div class="card-body text-center">
|
||||||
|
<div class="row form-group">
|
||||||
|
<div class="col-md-2">
|
||||||
|
</div>
|
||||||
|
<div class="col-md-10">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@if ($message = Session::get('success'))
|
||||||
|
<div class="alert alert-success">
|
||||||
|
<p>{{ $message }}</p>
|
||||||
|
</div>
|
||||||
|
@elseif ($message = Session::get('failed'))
|
||||||
|
<div class="alert alert-danger">
|
||||||
|
<p>{{ $message }}</p>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
|
||||||
|
<form id="exportpdf" action="{{route('stokaudit.rekodblastexport')}}" target="_blank" method="POST">
|
||||||
|
@csrf
|
||||||
|
<input type="hidden" name="type" id="typedonwload" value="">
|
||||||
|
<input type='hidden' name="radaktif" value="aktif">
|
||||||
|
<table class="table table-bordered" id="details" style="width:100%">
|
||||||
|
<thead>
|
||||||
|
<th>Bil</th>
|
||||||
|
<th>Nama</th>
|
||||||
|
<th>No. KP</th>
|
||||||
|
<th>No. Telefon</th>
|
||||||
|
<th>Norujukan</th>
|
||||||
|
<th>Tempoh</th>
|
||||||
|
<th>Tarikh</th>
|
||||||
|
<th>Masa</th>
|
||||||
|
<th>Status</th>
|
||||||
|
</thead>
|
||||||
|
@php
|
||||||
|
$counter = 1;
|
||||||
|
$totalpinjaman = 0;
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
@foreach ($rekodblast['rekod'] as $index => $item)
|
||||||
|
@php
|
||||||
|
if ($item['listsag'][0]['hargajualan'] == null) {
|
||||||
|
$totalpinjaman += $item['listsag'][0]['pinjaman'];
|
||||||
|
} else {
|
||||||
|
$totalpinjaman += $item['listsag'][0]['bakipjm'];
|
||||||
|
}
|
||||||
|
@endphp
|
||||||
|
<tr>
|
||||||
|
<td>{{ $counter }}</td>
|
||||||
|
<td style="white-space: nowrap;">{{ $item['info']['nama'] ?? '-' }}</td>
|
||||||
|
<td>{{ $item['nokp'] }}<input type="hidden" name="nokp[]" value="{{ $item['nokp']}}"></td>
|
||||||
|
<td>{{ $item['info']['telefon'] ?? '-' }}<input type="hidden" name="telefon[]" value="{{ $item['info']['telefon'] ?? ''}}"></td>
|
||||||
|
<td style="white-space: nowrap;">@foreach($item['listsag'] as $item1){{ $item1['norujukan']}}<br>@endforeach</td>
|
||||||
|
<td style="white-space: nowrap;">@foreach($item['rekodblast'] as $item1){{ $item1['tempoh']}}<br>@endforeach</td>
|
||||||
|
<td style="white-space: nowrap;">@foreach($item['rekodblast'] as $item1){{ date('d-m-Y', strtotime($item1['created_at']))}}<br>@endforeach</td>
|
||||||
|
<td style="white-space: nowrap;">@foreach($item['rekodblast'] as $item1){{ date('h:i:s', strtotime($item1['created_at']))}}<br>@endforeach</td>
|
||||||
|
<td style="white-space: nowrap;">@foreach($item['rekodblast'] as $item1)
|
||||||
|
@php
|
||||||
|
$response = $item1['status'];
|
||||||
|
$status = collect(json_decode($response));
|
||||||
|
|
||||||
|
@endphp
|
||||||
|
@if($status['status'] == "success")
|
||||||
|
Berjaya
|
||||||
|
@else
|
||||||
|
Tidak Berjaya
|
||||||
|
@endif
|
||||||
|
|
||||||
|
<br>@endforeach</td>
|
||||||
|
</tr>
|
||||||
|
@php $counter++; @endphp
|
||||||
|
@endforeach
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
var tablecustomers = $('#myTable').DataTable({
|
||||||
|
"ordering": false
|
||||||
|
});
|
||||||
|
|
||||||
|
$(document).ready( function () {
|
||||||
|
$('#datetimepicker1').datepicker({
|
||||||
|
format: 'dd-mm-yyyy'
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
var tablelelongbid= $('#details').DataTable( {
|
||||||
|
"columnDefs": [
|
||||||
|
{
|
||||||
|
"targets": 0,
|
||||||
|
"target": '_blank',
|
||||||
|
"orderable": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"targets": 5,
|
||||||
|
"orderable": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
// order: [[1, 'asc']],
|
||||||
|
// // "ordering": false,
|
||||||
|
"info": false,
|
||||||
|
"lengthChange": false,
|
||||||
|
"pageLength": 9999999,
|
||||||
|
dom: 'Bfrtip',
|
||||||
|
buttons: [
|
||||||
|
|
||||||
|
// {
|
||||||
|
// className: 'btn btn-outline-success pl-4 pr-4 btn-sm export',
|
||||||
|
// target: "_blank",
|
||||||
|
// titleAttr: 'Export to Excel',
|
||||||
|
// text: '<h8><b>EXCEL</b></h8>',
|
||||||
|
// action: function ( e, dt, node, config ) {
|
||||||
|
// $('#typedonwload').val('excel');
|
||||||
|
// $("#exportpdf").submit();
|
||||||
|
// // window.open("_blank");
|
||||||
|
// }
|
||||||
|
// },
|
||||||
|
{
|
||||||
|
className: 'btn btn-outline-danger pl-4 pr-4 btn-sm export',
|
||||||
|
titleAttr: 'Export to PDF',
|
||||||
|
text: '<h8><b>PDF</b></h8>',
|
||||||
|
action: function ( e, dt, node, config ) {
|
||||||
|
$('#typedonwload').val('pdf');
|
||||||
|
$("#exportpdf").submit();
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
// {
|
||||||
|
// className: 'btn btn-outline-info pl-4 pr-4 btn-sm export',
|
||||||
|
// target: "_blank",
|
||||||
|
// titleAttr: 'Blast Whatsapp',
|
||||||
|
// text: '<h8><b>WHATSAPP</b></h8>',
|
||||||
|
// action: function ( e, dt, node, config ) {
|
||||||
|
// $('#typedonwload').val('whatsapp');
|
||||||
|
// $("#exportpdf").submit();
|
||||||
|
// // window.open("_blank");
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
]
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
$('.export').tooltip();
|
||||||
|
$( '.export').removeClass('dt-button');
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
@endsection
|
||||||
|
|
||||||
@@ -0,0 +1,268 @@
|
|||||||
|
@extends('layouts.app')
|
||||||
|
<style>
|
||||||
|
|
||||||
|
.radiostyle .radio-green {
|
||||||
|
background-color: #27ae60;
|
||||||
|
color:white;
|
||||||
|
box-shadow: 5px 10px #888888;
|
||||||
|
width:200px;
|
||||||
|
margin-right:5px;
|
||||||
|
transition: 0.5s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-red {
|
||||||
|
background-color: #e74c3c;
|
||||||
|
color:white;
|
||||||
|
width:200px;
|
||||||
|
margin-right:5px;
|
||||||
|
box-shadow: 5px 10px #888888;
|
||||||
|
transition: 0.5s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-yellow {
|
||||||
|
background-color: #3498db;
|
||||||
|
color:white;
|
||||||
|
width:200px;
|
||||||
|
margin-right:5px;
|
||||||
|
box-shadow: 5px 10px #888888;
|
||||||
|
transition: 0.5s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-green:hover {
|
||||||
|
box-shadow: 5px 5px #888888;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-red:hover {
|
||||||
|
box-shadow: 5px 5px #888888;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-yellow:hover {
|
||||||
|
box-shadow: 5px 5px #888888;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-green input[type="radio"]:checked{
|
||||||
|
box-shadow: 5px 10px #888888;
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-yellow input[type="radio"]:checked{
|
||||||
|
box-shadow: 5px 10px #888888;
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-red input[type="radio"]:checked{
|
||||||
|
box-shadow: 5px 10px #888888;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#details {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details td,
|
||||||
|
#details th {
|
||||||
|
|
||||||
|
padding: 8px;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details tr:nth-child(even) {
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details tr:hover {
|
||||||
|
background-color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details th {
|
||||||
|
padding-top: 12px;
|
||||||
|
font-style: bold;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding: 4px;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="card">
|
||||||
|
<nav aria-label="breadcrumb">
|
||||||
|
<ol class="breadcrumb pb-3">
|
||||||
|
<li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="{{ route('laporan') }}">Laporan</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="{{ route('laporan.stokauditkhas') }}">Stok Audit Khas (Blast SMS)</a></li>
|
||||||
|
<li class="breadcrumb-item active" aria-current="page">Rekod Blast SMS</li>
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<div class="card-body text-center">
|
||||||
|
<div class="row form-group">
|
||||||
|
<div class="col-md-2">
|
||||||
|
</div>
|
||||||
|
<div class="col-md-10">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@if ($message = Session::get('success'))
|
||||||
|
<div class="alert alert-success">
|
||||||
|
<p>{{ $message }}</p>
|
||||||
|
</div>
|
||||||
|
@elseif ($message = Session::get('failed'))
|
||||||
|
<div class="alert alert-danger">
|
||||||
|
<p>{{ $message }}</p>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
|
||||||
|
<form id="exportpdf" action="{{route('stokaudit.rekodblastsmsexport')}}" target="_blank" method="POST">
|
||||||
|
@csrf
|
||||||
|
<input type="hidden" name="type" id="typedonwload" value="">
|
||||||
|
<input type='hidden' name="radaktif" value="aktif">
|
||||||
|
<table class="table table-bordered" id="details" style="width:100%">
|
||||||
|
<thead>
|
||||||
|
<th>Bil</th>
|
||||||
|
<th>Nama</th>
|
||||||
|
<th>No. KP</th>
|
||||||
|
<th>No. Telefon</th>
|
||||||
|
<th>Norujukan</th>
|
||||||
|
<th>Tempoh</th>
|
||||||
|
<th>Tarikh</th>
|
||||||
|
<th>Masa</th>
|
||||||
|
<th>Status</th>
|
||||||
|
</thead>
|
||||||
|
@php
|
||||||
|
$counter = 1;
|
||||||
|
$totalpinjaman = 0;
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
@foreach ($rekodblastsms['rekod'] as $index => $item)
|
||||||
|
@php
|
||||||
|
if ($item['listsag'][0]['hargajualan'] == null) {
|
||||||
|
$totalpinjaman += $item['listsag'][0]['pinjaman'];
|
||||||
|
} else {
|
||||||
|
$totalpinjaman += $item['listsag'][0]['bakipjm'];
|
||||||
|
}
|
||||||
|
@endphp
|
||||||
|
<tr>
|
||||||
|
<td>{{ $counter }}</td>
|
||||||
|
<td style="white-space: nowrap;">{{ $item['info']['nama'] ?? '-' }}</td>
|
||||||
|
<td>{{ $item['nokp'] }}<input type="hidden" name="nokp[]" value="{{ $item['nokp']}}"></td>
|
||||||
|
<td>{{ $item['info']['telefon'] ?? '-' }}<input type="hidden" name="telefon[]" value="{{ $item['info']['telefon'] ?? ''}}"></td>
|
||||||
|
<td style="white-space: nowrap;">@foreach($item['listsag'] as $item1){{ $item1['norujukan']}}<br>@endforeach</td>
|
||||||
|
<td style="white-space: nowrap;">@foreach($item['rekodblast'] as $item1){{ $item1['tempoh']}}<br>@endforeach</td>
|
||||||
|
<td style="white-space: nowrap;">@foreach($item['rekodblast'] as $item1){{ date('d-m-Y', strtotime($item1['created_at']))}}<br>@endforeach</td>
|
||||||
|
<td style="white-space: nowrap;">@foreach($item['rekodblast'] as $item1){{ date('h:i:s', strtotime($item1['created_at']))}}<br>@endforeach</td>
|
||||||
|
<td style="white-space: nowrap;">@foreach($item['rekodblast'] as $item1)
|
||||||
|
@if($item1['status'] > 0)
|
||||||
|
Berjaya
|
||||||
|
@else
|
||||||
|
Tidak Berjaya
|
||||||
|
@endif
|
||||||
|
<br>@endforeach</td>
|
||||||
|
</tr>
|
||||||
|
@php $counter++; @endphp
|
||||||
|
@endforeach
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
var tablecustomers = $('#myTable').DataTable({
|
||||||
|
"ordering": false
|
||||||
|
});
|
||||||
|
|
||||||
|
$(document).ready( function () {
|
||||||
|
$('#datetimepicker1').datepicker({
|
||||||
|
format: 'dd-mm-yyyy'
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
var tablelelongbid= $('#details').DataTable( {
|
||||||
|
"columnDefs": [
|
||||||
|
{
|
||||||
|
"targets": 0,
|
||||||
|
"target": '_blank',
|
||||||
|
"orderable": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"targets": 5,
|
||||||
|
"orderable": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
// order: [[1, 'asc']],
|
||||||
|
// // "ordering": false,
|
||||||
|
"info": false,
|
||||||
|
"lengthChange": false,
|
||||||
|
"pageLength": 9999999,
|
||||||
|
dom: 'Bfrtip',
|
||||||
|
buttons: [
|
||||||
|
|
||||||
|
// {
|
||||||
|
// className: 'btn btn-outline-success pl-4 pr-4 btn-sm export',
|
||||||
|
// target: "_blank",
|
||||||
|
// titleAttr: 'Export to Excel',
|
||||||
|
// text: '<h8><b>EXCEL</b></h8>',
|
||||||
|
// action: function ( e, dt, node, config ) {
|
||||||
|
// $('#typedonwload').val('excel');
|
||||||
|
// $("#exportpdf").submit();
|
||||||
|
// // window.open("_blank");
|
||||||
|
// }
|
||||||
|
// },
|
||||||
|
{
|
||||||
|
className: 'btn btn-outline-danger pl-4 pr-4 btn-sm export',
|
||||||
|
titleAttr: 'Export to PDF',
|
||||||
|
text: '<h8><b>PDF</b></h8>',
|
||||||
|
action: function ( e, dt, node, config ) {
|
||||||
|
$('#typedonwload').val('pdf');
|
||||||
|
$("#exportpdf").submit();
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
// {
|
||||||
|
// className: 'btn btn-outline-info pl-4 pr-4 btn-sm export',
|
||||||
|
// target: "_blank",
|
||||||
|
// titleAttr: 'Blast Whatsapp',
|
||||||
|
// text: '<h8><b>WHATSAPP</b></h8>',
|
||||||
|
// action: function ( e, dt, node, config ) {
|
||||||
|
// $('#typedonwload').val('whatsapp');
|
||||||
|
// $("#exportpdf").submit();
|
||||||
|
// // window.open("_blank");
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
]
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
$('.export').tooltip();
|
||||||
|
$( '.export').removeClass('dt-button');
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
@endsection
|
||||||
|
|
||||||
@@ -0,0 +1,266 @@
|
|||||||
|
@extends('layouts.app')
|
||||||
|
<style>
|
||||||
|
|
||||||
|
.radiostyle .radio-green {
|
||||||
|
background-color: #27ae60;
|
||||||
|
color:white;
|
||||||
|
box-shadow: 5px 10px #888888;
|
||||||
|
width:200px;
|
||||||
|
margin-right:5px;
|
||||||
|
transition: 0.5s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-red {
|
||||||
|
background-color: #e74c3c;
|
||||||
|
color:white;
|
||||||
|
width:200px;
|
||||||
|
margin-right:5px;
|
||||||
|
box-shadow: 5px 10px #888888;
|
||||||
|
transition: 0.5s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-yellow {
|
||||||
|
background-color: #3498db;
|
||||||
|
color:white;
|
||||||
|
width:200px;
|
||||||
|
margin-right:5px;
|
||||||
|
box-shadow: 5px 10px #888888;
|
||||||
|
transition: 0.5s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-green:hover {
|
||||||
|
box-shadow: 5px 5px #888888;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-red:hover {
|
||||||
|
box-shadow: 5px 5px #888888;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-yellow:hover {
|
||||||
|
box-shadow: 5px 5px #888888;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-green input[type="radio"]:checked{
|
||||||
|
box-shadow: 5px 10px #888888;
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-yellow input[type="radio"]:checked{
|
||||||
|
box-shadow: 5px 10px #888888;
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-red input[type="radio"]:checked{
|
||||||
|
box-shadow: 5px 10px #888888;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#details {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details td,
|
||||||
|
#details th {
|
||||||
|
|
||||||
|
padding: 8px;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details tr:nth-child(even) {
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details tr:hover {
|
||||||
|
background-color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details th {
|
||||||
|
padding-top: 12px;
|
||||||
|
font-style: bold;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding: 4px;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="card">
|
||||||
|
<nav aria-label="breadcrumb">
|
||||||
|
<ol class="breadcrumb pb-3">
|
||||||
|
<li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="{{ route('laporan') }}">Laporan</a></li>
|
||||||
|
<li class="breadcrumb-item active" aria-current="page">Stok Audit Khas (Blast Whatsapp)</li>
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<div class="card-body text-center">
|
||||||
|
<div class="row form-group">
|
||||||
|
<div class="col-md-2">
|
||||||
|
</div>
|
||||||
|
<div class="col-md-10">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@if ($message = Session::get('success'))
|
||||||
|
<div class="alert alert-success">
|
||||||
|
<p>{{ $message }}</p>
|
||||||
|
</div>
|
||||||
|
@elseif ($message = Session::get('failed'))
|
||||||
|
<div class="alert alert-danger">
|
||||||
|
<p>{{ $message }}</p>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4 mx-auto">
|
||||||
|
<form action="{{ route('stokaudit.laporancetakkhas') }}" method="get">
|
||||||
|
@csrf
|
||||||
|
<div class="input-group mb-2">
|
||||||
|
<div class="input-group-prepend">
|
||||||
|
<span class="input-group-text" id="daritempoh">Dari Tempoh</span>
|
||||||
|
</div>
|
||||||
|
<input type="text" class="form-control" placeholder="" aria-label="Tempoh" aria-describedby="daritempoh" name = 'daritempoh'>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="col-md-5 mx-auto">
|
||||||
|
<div class="input-group mb-3">
|
||||||
|
<div class="input-group-prepend">
|
||||||
|
<span class="input-group-text" id="hinggatempoh">Hingga Tempoh</span>
|
||||||
|
</div>
|
||||||
|
<input type="text" class="form-control" placeholder="" aria-label="Tempoh" aria-describedby="hinggatempoh" name = 'hinggatempoh'>
|
||||||
|
<input type="submit" class="btn btn-primary ml-md-5" id="submit_button" name="submit_button" value="Carian">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<br><br>
|
||||||
|
<div class="row">
|
||||||
|
{{-- <div class="btn-group-toggle col-md-12 col-sm-12 mb-4 radiostyle" data-toggle="buttons"> --}}
|
||||||
|
{{-- <label class="btn btn-lg radio-yellow"> --}}
|
||||||
|
<input type="hidden" name="radaktif" value="aktif">
|
||||||
|
{{-- <span>Aktif</span> --}}
|
||||||
|
{{-- </label> --}}
|
||||||
|
{{-- <label class="btn btn-lg radio-green">
|
||||||
|
<input autocomplete="off" type="radio" name="radaktif" id="option2" value="takaktif" autocomplete="off"><span>Tak Aktif</span>
|
||||||
|
</label> --}}
|
||||||
|
{{-- </div> --}}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="btn-group-toggle col-md-12 col-sm-12 mb-4">
|
||||||
|
<label class="btn btn-lg green">
|
||||||
|
<a href="{{ route('stokaudit.rekodblast') }}" class="btn btn-dark btn-lg btn-block mb-3">Rekod Whatsapp</a>
|
||||||
|
</label>
|
||||||
|
<label class="btn btn-lg radio-green">
|
||||||
|
<a href="{{ route('stokaudit.rekodblastsms') }}" class="btn btn-dark btn-lg btn-block mb-3">Rekod SMS</a>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
var tablecustomers = $('#myTable').DataTable({
|
||||||
|
"ordering": false
|
||||||
|
});
|
||||||
|
|
||||||
|
$(document).ready( function () {
|
||||||
|
$('#datetimepicker1').datepicker({
|
||||||
|
format: 'dd-mm-yyyy'
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
var tablelelongbid= $('#details').DataTable( {
|
||||||
|
"columnDefs": [
|
||||||
|
{
|
||||||
|
"targets": 0,
|
||||||
|
"target": '_blank',
|
||||||
|
"orderable": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"targets": 5,
|
||||||
|
"orderable": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
// order: [[1, 'asc']],
|
||||||
|
// // "ordering": false,
|
||||||
|
"info": false,
|
||||||
|
"lengthChange": false,
|
||||||
|
"pageLength": 9999999,
|
||||||
|
dom: 'Bfrtip',
|
||||||
|
buttons: [
|
||||||
|
|
||||||
|
// {
|
||||||
|
// className: 'btn btn-outline-success pl-4 pr-4 btn-sm export',
|
||||||
|
// target: "_blank",
|
||||||
|
// titleAttr: 'Export to Excel',
|
||||||
|
// text: '<h8><b>EXCEL</b></h8>',
|
||||||
|
// action: function ( e, dt, node, config ) {
|
||||||
|
// $('#typedonwload').val('excel');
|
||||||
|
// $("#exportpdf").submit();
|
||||||
|
// // window.open("_blank");
|
||||||
|
// }
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// className: 'btn btn-outline-danger pl-4 pr-4 btn-sm export',
|
||||||
|
// titleAttr: 'Export to PDF',
|
||||||
|
// text: '<h8><b>PDF</b></h8>',
|
||||||
|
// action: function ( e, dt, node, config ) {
|
||||||
|
// $('#typedonwload').val('pdf');
|
||||||
|
// $("#exportpdf").submit();
|
||||||
|
// }
|
||||||
|
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// className: 'btn btn-outline-info pl-4 pr-4 btn-sm export',
|
||||||
|
// target: "_blank",
|
||||||
|
// titleAttr: 'Blast Whatsapp',
|
||||||
|
// text: '<h8><b>WHATSAPP</b></h8>',
|
||||||
|
// action: function ( e, dt, node, config ) {
|
||||||
|
// $('#typedonwload').val('whatsapp');
|
||||||
|
// $("#exportpdf").submit();
|
||||||
|
// // window.open("_blank");
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
]
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
$('.export').tooltip();
|
||||||
|
$( '.export').removeClass('dt-button');
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
@endsection
|
||||||
|
|
||||||
@@ -0,0 +1,254 @@
|
|||||||
|
@extends('layouts.app')
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="card">
|
||||||
|
<nav aria-label="breadcrumb">
|
||||||
|
<ol class="breadcrumb pb-3">
|
||||||
|
<li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="{{ route('laporan') }}">Laporan</a></li>
|
||||||
|
<li class="breadcrumb-item active" aria-current="page">Ansuran</li>
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<div class="card-body text-center">
|
||||||
|
<div class="row form-group">
|
||||||
|
<div class="col-md-2">
|
||||||
|
</div>
|
||||||
|
<div class="col-md-10">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-">
|
||||||
|
<form action="{{ route('ansuranujrah.laporancetak') }}" target="_blank" method="post">
|
||||||
|
@csrf
|
||||||
|
<div class="input-group mb-3">
|
||||||
|
<div class="input-group-prepend ml-3">
|
||||||
|
<span class="input-group-text" id="basic-addon1">Mula</span>
|
||||||
|
</div>
|
||||||
|
<input type="text" class="form-control col-4" placeholder="Pilih Tarikh" aria-label="Tarikh" id="datemula" name="datemula" aria-describedby="basic-addon1">
|
||||||
|
|
||||||
|
<div class="input-group-prepend ml-2 ">
|
||||||
|
<span class="input-group-text" id="basic-addon1">Hingga</span>
|
||||||
|
</div>
|
||||||
|
<input type="text" class="form-control col-4" placeholder="Pilih Tarikh" aria-label="Tarikh" id="datehingga" name="datehingga" aria-describedby="basic-addon1">
|
||||||
|
|
||||||
|
|
||||||
|
<input type="submit" class="btn btn-primary ml-md-5" id="submit_button" name="submit_button" value="Cetak">
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<table class="table table-striped table-hover" id="myTable" style="white-space: nowrap">
|
||||||
|
<thead class="thead-dark">
|
||||||
|
<tr>
|
||||||
|
<th>Bil</th>
|
||||||
|
<th>No Rujukan</th>
|
||||||
|
<th width="30%">Nama</th>
|
||||||
|
<th>No K/P</th>
|
||||||
|
<th>Tempoh</th>
|
||||||
|
<th>Baki Pembiayaan (RM)</th>
|
||||||
|
<th>Bayaran (RM)</th>
|
||||||
|
<th>Ujrah (RM)</th>
|
||||||
|
<th>Keuntungan 1% (RM)</th>
|
||||||
|
<th>Keuntungan (RM)</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tfoot class="thead-dark">
|
||||||
|
<th colspan="5">TOTAL</th>
|
||||||
|
<th id="pinjamantotal"></th>
|
||||||
|
<th id="bayarantotal"></th>
|
||||||
|
<th id="ansuranujrahtotal"></th>
|
||||||
|
<th id="ansuranonepercenttotal"></th>
|
||||||
|
<th id="keuntungantotal"></th>
|
||||||
|
</tfoot>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var api_url = "<?php echo $api_url ?>";
|
||||||
|
var kodcaw = "<?php echo $cawangan_info['kodcaw'] ?>";
|
||||||
|
|
||||||
|
var tabletebus = $('#myTable').DataTable({
|
||||||
|
"ordering": true
|
||||||
|
});
|
||||||
|
|
||||||
|
$(document).ready( function () {
|
||||||
|
$('#datemula').datepicker({
|
||||||
|
format: 'dd-mm-yyyy'
|
||||||
|
});
|
||||||
|
$('#datehingga').datepicker({
|
||||||
|
format: 'dd-mm-yyyy'
|
||||||
|
});
|
||||||
|
|
||||||
|
//current time
|
||||||
|
var current = new Date();
|
||||||
|
var current_date = current.getDate();
|
||||||
|
var current_month = current.getMonth()+1;
|
||||||
|
var current_year = current.getFullYear();
|
||||||
|
var today_date = current_year + '-' +current_month+'-'+current_date;
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
method:'get',
|
||||||
|
url: api_url + '/api/ansuranujrah/laporan/'+ kodcaw,
|
||||||
|
data:{
|
||||||
|
mula:today_date,
|
||||||
|
akhir:today_date,
|
||||||
|
},
|
||||||
|
success: function(tebus){
|
||||||
|
tebustable(tebus);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#datemula').change(function(){
|
||||||
|
|
||||||
|
//mula
|
||||||
|
var input_date = this.value;
|
||||||
|
var split_date = input_date.split('-');
|
||||||
|
var mula_date = split_date[2] + '-' +split_date[1]+'-'+split_date[0];
|
||||||
|
|
||||||
|
var mula = mula_date;
|
||||||
|
|
||||||
|
//current time
|
||||||
|
var hinggainput = $('#datehingga').val();
|
||||||
|
|
||||||
|
if(hinggainput != '')
|
||||||
|
{
|
||||||
|
var input_date = hinggainput;
|
||||||
|
var split_date = input_date.split('-');
|
||||||
|
var hingga_date = split_date[2] + '-' +split_date[1]+'-'+split_date[0];
|
||||||
|
|
||||||
|
var akhir = hingga_date;
|
||||||
|
|
||||||
|
}else{
|
||||||
|
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 akhir = today_date;
|
||||||
|
}
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
method:'get',
|
||||||
|
url: api_url + '/api/ansuranujrah/laporan/'+ kodcaw,
|
||||||
|
data:{
|
||||||
|
mula:mula,
|
||||||
|
akhir:akhir,
|
||||||
|
},
|
||||||
|
success: function(tebus){
|
||||||
|
tebustable(tebus);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
$('#datehingga').change(function(){
|
||||||
|
var input_date = this.value;
|
||||||
|
var split_date = input_date.split('-');
|
||||||
|
var hingga_date = split_date[2] + '-' +split_date[1]+'-'+split_date[0];
|
||||||
|
|
||||||
|
var akhir = hingga_date;
|
||||||
|
|
||||||
|
//current time
|
||||||
|
var mulainput = $('#datemula').val();
|
||||||
|
|
||||||
|
if(mulainput != '')
|
||||||
|
{
|
||||||
|
var input_date = mulainput;
|
||||||
|
var split_date = input_date.split('-');
|
||||||
|
var mula_date = split_date[2] + '-' +split_date[1]+'-'+split_date[0];
|
||||||
|
|
||||||
|
var mula = mula_date;
|
||||||
|
|
||||||
|
}else{
|
||||||
|
|
||||||
|
var dulu_date = '2017-01-01';
|
||||||
|
|
||||||
|
var mula = dulu_date;
|
||||||
|
}
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
method:'get',
|
||||||
|
url: api_url + '/api/ansuranujrah/laporan/'+ kodcaw,
|
||||||
|
data:{
|
||||||
|
mula:mula,
|
||||||
|
akhir:akhir,
|
||||||
|
},
|
||||||
|
success: function(tebus){
|
||||||
|
tebustable(tebus);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
const formatter = new Intl.NumberFormat('en-US', {
|
||||||
|
minimumFractionDigits: 2
|
||||||
|
});
|
||||||
|
|
||||||
|
function tebustable(data){
|
||||||
|
var counter = 1;
|
||||||
|
var total_pinjaman = 0;
|
||||||
|
var total_bayaran = 0;
|
||||||
|
var total_keuntungan = 0;
|
||||||
|
var total_ansuranujrah = 0;
|
||||||
|
var total_ansuranonepercent = 0;
|
||||||
|
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 += Number(gadai[0][0]['bakipjm']);
|
||||||
|
total_bayaran += Number(tebus['duit_masuk']);
|
||||||
|
total_keuntungan += Number(tebus['bayaran_keuntungan']);
|
||||||
|
total_ansuranujrah += Number(tebus['ansuranujrah']);
|
||||||
|
total_ansuranonepercent += Number(tebus['ansuranonepercent']);
|
||||||
|
|
||||||
|
tabletebus.row.add([
|
||||||
|
counter,
|
||||||
|
tebus['norujukan'],
|
||||||
|
customer['nama'],
|
||||||
|
gadai[0][0]['nokp'],
|
||||||
|
gadai[0][0]['tempoh'],
|
||||||
|
gadai[0][0]['bakipjm'],
|
||||||
|
tebus['duit_masuk'],
|
||||||
|
tebus['ansuranujrah'],
|
||||||
|
tebus['ansuranonepercent'],
|
||||||
|
tebus['bayaran_keuntungan']
|
||||||
|
]).draw();
|
||||||
|
$('#pinjamantotal').text(formatter.format(total_pinjaman.toFixed(2)));
|
||||||
|
$('#bayarantotal').text(formatter.format(total_bayaran.toFixed(2)));
|
||||||
|
$('#ansuranujrahtotal').text(formatter.format(total_ansuranujrah.toFixed(2)));
|
||||||
|
$('#ansuranonepercenttotal').text(formatter.format(total_ansuranonepercent.toFixed(2)));
|
||||||
|
$('#keuntungantotal').text(formatter.format(total_keuntungan.toFixed(2)));
|
||||||
|
|
||||||
|
counter = counter + 1;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
@endsection
|
||||||
@@ -0,0 +1,251 @@
|
|||||||
|
@extends('layouts.app')
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="card">
|
||||||
|
<nav aria-label="breadcrumb">
|
||||||
|
<ol class="breadcrumb pb-3">
|
||||||
|
<li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="{{ route('laporan') }}">Laporan</a></li>
|
||||||
|
<li class="breadcrumb-item active" aria-current="page">Gadaian</li>
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<div class="card-body text-center">
|
||||||
|
<div class="row form-group">
|
||||||
|
<div class="col-md-2">
|
||||||
|
</div>
|
||||||
|
<div class="col-md-10">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-">
|
||||||
|
<form action="{{ route('gadaianujrah.laporancetak') }}" target="_blank" method="post">
|
||||||
|
@csrf
|
||||||
|
<div class="input-group mb-3">
|
||||||
|
<div class="input-group-prepend ml-3">
|
||||||
|
<span class="input-group-text" id="basic-addon1">Mula</span>
|
||||||
|
</div>
|
||||||
|
<input type="text" class="form-control col-4" placeholder="Pilih Tarikh" aria-label="Tarikh" id="datemula" name="datemula" aria-describedby="basic-addon1">
|
||||||
|
|
||||||
|
<div class="input-group-prepend ml-2 ">
|
||||||
|
<span class="input-group-text" id="basic-addon1">Hingga</span>
|
||||||
|
</div>
|
||||||
|
<input type="text" class="form-control col-4" placeholder="Pilih Tarikh" aria-label="Tarikh" id="datehingga" name="datehingga" aria-describedby="basic-addon1">
|
||||||
|
|
||||||
|
|
||||||
|
<input type="submit" class="btn btn-primary ml-md-5" id="submit_button" name="submit_button" value="Cetak">
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<table class="table table-striped table-hover" id="myTable">
|
||||||
|
<thead class="thead-dark">
|
||||||
|
<tr>
|
||||||
|
<th>Bil</th>
|
||||||
|
<th>Nama</th>
|
||||||
|
<th>No K/P</th>
|
||||||
|
<th>Tarikh Gadai</th>
|
||||||
|
<th>No Rujukan</th>
|
||||||
|
<th>Pembiayaan (RM)</th>
|
||||||
|
<th>Ujrah (RM) </th>
|
||||||
|
<th>Keuntungan 1% (RM)</th>
|
||||||
|
<th>Keuntungan Sebenar (RM)</th>
|
||||||
|
<th>Nilai Marhun (RM)</th>
|
||||||
|
<th>Berat (g)</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tfoot class="thead-dark">
|
||||||
|
<th colspan="5">TOTAL</th>
|
||||||
|
<th id="pinjamantotal"></th>
|
||||||
|
<th id="ujrahtotal"></th>
|
||||||
|
<th id="onepercenttotal"></th>
|
||||||
|
<th id="upah12total"></th>
|
||||||
|
<th id="nmtotal"></th>
|
||||||
|
<th id="berattotal"></th>
|
||||||
|
</tfoot>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var api_url = "<?php echo $api_url ?>";
|
||||||
|
var kodcaw = "<?php echo $cawangan_info['kodcaw'] ?>";
|
||||||
|
|
||||||
|
var tablegadai = $('#myTable').DataTable({
|
||||||
|
"ordering": false
|
||||||
|
});
|
||||||
|
$(document).ready( function () {
|
||||||
|
$('#datemula').datepicker({
|
||||||
|
format: 'dd-mm-yyyy'
|
||||||
|
});
|
||||||
|
$('#datehingga').datepicker({
|
||||||
|
format: 'dd-mm-yyyy'
|
||||||
|
});
|
||||||
|
|
||||||
|
//current time
|
||||||
|
var current = new Date();
|
||||||
|
var current_date = current.getDate();
|
||||||
|
var current_month = current.getMonth()+1;
|
||||||
|
var current_year = current.getFullYear();
|
||||||
|
var today_date = current_year + '-' +current_month+'-'+current_date;
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
method:'get',
|
||||||
|
url: api_url + '/api/gadailaporanRangeDate/'+ kodcaw,
|
||||||
|
data:{
|
||||||
|
mula:today_date,
|
||||||
|
akhir:today_date,
|
||||||
|
},
|
||||||
|
success: function(gadai){
|
||||||
|
gadaitable(gadai);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#datemula').change(function(){
|
||||||
|
|
||||||
|
//mula
|
||||||
|
var input_date = this.value;
|
||||||
|
var split_date = input_date.split('-');
|
||||||
|
var mula_date = split_date[2] + '-' +split_date[1]+'-'+split_date[0];
|
||||||
|
|
||||||
|
var mula = mula_date;
|
||||||
|
|
||||||
|
//current time
|
||||||
|
var hinggainput = $('#datehingga').val();
|
||||||
|
|
||||||
|
if(hinggainput != '')
|
||||||
|
{
|
||||||
|
var input_date = hinggainput;
|
||||||
|
var split_date = input_date.split('-');
|
||||||
|
var hingga_date = split_date[2] + '-' +split_date[1]+'-'+split_date[0];
|
||||||
|
|
||||||
|
var akhir = hingga_date;
|
||||||
|
|
||||||
|
}else{
|
||||||
|
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 akhir = today_date;
|
||||||
|
}
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
method:'get',
|
||||||
|
url: api_url + '/api/gadailaporanRangeDate/'+ kodcaw,
|
||||||
|
data:{
|
||||||
|
mula:mula,
|
||||||
|
akhir:akhir,
|
||||||
|
},
|
||||||
|
success: function(gadai){
|
||||||
|
gadaitable(gadai);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#datehingga').change(function(){
|
||||||
|
var input_date = this.value;
|
||||||
|
var split_date = input_date.split('-');
|
||||||
|
var hingga_date = split_date[2] + '-' +split_date[1]+'-'+split_date[0];
|
||||||
|
|
||||||
|
var akhir = hingga_date;
|
||||||
|
|
||||||
|
//current time
|
||||||
|
var mulainput = $('#datemula').val();
|
||||||
|
|
||||||
|
if(mulainput != '')
|
||||||
|
{
|
||||||
|
var input_date = mulainput;
|
||||||
|
var split_date = input_date.split('-');
|
||||||
|
var mula_date = split_date[2] + '-' +split_date[1]+'-'+split_date[0];
|
||||||
|
|
||||||
|
var mula = mula_date;
|
||||||
|
|
||||||
|
}else{
|
||||||
|
|
||||||
|
var dulu_date = '2017-01-01';
|
||||||
|
|
||||||
|
var mula = dulu_date;
|
||||||
|
}
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
method:'get',
|
||||||
|
url: api_url + '/api/gadailaporanRangeDate/'+ kodcaw,
|
||||||
|
data:{
|
||||||
|
mula:mula,
|
||||||
|
akhir:akhir,
|
||||||
|
},
|
||||||
|
success: function(gadai){
|
||||||
|
gadaitable(gadai);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
const formatter = new Intl.NumberFormat('en-US', {
|
||||||
|
minimumFractionDigits: 2
|
||||||
|
});
|
||||||
|
|
||||||
|
function gadaitable(data){
|
||||||
|
var counter = 1;
|
||||||
|
var total_pinjaman = 0;
|
||||||
|
var total_upah12 = 0;
|
||||||
|
var total_nm = 0;
|
||||||
|
var total_berat = 0;
|
||||||
|
var total_onepercent = 0;
|
||||||
|
var total_ujrah = 0;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
tablegadai.clear().draw();
|
||||||
|
$.each(data,function(index,gadai){
|
||||||
|
total_pinjaman += Number(gadai['pinjaman']);
|
||||||
|
total_upah12 += Number(gadai['upah12']);
|
||||||
|
total_nm += Number(gadai['nilaimarhun']);
|
||||||
|
total_berat += Number(gadai['berat']);
|
||||||
|
total_onepercent += Number(gadai['onepercent']*12);
|
||||||
|
total_ujrah += Number(gadai['ujrah']*12);
|
||||||
|
|
||||||
|
tablegadai.row.add([
|
||||||
|
counter,
|
||||||
|
gadai['nama'],
|
||||||
|
gadai['nokp'],
|
||||||
|
gadai['t_gadai'],
|
||||||
|
gadai['norujukan'],
|
||||||
|
formatter.format(gadai['pinjaman']),
|
||||||
|
formatter.format(gadai['ujrah']*12),
|
||||||
|
formatter.format(gadai['onepercent']*12),
|
||||||
|
formatter.format(gadai['upah12']),
|
||||||
|
formatter.format(gadai['nilaimarhun']),
|
||||||
|
formatter.format(gadai['berat'])
|
||||||
|
]).draw();
|
||||||
|
$('#pinjamantotal').text(formatter.format(total_pinjaman.toFixed(2)));
|
||||||
|
$('#upah12total').text(formatter.format(total_upah12.toFixed(2)));
|
||||||
|
$('#nmtotal').text(formatter.format(total_nm.toFixed(2)));
|
||||||
|
$('#berattotal').text(formatter.format(total_berat.toFixed(2)));
|
||||||
|
$('#berattotal').text(formatter.format(total_berat.toFixed(2)));
|
||||||
|
$('#onepercenttotal').text(formatter.format(total_onepercent.toFixed(2)));
|
||||||
|
$('#ujrahtotal').text(formatter.format(total_ujrah.toFixed(2)));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
counter = counter + 1;
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
@endsection
|
||||||
|
|
||||||
@@ -0,0 +1,248 @@
|
|||||||
|
@extends('layouts.app')
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="card">
|
||||||
|
<nav aria-label="breadcrumb">
|
||||||
|
<ol class="breadcrumb pb-3">
|
||||||
|
<li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="{{ route('laporan') }}">Laporan</a></li>
|
||||||
|
<li class="breadcrumb-item active" aria-current="page">Penebusan</li>
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<div class="card-body text-center">
|
||||||
|
<div class="row form-group">
|
||||||
|
<div class="col-md-2">
|
||||||
|
</div>
|
||||||
|
<div class="col-md-10">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-">
|
||||||
|
<form action="{{ route('tebusujrah.laporancetak') }}" target="_blank" method="post">
|
||||||
|
@csrf
|
||||||
|
<div class="input-group mb-3">
|
||||||
|
<div class="input-group-prepend ml-3">
|
||||||
|
<span class="input-group-text" id="basic-addon1">Mula</span>
|
||||||
|
</div>
|
||||||
|
<input type="text" class="form-control col-4" placeholder="Pilih Tarikh" aria-label="Tarikh" id="datemula" name="datemula" aria-describedby="basic-addon1">
|
||||||
|
|
||||||
|
<div class="input-group-prepend ml-2 ">
|
||||||
|
<span class="input-group-text" id="basic-addon1">Hingga</span>
|
||||||
|
</div>
|
||||||
|
<input type="text" class="form-control col-4" placeholder="Pilih Tarikh" aria-label="Tarikh" id="datehingga" name="datehingga" aria-describedby="basic-addon1">
|
||||||
|
|
||||||
|
|
||||||
|
<input type="submit" class="btn btn-primary ml-md-5" id="submit_button" name="submit_button" value="Cetak">
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<table class="table table-striped table-hover" id="myTable">
|
||||||
|
<thead class="thead-dark">
|
||||||
|
<tr style="white-space: nowrap">
|
||||||
|
<th>Bil</th>
|
||||||
|
<th width="22%">Nama</th>
|
||||||
|
<th>No K/P</th>
|
||||||
|
<th>Tarikh Tebus</th>
|
||||||
|
<th>No Rujukan</th>
|
||||||
|
<th>Pembiayaan (RM)</th>
|
||||||
|
<th>Ujrah (RM)</th>
|
||||||
|
<th>Keuntungan 1% (RM)</th>
|
||||||
|
<th>Keuntungan (RM)</th>
|
||||||
|
<th>Bayaran (RM)</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tfoot class="thead-dark">
|
||||||
|
<th colspan="5">TOTAL</th>
|
||||||
|
<th id="pinjamantotal"></th>
|
||||||
|
<th id="totalujrah"></th>
|
||||||
|
<th id="totalonepercent"></th>
|
||||||
|
<th id="keuntungantotal"></th>
|
||||||
|
<th id="bayarantotal"></th>
|
||||||
|
</tfoot>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var api_url = "<?php echo $api_url ?>";
|
||||||
|
var kodcaw = "<?php echo $cawangan_info['kodcaw'] ?>";
|
||||||
|
|
||||||
|
var tabletebus = $('#myTable').DataTable({
|
||||||
|
"ordering": true
|
||||||
|
});
|
||||||
|
|
||||||
|
$(document).ready( function () {
|
||||||
|
$('#datemula').datepicker({
|
||||||
|
format: 'dd-mm-yyyy'
|
||||||
|
});
|
||||||
|
$('#datehingga').datepicker({
|
||||||
|
format: 'dd-mm-yyyy'
|
||||||
|
});
|
||||||
|
|
||||||
|
//current time
|
||||||
|
var current = new Date();
|
||||||
|
var current_date = current.getDate();
|
||||||
|
var current_month = current.getMonth()+1;
|
||||||
|
var current_year = current.getFullYear();
|
||||||
|
var today_date = current_year + '-' +current_month+'-'+current_date;
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
method:'get',
|
||||||
|
url: api_url + '/api/tebusujrah/laporan/'+ kodcaw,
|
||||||
|
data:{
|
||||||
|
mula:today_date,
|
||||||
|
akhir:today_date,
|
||||||
|
},
|
||||||
|
success: function(tebus){
|
||||||
|
tebustable(tebus);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#datemula').change(function(){
|
||||||
|
|
||||||
|
//mula
|
||||||
|
var input_date = this.value;
|
||||||
|
var split_date = input_date.split('-');
|
||||||
|
var mula_date = split_date[2] + '-' +split_date[1]+'-'+split_date[0];
|
||||||
|
|
||||||
|
var mula = mula_date;
|
||||||
|
|
||||||
|
//current time
|
||||||
|
var hinggainput = $('#datehingga').val();
|
||||||
|
|
||||||
|
if(hinggainput != '')
|
||||||
|
{
|
||||||
|
var input_date = hinggainput;
|
||||||
|
var split_date = input_date.split('-');
|
||||||
|
var hingga_date = split_date[2] + '-' +split_date[1]+'-'+split_date[0];
|
||||||
|
|
||||||
|
var akhir = hingga_date;
|
||||||
|
|
||||||
|
}else{
|
||||||
|
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 akhir = today_date;
|
||||||
|
}
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
method:'get',
|
||||||
|
url: api_url + '/api/tebusujrah/laporan/'+ kodcaw,
|
||||||
|
data:{
|
||||||
|
mula:mula,
|
||||||
|
akhir:akhir,
|
||||||
|
},
|
||||||
|
success: function(tebus){
|
||||||
|
tebustable(tebus);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
$('#datehingga').change(function(){
|
||||||
|
var input_date = this.value;
|
||||||
|
var split_date = input_date.split('-');
|
||||||
|
var hingga_date = split_date[2] + '-' +split_date[1]+'-'+split_date[0];
|
||||||
|
|
||||||
|
var akhir = hingga_date;
|
||||||
|
|
||||||
|
//current time
|
||||||
|
var mulainput = $('#datemula').val();
|
||||||
|
|
||||||
|
if(mulainput != '')
|
||||||
|
{
|
||||||
|
var input_date = mulainput;
|
||||||
|
var split_date = input_date.split('-');
|
||||||
|
var mula_date = split_date[2] + '-' +split_date[1]+'-'+split_date[0];
|
||||||
|
|
||||||
|
var mula = mula_date;
|
||||||
|
|
||||||
|
}else{
|
||||||
|
|
||||||
|
var dulu_date = '2017-01-01';
|
||||||
|
|
||||||
|
var mula = dulu_date;
|
||||||
|
}
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
method:'get',
|
||||||
|
url: api_url + '/api/tebusujrah/laporan/'+ kodcaw,
|
||||||
|
data:{
|
||||||
|
mula:mula,
|
||||||
|
akhir:akhir,
|
||||||
|
},
|
||||||
|
success: function(tebus){
|
||||||
|
tebustable(tebus);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
const formatter = new Intl.NumberFormat('en-US', {
|
||||||
|
minimumFractionDigits: 2
|
||||||
|
});
|
||||||
|
|
||||||
|
function tebustable(data){
|
||||||
|
var counter = 1;
|
||||||
|
var total_pinjaman = 0;
|
||||||
|
var total_keuntungan = 0;
|
||||||
|
var total_bayaran = 0;
|
||||||
|
var total_ujrah = 0;
|
||||||
|
var total_onepercent = 0;
|
||||||
|
|
||||||
|
console.log(data);
|
||||||
|
|
||||||
|
tabletebus.clear().draw();
|
||||||
|
$.each(data,function(index,tebus){
|
||||||
|
total_pinjaman += parseFloat(tebus['pinjaman']);
|
||||||
|
total_keuntungan += parseFloat(tebus['bakiupah']);
|
||||||
|
total_bayaran += parseFloat(tebus['bakipjm']);
|
||||||
|
total_bayaran += parseFloat(tebus['bakipjm']);
|
||||||
|
total_ujrah += parseFloat(tebus['ujrah']);
|
||||||
|
total_onepercent += parseFloat(tebus['onepercent']);
|
||||||
|
|
||||||
|
tabletebus.row.add([
|
||||||
|
counter,
|
||||||
|
tebus['nama'],
|
||||||
|
tebus['nokp'],
|
||||||
|
tebus['t_tebus'],
|
||||||
|
tebus['norujukan'],
|
||||||
|
formatter.format(tebus['pinjaman']),
|
||||||
|
formatter.format(tebus['ujrah']),
|
||||||
|
formatter.format(tebus['onepercent']),
|
||||||
|
formatter.format(tebus['bakiupah']),
|
||||||
|
formatter.format(tebus['bakipjm'])
|
||||||
|
]).draw();
|
||||||
|
counter = counter + 1;
|
||||||
|
$('#pinjamantotal').text(formatter.format(total_pinjaman.toFixed(2)));
|
||||||
|
$('#totalujrah').text(formatter.format(total_ujrah.toFixed(2)));
|
||||||
|
$('#totalonepercent').text(formatter.format(total_onepercent.toFixed(2)));
|
||||||
|
$('#keuntungantotal').text(formatter.format(total_keuntungan.toFixed(2)));
|
||||||
|
$('#bayarantotal').text(formatter.format(total_bayaran.toFixed(2)));
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
@endsection
|
||||||
|
|
||||||
@@ -374,6 +374,10 @@
|
|||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{-- @if (request()->route()->getName() === 'penebusan')
|
||||||
|
@include('widgets.calculator')
|
||||||
|
@endif --}}
|
||||||
|
|
||||||
@yield('footer')
|
@yield('footer')
|
||||||
</body>
|
</body>
|
||||||
{{-- JS Stack--}}
|
{{-- JS Stack--}}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
@extends('layouts.app')
|
@extends('layouts.app')
|
||||||
@section('footer')
|
@section('footer')
|
||||||
|
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
@@ -0,0 +1,340 @@
|
|||||||
|
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||||
|
<style>
|
||||||
|
#sim {
|
||||||
|
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||||
|
font-size:10px;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sim td {padding:3px 5px 3px 5px; padding-right:10px;}, #sim th {
|
||||||
|
border: 0px solid;
|
||||||
|
padding: 1px;
|
||||||
|
/* text-align: left; */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#sim tr:nth-child(even){}
|
||||||
|
|
||||||
|
#sim tr {
|
||||||
|
border-bottom: 1px black;
|
||||||
|
}
|
||||||
|
#sim th {
|
||||||
|
border: 1px black;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sim2 th {
|
||||||
|
text-align: center;
|
||||||
|
border: 0px solid ;
|
||||||
|
table-layout:auto;
|
||||||
|
color: black;
|
||||||
|
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.row {
|
||||||
|
margin-right:-5px;
|
||||||
|
margin-right:-5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.column {
|
||||||
|
float: right;
|
||||||
|
width: 100%;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Clearfix (clear floats) */
|
||||||
|
.row::after {
|
||||||
|
content: "";
|
||||||
|
clear: both;
|
||||||
|
display: table;
|
||||||
|
}
|
||||||
|
|
||||||
|
table {
|
||||||
|
border-collapse: collapse;
|
||||||
|
border-spacing: 0;
|
||||||
|
width: 200%;
|
||||||
|
border: 0px solid #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
td {
|
||||||
|
/* text-align: right; */
|
||||||
|
padding: 16px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
th{
|
||||||
|
/* text-align: center; */
|
||||||
|
padding: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
tr:nth-child(even) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.font{
|
||||||
|
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||||
|
font-size:12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
/** Define now the real margins of every page in the PDF **/
|
||||||
|
body {
|
||||||
|
margin-top: 1cm;
|
||||||
|
/* margin-left: 2cm; */
|
||||||
|
/* margin-right: 2cm; */
|
||||||
|
margin-bottom: 2cm;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Define the header rules **/
|
||||||
|
header {
|
||||||
|
position: fixed;
|
||||||
|
top: -1cm;
|
||||||
|
left: 0cm;
|
||||||
|
right: 0cm;
|
||||||
|
height: 0cm;
|
||||||
|
/** Extra personal styles **/
|
||||||
|
/* background-color: #eaeaea; */
|
||||||
|
color: black;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 1.5cm;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Define the footer rules **/
|
||||||
|
footer {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0cm;
|
||||||
|
left: 0cm;
|
||||||
|
right: 0cm;
|
||||||
|
height: 2cm;
|
||||||
|
|
||||||
|
/** Extra personal styles **/
|
||||||
|
/* background-color: #eaeaea; */
|
||||||
|
color: black;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 1.5cm;
|
||||||
|
}
|
||||||
|
footer .pagenum:before {
|
||||||
|
content: counter(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
.font{
|
||||||
|
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||||
|
font-size:12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#header {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header td,
|
||||||
|
#customers th {
|
||||||
|
|
||||||
|
padding: 4px;
|
||||||
|
font-size: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header tr:nth-child(even) {
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header tr:hover {
|
||||||
|
background-color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header th {
|
||||||
|
padding-top: 12px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
/* text-align: left; */
|
||||||
|
padding: 4px;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#scan {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan td,
|
||||||
|
#scan th {
|
||||||
|
border-collapse: collapse;
|
||||||
|
padding: 8px;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan tr:nth-child(even) {
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan tr:hover {
|
||||||
|
background-color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan th {
|
||||||
|
border-collapse: collapse;
|
||||||
|
padding-top: 12px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
/* text-align: left; */
|
||||||
|
padding: 4px;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#details {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details td,
|
||||||
|
#details th {
|
||||||
|
|
||||||
|
padding: 8px;
|
||||||
|
font-size: 11px;
|
||||||
|
border: 1px solid;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details tr:nth-child(even) {
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details tr:hover {
|
||||||
|
background-color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details th {
|
||||||
|
padding-top: 12px;
|
||||||
|
font-style: bold;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding: 4px;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<table width="100%" id="header">
|
||||||
|
<tr>
|
||||||
|
<th rowspan="4" style="width:50px"><br><img src="{{ asset('img/ARRAHN1.png') }}" style="width:70px"></img></th>
|
||||||
|
<th colspan="1">KOPERASI PERMODALAN KELANTAN BERHAD</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{{ $cawangan_detail['namacaw'] }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{{ $cawangan_detail['alamat1'] }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{{ $cawangan_detail['alamat2'].' No Tel : '. $cawangan_detail['notel'].' No Faks : '. $cawangan_detail['nofaks'] }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<table border="0" width="100%" id="scan">
|
||||||
|
<tr>
|
||||||
|
<th colspan ="5"><b>Laporan Blast Whatsapp</b></th>
|
||||||
|
<th> </th>
|
||||||
|
<th><b> Tarikh Cetak:</b>
|
||||||
|
@php
|
||||||
|
$myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
|
||||||
|
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||||
|
echo($formattedweddingdate)
|
||||||
|
@endphp
|
||||||
|
</th>
|
||||||
|
<th></th>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
<table class="table table-bordered" id="details" style="width:100%">
|
||||||
|
<thead>
|
||||||
|
<th>Bil</th>
|
||||||
|
<th>Nama</th>
|
||||||
|
<th>No. KP</th>
|
||||||
|
<th>No. Telefon</th>
|
||||||
|
<th>Norujukan</th>
|
||||||
|
<th>Tempoh</th>
|
||||||
|
<th>Tarikh</th>
|
||||||
|
<th>Masa</th>
|
||||||
|
<th>Status</th>
|
||||||
|
</thead>
|
||||||
|
@php
|
||||||
|
$counter = 1;
|
||||||
|
$totalpinjaman = 0;
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
@foreach ($rekodblast['rekod'] as $index => $item)
|
||||||
|
@php
|
||||||
|
if ($item['listsag'][0]['hargajualan'] == null) {
|
||||||
|
$totalpinjaman += $item['listsag'][0]['pinjaman'];
|
||||||
|
} else {
|
||||||
|
$totalpinjaman += $item['listsag'][0]['bakipjm'];
|
||||||
|
}
|
||||||
|
@endphp
|
||||||
|
<tr>
|
||||||
|
<td>{{ $counter }}</td>
|
||||||
|
<td style="white-space: nowrap;">{{ $item['info']['nama'] ?? '-' }}</td>
|
||||||
|
<td>{{ $item['nokp'] }}<input type="hidden" name="nokp[]" value="{{ $item['nokp']}}"></td>
|
||||||
|
<td>{{ $item['info']['telefon'] ?? '-' }}<input type="hidden" name="telefon[]" value="{{ $item['info']['telefon'] ?? ''}}"></td>
|
||||||
|
<td style="white-space: nowrap;">@foreach($item['listsag'] as $item1){{ $item1['norujukan']}}<br>@endforeach</td>
|
||||||
|
<td style="white-space: nowrap;">@foreach($item['rekodblast'] as $item1){{ $item1['tempoh']}}<br>@endforeach</td>
|
||||||
|
<td style="white-space: nowrap;">@foreach($item['rekodblast'] as $item1){{ date('d-m-Y', strtotime($item1['created_at']))}}<br>@endforeach</td>
|
||||||
|
<td style="white-space: nowrap;">@foreach($item['rekodblast'] as $item1){{ date('h:i:s', strtotime($item1['created_at']))}}<br>@endforeach</td>
|
||||||
|
<td style="white-space: nowrap;">@foreach($item['rekodblast'] as $item1)
|
||||||
|
@php
|
||||||
|
$response = $item1['status'];
|
||||||
|
$status = collect(json_decode($response));
|
||||||
|
|
||||||
|
@endphp
|
||||||
|
@if($status['status'] == "success")
|
||||||
|
Berjaya
|
||||||
|
@else
|
||||||
|
Tidak Berjaya
|
||||||
|
@endif
|
||||||
|
|
||||||
|
<br>@endforeach</td>
|
||||||
|
</tr>
|
||||||
|
@php $counter++; @endphp
|
||||||
|
@endforeach
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
<script src="{{ asset('js/jquery.min.js') }}"></script>
|
||||||
|
<script>
|
||||||
|
|
||||||
|
$(document).ready(function () {
|
||||||
|
|
||||||
|
var table2excel = new Table2Excel();
|
||||||
|
table2excel.export(document.querySelectorAll("#customers"),'senarai_notis');
|
||||||
|
setTimeout(function(){ window.close() }, 10);
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||||
|
<script src="{{ asset('js/table2excel.js') }}"></script>
|
||||||
@@ -0,0 +1,334 @@
|
|||||||
|
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||||
|
<style>
|
||||||
|
#sim {
|
||||||
|
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||||
|
font-size:10px;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sim td {padding:3px 5px 3px 5px; padding-right:10px;}, #sim th {
|
||||||
|
border: 0px solid;
|
||||||
|
padding: 1px;
|
||||||
|
/* text-align: left; */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#sim tr:nth-child(even){}
|
||||||
|
|
||||||
|
#sim tr {
|
||||||
|
border-bottom: 1px black;
|
||||||
|
}
|
||||||
|
#sim th {
|
||||||
|
border: 1px black;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sim2 th {
|
||||||
|
text-align: center;
|
||||||
|
border: 0px solid ;
|
||||||
|
table-layout:auto;
|
||||||
|
color: black;
|
||||||
|
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.row {
|
||||||
|
margin-right:-5px;
|
||||||
|
margin-right:-5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.column {
|
||||||
|
float: right;
|
||||||
|
width: 100%;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Clearfix (clear floats) */
|
||||||
|
.row::after {
|
||||||
|
content: "";
|
||||||
|
clear: both;
|
||||||
|
display: table;
|
||||||
|
}
|
||||||
|
|
||||||
|
table {
|
||||||
|
border-collapse: collapse;
|
||||||
|
border-spacing: 0;
|
||||||
|
width: 200%;
|
||||||
|
border: 0px solid #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
td {
|
||||||
|
/* text-align: right; */
|
||||||
|
padding: 16px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
th{
|
||||||
|
/* text-align: center; */
|
||||||
|
padding: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
tr:nth-child(even) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.font{
|
||||||
|
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||||
|
font-size:12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
/** Define now the real margins of every page in the PDF **/
|
||||||
|
body {
|
||||||
|
margin-top: 1cm;
|
||||||
|
/* margin-left: 2cm; */
|
||||||
|
/* margin-right: 2cm; */
|
||||||
|
margin-bottom: 2cm;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Define the header rules **/
|
||||||
|
header {
|
||||||
|
position: fixed;
|
||||||
|
top: -1cm;
|
||||||
|
left: 0cm;
|
||||||
|
right: 0cm;
|
||||||
|
height: 0cm;
|
||||||
|
/** Extra personal styles **/
|
||||||
|
/* background-color: #eaeaea; */
|
||||||
|
color: black;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 1.5cm;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Define the footer rules **/
|
||||||
|
footer {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0cm;
|
||||||
|
left: 0cm;
|
||||||
|
right: 0cm;
|
||||||
|
height: 2cm;
|
||||||
|
|
||||||
|
/** Extra personal styles **/
|
||||||
|
/* background-color: #eaeaea; */
|
||||||
|
color: black;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 1.5cm;
|
||||||
|
}
|
||||||
|
footer .pagenum:before {
|
||||||
|
content: counter(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
.font{
|
||||||
|
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||||
|
font-size:12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#header {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header td,
|
||||||
|
#customers th {
|
||||||
|
|
||||||
|
padding: 4px;
|
||||||
|
font-size: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header tr:nth-child(even) {
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header tr:hover {
|
||||||
|
background-color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header th {
|
||||||
|
padding-top: 12px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
/* text-align: left; */
|
||||||
|
padding: 4px;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#scan {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan td,
|
||||||
|
#scan th {
|
||||||
|
border-collapse: collapse;
|
||||||
|
padding: 8px;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan tr:nth-child(even) {
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan tr:hover {
|
||||||
|
background-color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan th {
|
||||||
|
border-collapse: collapse;
|
||||||
|
padding-top: 12px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
/* text-align: left; */
|
||||||
|
padding: 4px;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#details {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details td,
|
||||||
|
#details th {
|
||||||
|
|
||||||
|
padding: 8px;
|
||||||
|
font-size: 11px;
|
||||||
|
border: 1px solid;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details tr:nth-child(even) {
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details tr:hover {
|
||||||
|
background-color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details th {
|
||||||
|
padding-top: 12px;
|
||||||
|
font-style: bold;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding: 4px;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<table width="100%" id="header">
|
||||||
|
<tr>
|
||||||
|
<th rowspan="4" style="width:50px"><br><img src="{{ asset('img/ARRAHN1.png') }}" style="width:70px"></img></th>
|
||||||
|
<th colspan="1">KOPERASI PERMODALAN KELANTAN BERHAD</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{{ $cawangan_detail['namacaw'] }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{{ $cawangan_detail['alamat1'] }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{{ $cawangan_detail['alamat2'].' No Tel : '. $cawangan_detail['notel'].' No Faks : '. $cawangan_detail['nofaks'] }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<table border="0" width="100%" id="scan">
|
||||||
|
<tr>
|
||||||
|
<th colspan ="5"><b>Laporan Blast SMS</b></th>
|
||||||
|
<th> </th>
|
||||||
|
<th><b> Tarikh Cetak:</b>
|
||||||
|
@php
|
||||||
|
$myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
|
||||||
|
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||||
|
echo($formattedweddingdate)
|
||||||
|
@endphp
|
||||||
|
</th>
|
||||||
|
<th></th>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
<table class="table table-bordered" id="details" style="width:100%">
|
||||||
|
<thead>
|
||||||
|
<th>Bil</th>
|
||||||
|
<th>Nama</th>
|
||||||
|
<th>No. KP</th>
|
||||||
|
<th>No. Telefon</th>
|
||||||
|
<th>Norujukan</th>
|
||||||
|
<th>Tempoh</th>
|
||||||
|
<th>Tarikh</th>
|
||||||
|
<th>Masa</th>
|
||||||
|
<th>Status</th>
|
||||||
|
</thead>
|
||||||
|
@php
|
||||||
|
$counter = 1;
|
||||||
|
$totalpinjaman = 0;
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
@foreach ($rekodblastsms['rekod'] as $index => $item)
|
||||||
|
@php
|
||||||
|
if ($item['listsag'][0]['hargajualan'] == null) {
|
||||||
|
$totalpinjaman += $item['listsag'][0]['pinjaman'];
|
||||||
|
} else {
|
||||||
|
$totalpinjaman += $item['listsag'][0]['bakipjm'];
|
||||||
|
}
|
||||||
|
@endphp
|
||||||
|
<tr>
|
||||||
|
<td>{{ $counter }}</td>
|
||||||
|
<td style="white-space: nowrap;">{{ $item['info']['nama'] ?? '-' }}</td>
|
||||||
|
<td>{{ $item['nokp'] }}<input type="hidden" name="nokp[]" value="{{ $item['nokp']}}"></td>
|
||||||
|
<td>{{ $item['info']['telefon'] ?? '-' }}<input type="hidden" name="telefon[]" value="{{ $item['info']['telefon'] ?? ''}}"></td>
|
||||||
|
<td style="white-space: nowrap;">@foreach($item['listsag'] as $item1){{ $item1['norujukan']}}<br>@endforeach</td>
|
||||||
|
<td style="white-space: nowrap;">@foreach($item['rekodblast'] as $item1){{ $item1['tempoh']}}<br>@endforeach</td>
|
||||||
|
<td style="white-space: nowrap;">@foreach($item['rekodblast'] as $item1){{ date('d-m-Y', strtotime($item1['created_at']))}}<br>@endforeach</td>
|
||||||
|
<td style="white-space: nowrap;">@foreach($item['rekodblast'] as $item1){{ date('h:i:s', strtotime($item1['created_at']))}}<br>@endforeach</td>
|
||||||
|
<td style="white-space: nowrap;">@foreach($item['rekodblast'] as $item1)
|
||||||
|
@if($item1['status'] > 0)
|
||||||
|
Berjaya
|
||||||
|
@else
|
||||||
|
Tidak Berjaya
|
||||||
|
@endif
|
||||||
|
<br>@endforeach</td>
|
||||||
|
</tr>
|
||||||
|
@php $counter++; @endphp
|
||||||
|
@endforeach
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
<script src="{{ asset('js/jquery.min.js') }}"></script>
|
||||||
|
<script>
|
||||||
|
|
||||||
|
$(document).ready(function () {
|
||||||
|
|
||||||
|
var table2excel = new Table2Excel();
|
||||||
|
table2excel.export(document.querySelectorAll("#customers"),'senarai_notis');
|
||||||
|
setTimeout(function(){ window.close() }, 10);
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||||
|
<script src="{{ asset('js/table2excel.js') }}"></script>
|
||||||
@@ -0,0 +1,350 @@
|
|||||||
|
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||||
|
<style>
|
||||||
|
#sim {
|
||||||
|
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||||
|
font-size:10px;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sim td {padding:3px 5px 3px 5px; padding-right:10px;}, #sim th {
|
||||||
|
border: 0px solid;
|
||||||
|
padding: 1px;
|
||||||
|
/* text-align: left; */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#sim tr:nth-child(even){}
|
||||||
|
|
||||||
|
#sim tr {
|
||||||
|
border-bottom: 1px black;
|
||||||
|
}
|
||||||
|
#sim th {
|
||||||
|
border: 1px black;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sim2 th {
|
||||||
|
text-align: center;
|
||||||
|
border: 0px solid ;
|
||||||
|
table-layout:auto;
|
||||||
|
color: black;
|
||||||
|
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.row {
|
||||||
|
margin-right:-5px;
|
||||||
|
margin-right:-5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.column {
|
||||||
|
float: right;
|
||||||
|
width: 100%;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Clearfix (clear floats) */
|
||||||
|
.row::after {
|
||||||
|
content: "";
|
||||||
|
clear: both;
|
||||||
|
display: table;
|
||||||
|
}
|
||||||
|
|
||||||
|
table {
|
||||||
|
border-collapse: collapse;
|
||||||
|
border-spacing: 0;
|
||||||
|
width: 200%;
|
||||||
|
border: 0px solid #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
td {
|
||||||
|
/* text-align: right; */
|
||||||
|
padding: 16px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
th{
|
||||||
|
/* text-align: center; */
|
||||||
|
padding: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
tr:nth-child(even) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.font{
|
||||||
|
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||||
|
font-size:12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
/** Define now the real margins of every page in the PDF **/
|
||||||
|
body {
|
||||||
|
margin-top: 1cm;
|
||||||
|
/* margin-left: 2cm; */
|
||||||
|
/* margin-right: 2cm; */
|
||||||
|
margin-bottom: 2cm;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Define the header rules **/
|
||||||
|
header {
|
||||||
|
position: fixed;
|
||||||
|
top: -1cm;
|
||||||
|
left: 0cm;
|
||||||
|
right: 0cm;
|
||||||
|
height: 0cm;
|
||||||
|
/** Extra personal styles **/
|
||||||
|
/* background-color: #eaeaea; */
|
||||||
|
color: black;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 1.5cm;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Define the footer rules **/
|
||||||
|
footer {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0cm;
|
||||||
|
left: 0cm;
|
||||||
|
right: 0cm;
|
||||||
|
height: 2cm;
|
||||||
|
|
||||||
|
/** Extra personal styles **/
|
||||||
|
/* background-color: #eaeaea; */
|
||||||
|
color: black;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 1.5cm;
|
||||||
|
}
|
||||||
|
footer .pagenum:before {
|
||||||
|
content: counter(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
.font{
|
||||||
|
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||||
|
font-size:12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#header {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header td,
|
||||||
|
#customers th {
|
||||||
|
|
||||||
|
padding: 4px;
|
||||||
|
font-size: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header tr:nth-child(even) {
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header tr:hover {
|
||||||
|
background-color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header th {
|
||||||
|
padding-top: 12px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
/* text-align: left; */
|
||||||
|
padding: 4px;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#scan {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan td,
|
||||||
|
#scan th {
|
||||||
|
border-collapse: collapse;
|
||||||
|
padding: 8px;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan tr:nth-child(even) {
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan tr:hover {
|
||||||
|
background-color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan th {
|
||||||
|
border-collapse: collapse;
|
||||||
|
padding-top: 12px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
/* text-align: left; */
|
||||||
|
padding: 4px;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#details {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details td,
|
||||||
|
#details th {
|
||||||
|
|
||||||
|
padding: 8px;
|
||||||
|
font-size: 11px;
|
||||||
|
border: 1px solid;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details tr:nth-child(even) {
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details tr:hover {
|
||||||
|
background-color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details th {
|
||||||
|
padding-top: 12px;
|
||||||
|
font-style: bold;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding: 4px;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<table width="100%" id="header">
|
||||||
|
<tr>
|
||||||
|
<th rowspan="4" style="width:50px"><br><img src="{{ asset('img/ARRAHN1.png') }}" style="width:70px"></img></th>
|
||||||
|
<th colspan="1">KOPERASI PERMODALAN KELANTAN BERHAD</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{{ $cawangan_detail['namacaw'] }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{{ $cawangan_detail['alamat1'] }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{{ $cawangan_detail['alamat2'].' No Tel : '. $cawangan_detail['notel'].' No Faks : '. $cawangan_detail['nofaks'] }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<table border="0" width="100%" id="scan">
|
||||||
|
<tr>
|
||||||
|
<th colspan ="5"><b>Laporan Stok Audit Khas</b></th>
|
||||||
|
<th> Tempoh : {{$daritempoh}} hingga tempoh : {{$hinggatempoh}}</th>
|
||||||
|
<th> </th>
|
||||||
|
<th><b> Tarikh Cetak:</b>
|
||||||
|
@php
|
||||||
|
$myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
|
||||||
|
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||||
|
echo($formattedweddingdate)
|
||||||
|
@endphp
|
||||||
|
</th>
|
||||||
|
<th></th>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
<table border="0" width="100%" height="80" align="left" id="details">
|
||||||
|
<thead>
|
||||||
|
<th>Bil</th>
|
||||||
|
<th>Nama</th>
|
||||||
|
<th>No. KP</th>
|
||||||
|
<th>No. Telefon</th>
|
||||||
|
<th>Norujukan</th>
|
||||||
|
<th>Tempoh</th>
|
||||||
|
<th>Berat</th>
|
||||||
|
<th>Nilai Marhun (RM)</th>
|
||||||
|
<th>Pembiayaan Asal (RM)</th>
|
||||||
|
<th>Baki Pembiayaan (RM)</th>
|
||||||
|
{{-- <th>Kadar Upah</th> --}}
|
||||||
|
{{-- <th>Tempoh Belum Bayar</th> --}}
|
||||||
|
<th>Keuntungan Belum Bayar (RM)</th>
|
||||||
|
{{-- <th>Lanjutan</th> --}}
|
||||||
|
</thead>
|
||||||
|
@php
|
||||||
|
$counter = 1;
|
||||||
|
$totalpinjaman = 0;
|
||||||
|
@endphp
|
||||||
|
{{-- {{dd($stokaudit['rekod'])}} --}}
|
||||||
|
@foreach ($stokaudit['rekod'] as $index => $item)
|
||||||
|
@php
|
||||||
|
if ($item['listsag'][0]['hargajualan'] == null) {
|
||||||
|
$totalpinjaman += $item['listsag'][0]['pinjaman'];
|
||||||
|
} else {
|
||||||
|
$totalpinjaman += $item['listsag'][0]['bakipjm'];
|
||||||
|
}
|
||||||
|
@endphp
|
||||||
|
<tr>
|
||||||
|
<td>{{ $counter }}</td>
|
||||||
|
<td style="white-space: nowrap;">{{ $item['info']['nama'] ?? '-' }}</td>
|
||||||
|
<td>{{ $item['nokp'] }}</td>
|
||||||
|
<td>{{ $item['info']['telefon'] ?? '-' }}</td>
|
||||||
|
<td style="white-space: nowrap;">@foreach($item['listsag'] as $item1){{ $item1['norujukan']}}<br>@endforeach</td>
|
||||||
|
<td>@foreach($item['listsag'] as $item1){{ $item1['tempoh']}}<br>@endforeach</td>
|
||||||
|
<td>@foreach($item['listsag'] as $item1){{ $item1['berat']}}<br>@endforeach</td>
|
||||||
|
<td align = "right">@foreach($item['listsag'] as $item1){{ $item1['nilaimarhun']}}<br>@endforeach</td>
|
||||||
|
<td align = "right">@foreach($item['listsag'] as $item1){{ $item1['pinjaman']}}<br>@endforeach</td>
|
||||||
|
<td align = "right">@foreach($item['listsag'] as $item1){{ $item1['bakipjm']}}<br>@endforeach</td>
|
||||||
|
{{-- <td>@foreach($item['listsag'] as $item1){{ $item1['kadarupah']}}<br>@endforeach</td> --}}
|
||||||
|
{{-- <td>@foreach($item['listsag'] as $item1){{ number_format($item1['tempoh'] - $item1['tempohbayar'], 2) }}<br>@endforeach</td> --}}
|
||||||
|
<td align = "right">@foreach($item['listsag'] as $item1){{ number_format($item1['tunggakan'], 2) }}<br>@endforeach</td>
|
||||||
|
{{-- <td>@foreach($item['listsag'] as $item1){{ $item1['lelong_tawarruq']}}<br>@endforeach</td> --}}
|
||||||
|
</tr>
|
||||||
|
@php $counter++; @endphp
|
||||||
|
@endforeach
|
||||||
|
<tfoot>
|
||||||
|
<th colspan='6'>Jumlah</th>
|
||||||
|
<th>{{ number_format($stokaudit['totalberat'], 2) }}</th>
|
||||||
|
<th align = "right">{{ number_format($stokaudit['totalnilaimarhun'], 2) }}</th>
|
||||||
|
<th align = "right">{{ number_format($stokaudit['totalpinjaman'], 2) }}</th>
|
||||||
|
<th align = "right">{{ number_format($stokaudit['totalbakipjm'], 2) }}</th>
|
||||||
|
{{-- <th></th>
|
||||||
|
<th></th> --}}
|
||||||
|
<th align = "right">{{ number_format($stokaudit['totaltunggakan'], 2) }}</th>
|
||||||
|
{{-- <th></th> --}}
|
||||||
|
</tfoot>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
<script src="{{ asset('js/jquery.min.js') }}"></script>
|
||||||
|
<script>
|
||||||
|
|
||||||
|
$(document).ready(function () {
|
||||||
|
|
||||||
|
var table2excel = new Table2Excel();
|
||||||
|
table2excel.export(document.querySelectorAll("#customers"),'senarai_notis');
|
||||||
|
setTimeout(function(){ window.close() }, 10);
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||||
|
<script src="{{ asset('js/table2excel.js') }}"></script>
|
||||||
@@ -73,7 +73,7 @@
|
|||||||
<option value="P">P = Tambah Pembiayaan</option>
|
<option value="P">P = Tambah Pembiayaan</option>
|
||||||
@else
|
@else
|
||||||
{{-- @if($gadai['tagbaru'] == 0) --}}
|
{{-- @if($gadai['tagbaru'] == 0) --}}
|
||||||
<option value="AT">A = Auto Tawarruq</option>
|
<option value="AT">PS = Pembiayaan Semula</option>
|
||||||
@endif
|
@endif
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@@ -245,6 +245,14 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-6">
|
<div class="col-6">
|
||||||
|
<div class="form-group row" id="divperludibayarAT">
|
||||||
|
<div class="col-4">
|
||||||
|
<b>PERLU DIBAYAR(RM)</b>
|
||||||
|
</div>
|
||||||
|
<div class="col-8">
|
||||||
|
<input type="text" id="perludibayarAT" style="font-weight:bold;" class="form-control" onselectstart="return false;" onkeyup="bayaranATfunc(this)" onkeypress="return validateFloatKeyPress(this,event);" onchange="blockbayaranAT(this)" readonly/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="form-group row" id="divbayaran">
|
<div class="form-group row" id="divbayaran">
|
||||||
<div class="col-4">
|
<div class="col-4">
|
||||||
<b>BAYARAN PELANGGAN(RM)</b>
|
<b>BAYARAN PELANGGAN(RM)</b>
|
||||||
@@ -253,6 +261,14 @@
|
|||||||
<input type="text" id="bayaran" onkeyup="bayartambahan(this)" placeholder="0.00" class="form-control" disabled/>
|
<input type="text" id="bayaran" onkeyup="bayartambahan(this)" placeholder="0.00" class="form-control" disabled/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group row" id="divduitPelanggan">
|
||||||
|
<div class="col-4">
|
||||||
|
<span>DUIT PELANGGAN(RM)</span>
|
||||||
|
</div>
|
||||||
|
<div class="col-8">
|
||||||
|
<input type="text" id="duitPelanggan" onkeyup="bayaranPelanggan(this)" placeholder="0.00" class="form-control"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="form-group row" id="divtambahpinjaman">
|
<div class="form-group row" id="divtambahpinjaman">
|
||||||
<div class="col-4">
|
<div class="col-4">
|
||||||
TAMBAH PEMBIAYAAN(RM)
|
TAMBAH PEMBIAYAAN(RM)
|
||||||
@@ -272,6 +288,14 @@
|
|||||||
<input type="text" id="perludibayartawarruq" class="form-control" readonly/>
|
<input type="text" id="perludibayartawarruq" class="form-control" readonly/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group row" id="divbakiPelanggan">
|
||||||
|
<div class="col-4">
|
||||||
|
<b>BAKI (RM)</b>
|
||||||
|
</div>
|
||||||
|
<div class="col-8">
|
||||||
|
<input type="text" id="bakiPelanggan" class="form-control" value="0.00" readonly/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="form-group row" id="divbayaranminima">
|
<div class="form-group row" id="divbayaranminima">
|
||||||
<div class="col-4">
|
<div class="col-4">
|
||||||
BAYARAN MINIMA
|
BAYARAN MINIMA
|
||||||
@@ -312,7 +336,7 @@
|
|||||||
|
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<div class="col-4">
|
<div class="col-4">
|
||||||
<b>PEMBIAYAAN BARU(RM)</b>
|
<span>PEMBIAYAAN BARU(RM)</span>
|
||||||
</div>
|
</div>
|
||||||
@php
|
@php
|
||||||
if($gadai['bakipjm'] != 0){
|
if($gadai['bakipjm'] != 0){
|
||||||
@@ -321,42 +345,43 @@
|
|||||||
$bakipjm = $gadai['pinjaman'];
|
$bakipjm = $gadai['pinjaman'];
|
||||||
}
|
}
|
||||||
$percent_hargaemassemasa = ($bakipjm / $nilaihargasemasa) * 100;
|
$percent_hargaemassemasa = ($bakipjm / $nilaihargasemasa) * 100;
|
||||||
|
|
||||||
|
$percentage = 80 / 100;
|
||||||
|
$pembiayaanbaru = $nilaihargasemasa * (80/100);
|
||||||
|
$rounded_value = round($nilaihargasemasa * $percentage, 1, PHP_ROUND_HALF_UP);
|
||||||
|
$rounded_value = (($rounded_value-$pembiayaanbaru) > 0) ? $rounded_value - 0.1 : $rounded_value;
|
||||||
|
$pembiayaanbaru = min($pembiayaanbaru, $rounded_value);
|
||||||
|
$bayaranlebihan = $bakipjm - $pembiayaanbaru;
|
||||||
|
|
||||||
|
$pembiayaanbaru = ($percent_hargaemassemasa > 80) ? $pembiayaanbaru : $bakipjm;
|
||||||
@endphp
|
@endphp
|
||||||
<div class="col-8 input-group mb-3">
|
<div class="col-8 input-group mb-3">
|
||||||
<input type="text" id="pinjamanbaru" value="{{ number_format($bakipjm ,2) }}" class="form-control" aria-describedby="basic-addon2" readonly/>
|
<input type="text" id="pinjamanbaru" value="{{ number_format($pembiayaanbaru ,2) }}" class="form-control" aria-describedby="basic-addon2" readonly/>
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<span class="input-group-text" id="basic-addon2">{{ number_format($percent_hargaemassemasa,2) }}</span>
|
<span class="input-group-text" id="basic-addon2">{{ number_format($percent_hargaemassemasa,2) }}</span>
|
||||||
</div>
|
@if($percent_hargaemassemasa > 80)
|
||||||
|
<span class="input-group-text" id="basic-addon3">{{ number_format($percent_hargaemassemasa,2) }}</span>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
@if($percent_hargaemassemasa > 80)
|
@if($percent_hargaemassemasa > 80)
|
||||||
<div class="col-6 divlebihanmargin">
|
<div class="form-group row divlebihanmargin">
|
||||||
<div class="form-group row">
|
|
||||||
<div class="col-4">
|
<div class="col-4">
|
||||||
<b>BAYARAN LEBIHAN MARGIN</b>
|
<span>BAYARAN LEBIHAN MARGIN</span>
|
||||||
</div>
|
</div>
|
||||||
@php
|
|
||||||
$pembiayaanbaru = $nilaihargasemasa * (80/100);
|
|
||||||
$bayaranlebihan = $bakipjm - $pembiayaanbaru;
|
|
||||||
@endphp
|
|
||||||
<div class="col-8 input-group mb-3">
|
<div class="col-8 input-group mb-3">
|
||||||
<input type="text" value="{{ number_format($bayaranlebihan,2)}}" class="form-control" aria-describedby="txtlebihanmargin" readonly/>
|
<input type="text" id="txtlebihanmargin" value="{{ number_format($bayaranlebihan,2)}}" class="form-control" aria-describedby="txtlebihanmargin" readonly/>
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<span class="input-group-text" id="txtlebihanmargin">{{ round($percent_hargaemassemasa - 80,2) }}</span>
|
<span class="input-group-text" id="txtlebihanmargin">{{ round($percent_hargaemassemasa - 80,2) }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
<div class="col-6 justify-content-end divlebihanmargin">
|
|
||||||
<button type="button" class="btn btn-primary" onclick="funcexcuse()">Excuse</button>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
<div class="col-6 mx-auto" id="divjenisAT">
|
|
||||||
<span class="text-warning h2">Harga Lama</span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-6" id="divbayaranditerima">
|
<div class="col-6" id="divbayaranditerima">
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
@@ -370,9 +395,25 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="col-12">
|
<div class="col-12 d-flex justify-content-between">
|
||||||
<input type="button" class="float-right btn btn-danger mr-2" value="BATAL" onclick="pembatalanbalik();">
|
<div class="col-6" id="divjenisAT">
|
||||||
<input type="button" id="terima_transaksi" class="float-right btn btn-primary mr-2" value="TERIMA" onclick="bayaransemua()">
|
<button type="button" class="btn btn-danger" onclick="funcexcuse(false)">Batal</button>
|
||||||
|
</div>
|
||||||
|
@if($percent_hargaemassemasa > 80)
|
||||||
|
<div class="col-6 divlebihanmargin">
|
||||||
|
<button type="button" class="btn btn-primary" onclick="funcexcuse(true)">EXCUSE</button>
|
||||||
|
</div>
|
||||||
|
<div class="col-1" id="divdummy">
|
||||||
|
</div>
|
||||||
|
@else
|
||||||
|
<div class="col-6">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
<div class="justify-content-end">
|
||||||
|
<input type="button" class="float-right btn btn-danger mr-2" value="BATAL" onclick="pembatalanbalik();">
|
||||||
|
<input type="button" id="terima_transaksi" class="float-right btn btn-primary mr-2" value="TERIMA" onclick="bayaransemua()">
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
@@ -412,9 +453,12 @@
|
|||||||
$('#divperludibayartawarruq').hide();
|
$('#divperludibayartawarruq').hide();
|
||||||
$('#divbayarantawarruq').hide();
|
$('#divbayarantawarruq').hide();
|
||||||
$('#divbayaran').hide();
|
$('#divbayaran').hide();
|
||||||
|
// $('#divbayaranAT').hide();
|
||||||
$("#divbayaranminima").hide();
|
$("#divbayaranminima").hide();
|
||||||
$('.divlebihanmargin').hide();
|
$('.divlebihanmargin').hide();
|
||||||
$('#divjenisAT').hide();
|
$('#divjenisAT').hide();
|
||||||
|
$('#divperludibayarAT').hide();
|
||||||
|
// $('#divbaki').hide();
|
||||||
|
|
||||||
|
|
||||||
var array_recno = [];
|
var array_recno = [];
|
||||||
@@ -792,7 +836,11 @@
|
|||||||
$("#divbayaranminima").hide();
|
$("#divbayaranminima").hide();
|
||||||
$('.divlebihanmargin').hide();
|
$('.divlebihanmargin').hide();
|
||||||
$('#divjenisAT').hide();
|
$('#divjenisAT').hide();
|
||||||
|
$('#divperludibayarAT').hide();
|
||||||
|
// $('#divbaki').hide();
|
||||||
|
// $('#divbayaranAT').hide();
|
||||||
|
|
||||||
|
$('#calcbayar').val($('#perludibayar').val().replace(/[^0-9.-]+/g,""));
|
||||||
|
|
||||||
$('#divtelahdibayar').show();
|
$('#divtelahdibayar').show();
|
||||||
$('#divperludibayar').show();
|
$('#divperludibayar').show();
|
||||||
@@ -930,20 +978,29 @@
|
|||||||
$('#divbayaranditerima').hide();
|
$('#divbayaranditerima').hide();
|
||||||
$('#divhargaemassemasa').show();
|
$('#divhargaemassemasa').show();
|
||||||
$('#divbayarantawarruq').show();
|
$('#divbayarantawarruq').show();
|
||||||
$("#bayaran").prop("disabled", true);
|
// $("#bayaranAT").prop("disabled", true);
|
||||||
$("#perludibayartawarruq").prop("readonly", true);
|
|
||||||
$("#bayarantawarruq").prop("readonly", false);
|
$("#bayarantawarruq").prop("readonly", false);
|
||||||
$("#bayaran").val(0);
|
// $("#bayaran").val(0);
|
||||||
$('#divperludibayartawarruq').show();
|
$('#divperludibayarAT').show();
|
||||||
$('.divlebihanmargin').show();
|
$('.divlebihanmargin').show();
|
||||||
|
// $('#divbaki').show();
|
||||||
|
|
||||||
|
// if(percenthargasemasa > 80){
|
||||||
|
$("#perludibayarAT").prop("readonly", false);
|
||||||
|
// }
|
||||||
|
|
||||||
$('#divbakipinjaman').hide();
|
$('#divbakipinjaman').hide();
|
||||||
$('#divtelahdibayar').hide();
|
$('#divtelahdibayar').hide();
|
||||||
$('#divbayaran').hide();
|
|
||||||
|
// $('#divbayaranAT').show();
|
||||||
|
// $("#bayaranAT").prop("disabled", false);
|
||||||
|
|
||||||
$('#divperludibayar').hide();
|
$('#divperludibayar').hide();
|
||||||
|
|
||||||
$('#basic-addon2').text(percenthargasemasa);
|
|
||||||
$('#perludibayartawarruq').val(formatter.format(totalbayaran));
|
$('#basic-addon2').text((percenthargasemasa > 80) ? '80.00' : percenthargasemasa);
|
||||||
|
$('#perludibayarAT').val(formatter.format(totalbayaran));
|
||||||
|
$('#calcbayar').val(totalbayaran);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -1050,6 +1107,23 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function bayaranPelanggan(e){
|
||||||
|
let total = 0;
|
||||||
|
let bayaran = $('#duitPelanggan').val();
|
||||||
|
let perludibayar = 0;
|
||||||
|
if ($('#sltjenistebus').find(":selected").val() == 'T'){
|
||||||
|
perludibayar = parseFloat($('#perludibayar').val().replace(/[^0-9.-]+/g,""));
|
||||||
|
}else if($('#sltjenistebus').find(":selected").val() == 'A'){
|
||||||
|
perludibayar = parseFloat($('#bayaran').val().replace(/[^0-9.-]+/g,""));
|
||||||
|
}else if($('#sltjenistebus').find(":selected").val() == 'AT'){
|
||||||
|
perludibayar = parseFloat($('#perludibayarAT').val().replace(/[^0-9.-]+/g,""));
|
||||||
|
}
|
||||||
|
|
||||||
|
total = bayaran - perludibayar;
|
||||||
|
$('#bakiPelanggan').val((total > 0) ? formatter.format(total.toFixed(2)) : '0.00');
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function bayarpinjam(e){
|
function bayarpinjam(e){
|
||||||
|
|
||||||
@@ -1172,6 +1246,8 @@
|
|||||||
var historygadaian = 0;
|
var historygadaian = 0;
|
||||||
var marhun = "{{ $gadai['marhun'] }}";
|
var marhun = "{{ $gadai['marhun'] }}";
|
||||||
var nowakil = nw;
|
var nowakil = nw;
|
||||||
|
var duitpelanggan = $('#duitPelanggan').val().replace(/[^0-9.-]+/g,"");
|
||||||
|
var bakipelanggan = $('#bakiPelanggan').val().replace(/[^0-9.-]+/g,"");
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
method:'get',
|
method:'get',
|
||||||
@@ -1195,7 +1271,9 @@
|
|||||||
"nowakil" : nowakil,
|
"nowakil" : nowakil,
|
||||||
"jenisbayarantebus" : jenisbayarantebus,
|
"jenisbayarantebus" : jenisbayarantebus,
|
||||||
"jeniskeuntungan" : jeniskeuntungan,
|
"jeniskeuntungan" : jeniskeuntungan,
|
||||||
"teller" : teller
|
"teller" : teller,
|
||||||
|
"duitpelanggan" : duitpelanggan,
|
||||||
|
"bakipelanggan" : bakipelanggan
|
||||||
},
|
},
|
||||||
success:function(success_data){
|
success:function(success_data){
|
||||||
|
|
||||||
@@ -1286,6 +1364,9 @@
|
|||||||
|
|
||||||
var bayar = Number(parseFloat($('#bayaran').val().replace(/[^0-9.-]+/g,"")).toFixed(2));
|
var bayar = Number(parseFloat($('#bayaran').val().replace(/[^0-9.-]+/g,"")).toFixed(2));
|
||||||
var bakipinjam = parseFloat("{{ $gadai['bakipjm'] }}") - hadbayaransuran + jumupah;
|
var bakipinjam = parseFloat("{{ $gadai['bakipjm'] }}") - hadbayaransuran + jumupah;
|
||||||
|
var duitpelanggan = parseFloat($('#duitPelanggan').val().replace(/[^0-9.-]+/g,""));
|
||||||
|
var bakipelanggan = parseFloat($('#bakiPelanggan').val().replace(/[^0-9.-]+/g,""));
|
||||||
|
|
||||||
|
|
||||||
if(bayar < jumupah){
|
if(bayar < jumupah){
|
||||||
$("#terima_transaksi").prop('disabled', false);
|
$("#terima_transaksi").prop('disabled', false);
|
||||||
@@ -1315,7 +1396,9 @@
|
|||||||
"kodcaw" : kodcaw,
|
"kodcaw" : kodcaw,
|
||||||
"norujukan" : norujukan,
|
"norujukan" : norujukan,
|
||||||
"teller" : teller,
|
"teller" : teller,
|
||||||
"nowakil" : nw
|
"nowakil" : nw,
|
||||||
|
"duitpelanggan" : duitpelanggan,
|
||||||
|
"bakipelanggan" : bakipelanggan
|
||||||
},
|
},
|
||||||
success:function(success_data){
|
success:function(success_data){
|
||||||
|
|
||||||
@@ -2414,7 +2497,9 @@
|
|||||||
var pinjaman = parseFloat("{{ $gadai['pinjaman']}}");
|
var pinjaman = parseFloat("{{ $gadai['pinjaman']}}");
|
||||||
var kuantiti_marhun = Number("{{sizeof($marhun)}}");
|
var kuantiti_marhun = Number("{{sizeof($marhun)}}");
|
||||||
var nowakil = nw;
|
var nowakil = nw;
|
||||||
var perludibayar = parseFloat($('#perludibayartawarruq').val().replace(/[^0-9.-]+/g,""));
|
var perludibayar = parseFloat($('#perludibayarAT').val().replace(/[^0-9.-]+/g,""));
|
||||||
|
var bayaranpelanggan = parseFloat($('#duitPelanggan').val());
|
||||||
|
var bakipelanggan = parseFloat($('#bakiPelanggan').val());
|
||||||
|
|
||||||
var kadarupahbaru = 0;
|
var kadarupahbaru = 0;
|
||||||
// if(nilai_marhun > 0 && nilai_marhun < 400.99){
|
// if(nilai_marhun > 0 && nilai_marhun < 400.99){
|
||||||
@@ -2442,6 +2527,7 @@
|
|||||||
|
|
||||||
// var keuntungan_sebulan = pinjamanbaru * kadarupahbaru;
|
// var keuntungan_sebulan = pinjamanbaru * kadarupahbaru;
|
||||||
// var keuntungan_6bln = keuntungan_sebulan * 6;
|
// var keuntungan_6bln = keuntungan_sebulan * 6;
|
||||||
|
// console.log('pelangagan:', bayaranpelanggan,bakipelanggan);
|
||||||
// console.log(nilaibaru,noic,pinjamanbaru,kadarupahbaru,total_berat,marhun,kuantiti_marhun,perludibayar,jenisAT);
|
// console.log(nilaibaru,noic,pinjamanbaru,kadarupahbaru,total_berat,marhun,kuantiti_marhun,perludibayar,jenisAT);
|
||||||
// return;
|
// return;
|
||||||
$.ajax({
|
$.ajax({
|
||||||
@@ -2479,6 +2565,8 @@
|
|||||||
"kuantiti_marhun" : kuantiti_marhun,
|
"kuantiti_marhun" : kuantiti_marhun,
|
||||||
"jenisAT" : jenisAT,
|
"jenisAT" : jenisAT,
|
||||||
"totalbayaran" : perludibayar,
|
"totalbayaran" : perludibayar,
|
||||||
|
"bayaran" : bayaranpelanggan,
|
||||||
|
"bakipelanggan" : bakipelanggan,
|
||||||
|
|
||||||
},
|
},
|
||||||
success:function(success_data){
|
success:function(success_data){
|
||||||
@@ -3092,129 +3180,254 @@ function pembatalanbalik()
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function funcexcuse(){
|
function funcexcuse(toggle){
|
||||||
var jumupah = parseFloat($('#jumlahupah').val().replace(/[^0-9.-]+/g,""));
|
|
||||||
let percentasal = parseFloat('{{ number_format($percent_asal,2) }}');
|
|
||||||
jenisAT = 'hargalama';
|
|
||||||
$('#basic-addon2').text(percentasal);
|
|
||||||
$('.divlebihanmargin').hide();
|
|
||||||
$('#divjenisAT').show();
|
|
||||||
$('#perludibayartawarruq').val(formatter.format(jumupah));
|
|
||||||
// gadaiautotawarruq(jenisAT);
|
|
||||||
|
|
||||||
return;
|
if(toggle){
|
||||||
const swalWithBootstrapButtons = Swal.mixin({
|
var jumupah = parseFloat($('#jumlahupah').val().replace(/[^0-9.-]+/g,""));
|
||||||
|
let percentasal = parseFloat('{{ number_format($percent_asal,2) }}');
|
||||||
|
jenisAT = 'hargalama';
|
||||||
|
$('#basic-addon2').text(percentasal);
|
||||||
|
$('.divlebihanmargin').hide();
|
||||||
|
$('#divjenisAT').show();
|
||||||
|
$('#perludibayarAT').val(formatter.format(jumupah));
|
||||||
|
// $('#divbayaranAT').hide();
|
||||||
|
$('#calcbayar').val(jumupah);
|
||||||
|
$("#perludibayarAT").prop("readonly", true);
|
||||||
|
// $('#divbaki').hide();
|
||||||
|
// gadaiautotawarruq(jenisAT);
|
||||||
|
|
||||||
|
const swalWithBootstrapButtons = Swal.mixin({
|
||||||
customClass: {
|
customClass: {
|
||||||
confirmButton: 'btn btn-success',
|
confirmButton: 'btn btn-success',
|
||||||
cancelButton: 'btn btn-danger'
|
cancelButton: 'btn btn-danger'
|
||||||
},
|
},
|
||||||
buttonsStyling: false
|
buttonsStyling: false
|
||||||
});
|
});
|
||||||
|
|
||||||
var errortext = "[Auto Tawarruq] Menggunakan Harga Lama & Margin Lama";
|
var errortext = "[Auto Tawarruq] Menggunakan Harga Lama & Margin Lama";
|
||||||
|
|
||||||
swalWithBootstrapButtons.fire({
|
swalWithBootstrapButtons.fire({
|
||||||
title: 'Dapatkan Pengesahan Operasi',
|
title: 'Dapatkan Pengesahan Operasi',
|
||||||
text: errortext,
|
text: errortext,
|
||||||
icon: 'info',
|
icon: 'info',
|
||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
confirmButtonText: 'Hantar',
|
confirmButtonText: 'Hantar',
|
||||||
cancelButtonText: 'Batal',
|
cancelButtonText: 'Batal',
|
||||||
reverseButtons: true
|
reverseButtons: true
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
if (result.isConfirmed) {
|
if (result.isConfirmed) {
|
||||||
|
|
||||||
let norujukan = '{{ $gadai["norujukan"] }}';
|
let norujukan = '{{ $gadai["norujukan"] }}';
|
||||||
let nm = parseFloat($('#nilai_marhun_total').text().replace(/[^0-9.-]+/g,""));
|
let nm = parseFloat($('#nilai_marhun_total').text().replace(/[^0-9.-]+/g,""));
|
||||||
let ber = parseFloat($('#berat_marhun_total').text());
|
let ber = parseFloat($('#berat_marhun_total').text());
|
||||||
let marg = parseFloat($('#basic-addon2').text());
|
let marg = parseFloat($('#basic-addon2').text());
|
||||||
let status = errortext;
|
let status = errortext;
|
||||||
let jumpinjam = parseFloat($('#pinjamanbaru').val().replace(/[^0-9.-]+/g,""));
|
let jumpinjam = parseFloat($('#pinjamanbaru').val().replace(/[^0-9.-]+/g,""));
|
||||||
let teller = "{{ Auth::user()->name }}";
|
let teller = "{{ Auth::user()->name }}";
|
||||||
|
|
||||||
Swal.fire({
|
|
||||||
title: 'Tunggu Pengesahan Daripada Khazanah-Operasi.',
|
|
||||||
icon: 'info',
|
|
||||||
width: 600,
|
|
||||||
padding: '3em',
|
|
||||||
background: '#fffff',
|
|
||||||
showCancelButton: false,
|
|
||||||
showConfirmButton: false,
|
|
||||||
allowOutsideClick: false,
|
|
||||||
allowEscapeKey: false,
|
|
||||||
allowEnterKey: false
|
|
||||||
})
|
|
||||||
let siricreated = 0;
|
|
||||||
$.ajax({
|
|
||||||
method:'post',
|
|
||||||
url: "{{ route('operasi.createkelulusan') }}",
|
|
||||||
data: {
|
|
||||||
"_token": "{{ csrf_token() }}",
|
|
||||||
"norujukan" : norujukan,
|
|
||||||
"komen" : '',
|
|
||||||
"margin" : marg,
|
|
||||||
"berat" : ber,
|
|
||||||
"nilaimarhun" : nm,
|
|
||||||
"status" : status,
|
|
||||||
"jumpinjam" : jumpinjam,
|
|
||||||
"teller" : teller
|
|
||||||
},
|
|
||||||
success:function(data){
|
|
||||||
siricreated = data;
|
|
||||||
},
|
|
||||||
error: function(xhr, status, error) {
|
|
||||||
var err = eval("(" + xhr.responseText + ")");
|
|
||||||
alert(xhr.responseText);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
var pusher = new Pusher("{{ env('PUSHER_APP_KEY') }}", {
|
|
||||||
cluster: 'ap1',
|
|
||||||
encrypted: true
|
|
||||||
});
|
|
||||||
|
|
||||||
var channel = pusher.subscribe('notice-kelulusan');
|
|
||||||
channel.bind('my-kelulusan', function(data) {
|
|
||||||
|
|
||||||
if(data.norujukan == norujukan && data.siri == siricreated && data.teller == teller)
|
|
||||||
{
|
|
||||||
if(data.kelulusan == 'lulus')
|
|
||||||
{
|
|
||||||
Swal.fire({
|
|
||||||
icon: 'success',
|
|
||||||
title: 'Telah Disahkan',
|
|
||||||
text: `Komen : ${data.komen}`
|
|
||||||
}).then(function(){
|
|
||||||
|
|
||||||
$(func).attr("onSubmit","return true;");
|
|
||||||
$(func).submit();
|
|
||||||
return true;
|
|
||||||
});
|
|
||||||
|
|
||||||
|
Swal.fire({
|
||||||
|
title: 'Tunggu Pengesahan Daripada Khazanah-Operasi.',
|
||||||
|
icon: 'info',
|
||||||
|
width: 600,
|
||||||
|
padding: '3em',
|
||||||
|
background: '#fffff',
|
||||||
|
showCancelButton: false,
|
||||||
|
showConfirmButton: false,
|
||||||
|
allowOutsideClick: false,
|
||||||
|
allowEscapeKey: false,
|
||||||
|
allowEnterKey: false
|
||||||
|
})
|
||||||
|
let siricreated = 0;
|
||||||
|
$.ajax({
|
||||||
|
method:'post',
|
||||||
|
url: "{{ route('operasi.createkelulusan') }}",
|
||||||
|
data: {
|
||||||
|
"_token": "{{ csrf_token() }}",
|
||||||
|
"norujukan" : norujukan,
|
||||||
|
"komen" : '',
|
||||||
|
"margin" : marg,
|
||||||
|
"berat" : ber,
|
||||||
|
"nilaimarhun" : nm,
|
||||||
|
"status" : status,
|
||||||
|
"jumpinjam" : jumpinjam,
|
||||||
|
"teller" : teller
|
||||||
|
},
|
||||||
|
success:function(data){
|
||||||
|
siricreated = data;
|
||||||
|
},
|
||||||
|
error: function(xhr, status, error) {
|
||||||
|
var err = eval("(" + xhr.responseText + ")");
|
||||||
|
alert(xhr.responseText);
|
||||||
}
|
}
|
||||||
else if(data.kelulusan == 'batal')
|
});
|
||||||
|
|
||||||
|
var pusher = new Pusher("{{ env('PUSHER_APP_KEY') }}", {
|
||||||
|
cluster: 'ap1',
|
||||||
|
encrypted: true
|
||||||
|
});
|
||||||
|
|
||||||
|
var channel = pusher.subscribe('notice-kelulusan');
|
||||||
|
channel.bind('my-kelulusan', function(data) {
|
||||||
|
|
||||||
|
if(data.norujukan == norujukan && data.siri == siricreated && data.teller == teller)
|
||||||
{
|
{
|
||||||
Swal.fire({
|
if(data.kelulusan == 'lulus')
|
||||||
icon: 'warning',
|
{
|
||||||
title: 'Telah Dibatalkan',
|
Swal.fire({
|
||||||
text: `Komen : ${data.komen}`
|
icon: 'success',
|
||||||
}).then(function(){
|
title: 'Telah Disahkan',
|
||||||
$("#terima_gadai").prop('disabled', false);
|
text: `Komen : ${data.komen}`
|
||||||
return false;
|
}).then(function(){
|
||||||
});
|
|
||||||
|
$(func).attr("onSubmit","return true;");
|
||||||
|
$(func).submit();
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
else if(data.kelulusan == 'batal')
|
||||||
|
{
|
||||||
|
Swal.fire({
|
||||||
|
icon: 'warning',
|
||||||
|
title: 'Telah Dibatalkan',
|
||||||
|
text: `Komen : ${data.komen}`
|
||||||
|
}).then(function(){
|
||||||
|
$("#terima_gadai").prop('disabled', false);
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}else{
|
||||||
|
let percenthargasemasa = parseFloat('{{ number_format($percent_hargaemassemasa,2) }}');
|
||||||
|
var jumupah = parseFloat($('#jumlahupah').val().replace(/[^0-9.-]+/g,""));
|
||||||
|
let jumlebmargin = parseFloat('{{ ($percent_hargaemassemasa > 80) ? $bayaranlebihan : 0 }}');
|
||||||
|
let totalbayaran = (percenthargasemasa > 80) ? (jumlebmargin + jumupah) : jumupah;
|
||||||
|
$('#basic-addon2').text((percenthargasemasa > 80) ? '80.00' : percenthargasemasa);
|
||||||
|
|
||||||
|
jenisAT = 'none';
|
||||||
|
$('.divlebihanmargin').show();
|
||||||
|
$('#divjenisAT').hide();
|
||||||
|
$('#perludibayarAT').val(formatter.format(totalbayaran));
|
||||||
|
$('#calcbayar').val(totalbayaran);
|
||||||
|
$("#perludibayarAT").prop("readonly", false);
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function validateFloatKeyPress(el, evt) {
|
||||||
|
let hargamarhun = parseFloat("{{ $nilaihargasemasa }}");
|
||||||
|
let tenpercent = hargamarhun * (10/100);
|
||||||
|
let pembiayaan = parseFloat($('#pinjamanbaru').val().replace(/[^0-9.-]+/g,""));
|
||||||
|
var charCode = (evt.which) ? evt.which : event.keyCode;
|
||||||
|
var number = el.value;
|
||||||
|
let pembiayaanbaru = 0;
|
||||||
|
let keypress = evt.key;
|
||||||
|
let tot;
|
||||||
|
|
||||||
|
|
||||||
|
if(!isNaN(keypress)){
|
||||||
|
tot = number.toString() + keypress.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
var number = el.value.split('.');
|
||||||
|
if (charCode != 46 && charCode > 31 && (charCode < 48 || charCode > 57)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
//just one dot
|
||||||
|
if(number.length>1 && charCode == 46){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
//total pembiayaan baru
|
||||||
|
pembiayaanbaru = pembiayaan - parseFloat(tot);
|
||||||
|
|
||||||
|
//get the carat position
|
||||||
|
var caratPos = getSelectionStart(el);
|
||||||
|
var dotPos = el.value.indexOf(".");
|
||||||
|
if( caratPos > dotPos && dotPos>-1 && (number[1].length > 1)){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(pembiayaanbaru <= tenpercent){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
function getSelectionStart(o) {
|
||||||
|
if (o.createTextRange) {
|
||||||
|
var r = document.selection.createRange().duplicate()
|
||||||
|
r.moveEnd('character', o.value.length)
|
||||||
|
if (r.text == '') return o.value.length
|
||||||
|
return o.value.lastIndexOf(r.text)
|
||||||
|
} else return o.selectionStart
|
||||||
|
}
|
||||||
|
|
||||||
|
function bayaranATfunc(e){
|
||||||
|
|
||||||
|
let byr = $(e).val();
|
||||||
|
let total = 0;
|
||||||
|
let pdbyr = 0;
|
||||||
|
let pembiayaanbaru = 0;
|
||||||
|
let upah = parseFloat($('#jumlahupah').val());
|
||||||
|
let lebihanmargin = parseFloat($('#txtlebihanmargin').val());
|
||||||
|
total = upah + lebihanmargin;
|
||||||
|
|
||||||
|
let hargamarhun = parseFloat("{{ $nilaihargasemasa }}");
|
||||||
|
let pembiayaan = parseFloat("{{ $pembiayaanbaru }}");
|
||||||
|
let percenthargasemasa = parseFloat("{{ $percent_hargaemassemasa }}");
|
||||||
|
|
||||||
|
//algorithm untuk bayaran pelanggan dan baki
|
||||||
|
let baki = parseFloat($('#bakiPelanggan').val());
|
||||||
|
let bayaranpelanggan = parseFloat($('#duitPelanggan').val());
|
||||||
|
|
||||||
|
let totalpercent = 0;
|
||||||
|
if(byr == ''){
|
||||||
|
// $('#perludibayarAT').val(total);
|
||||||
|
$('#pinjamanbaru').val(formatter.format(pembiayaan));
|
||||||
|
totalpercent = (pembiayaan / hargamarhun) * 100;
|
||||||
|
$('#basic-addon2').text(formatter.format(totalpercent.toFixed(2)));
|
||||||
|
|
||||||
|
//baki pelanggan
|
||||||
|
// $('#bakiPelanggan').val((0.00) );
|
||||||
|
}else{
|
||||||
|
// pdbyr = parseFloat(byr) + parseFloat(total);
|
||||||
|
// $('#perludibayarAT').val(pdbyr);
|
||||||
|
pembiayaanbaru = pembiayaan - parseFloat(byr);
|
||||||
|
totalpercent = (pembiayaanbaru / hargamarhun) * 100;
|
||||||
|
|
||||||
|
$('#pinjamanbaru').val(formatter.format(pembiayaanbaru));
|
||||||
|
$('#basic-addon2').text(formatter.format(totalpercent.toFixed(2)));
|
||||||
|
|
||||||
|
//bakipelanggan
|
||||||
|
// let totalbaki = byr - baki;
|
||||||
|
// $('#bakiPelanggan').val((totalbaki > 0) ? parseFloat(totalbaki.toFixed(2)) : parseFloat((0).toFixed(2)) );
|
||||||
|
// $('#perludibayar').val(total);
|
||||||
|
// if(baki)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function blockbayaranAT(event){
|
||||||
|
let value = $(event).val();
|
||||||
|
let upah = parseFloat($('#jumlahupah').val());
|
||||||
|
let lebihanmargin = parseFloat($('#txtlebihanmargin').val());
|
||||||
|
total = upah + lebihanmargin;
|
||||||
|
|
||||||
|
if(value == '' || value <= 0 || value < total){
|
||||||
|
$('#perludibayarAT').val(total);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Restricts input for the set of matched elements to the given inputFilter function.
|
// Restricts input for the set of matched elements to the given inputFilter function.
|
||||||
(function($) {
|
(function($) {
|
||||||
$.fn.inputFilter = function(inputFilter) {
|
$.fn.inputFilter = function(inputFilter) {
|
||||||
|
|||||||
@@ -0,0 +1,360 @@
|
|||||||
|
<style>
|
||||||
|
#header {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header td, #customers th {
|
||||||
|
|
||||||
|
padding:4px;
|
||||||
|
font-size:10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header tr:nth-child(even){background-color: #ffffff;}
|
||||||
|
|
||||||
|
#header tr:hover {background-color: #ddd;}
|
||||||
|
|
||||||
|
#header th {
|
||||||
|
padding-top: 12px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding:4px;
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#scan {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan td, #scan th {
|
||||||
|
|
||||||
|
padding: 8px;
|
||||||
|
font-size:11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan tr:nth-child(even){background-color: #ffffff;}
|
||||||
|
|
||||||
|
#scan tr:hover {background-color: #ddd;}
|
||||||
|
|
||||||
|
#scan th {
|
||||||
|
padding-top: 12px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding:4px;
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#scan {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan td, #scan th {
|
||||||
|
border-collapse: collapse;
|
||||||
|
padding: 8px;
|
||||||
|
font-size:11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan tr:nth-child(even){background-color: #ffffff;}
|
||||||
|
|
||||||
|
#scan tr:hover {background-color: #ddd;}
|
||||||
|
|
||||||
|
#scan th {
|
||||||
|
border-collapse: collapse;
|
||||||
|
padding-top: 12px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding:4px;
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#details {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details td, #details th {
|
||||||
|
|
||||||
|
padding: 8px;
|
||||||
|
font-size:11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details tr:nth-child(even){background-color: #ffffff;}
|
||||||
|
|
||||||
|
#details tr:hover {background-color: #ddd;}
|
||||||
|
|
||||||
|
#details th {
|
||||||
|
padding-top: 12px;
|
||||||
|
font-style:bold;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding:4px;
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#sign {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sign td, #sign th {
|
||||||
|
|
||||||
|
padding: 8px;
|
||||||
|
font-size:11px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sign tr:nth-child(even){background-color: #ffffff;}
|
||||||
|
|
||||||
|
#sign tr:hover {background-color: #ddd;}
|
||||||
|
|
||||||
|
#sign th {
|
||||||
|
padding-top: 12px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding:4px;
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<table id="header">
|
||||||
|
<tr>
|
||||||
|
<th rowspan="4" style="width:50px"><br><img src="{{ asset('img/ARRAHN1.png') }}" style="width:70px"></img></th>
|
||||||
|
<th colspan="1">KOPERASI PERMODALAN KELANTAN BERHAD</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{{ $cawangan_detail['namacaw'] }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{{ $cawangan_detail['alamat1'] }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{{ $cawangan_detail['alamat2'].' No Tel : '. $cawangan_detail['notel'].' No Faks : '. $cawangan_detail['nofaks'] }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<table id="scan">
|
||||||
|
<tr>
|
||||||
|
<th colspan ="5"><b>LAPORAN ANSURAN</b></th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="white-space: nowrap" colspan="2"><b>Tarikh Mula: </b>
|
||||||
|
|
||||||
|
@php
|
||||||
|
$myDateTime = DateTime::createFromFormat('Y-m-d', $mula_date);
|
||||||
|
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||||
|
echo($formattedweddingdate)
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td style="white-space: nowrap" colspan="2"><b> Tarikh Hingga: </b>
|
||||||
|
|
||||||
|
@php
|
||||||
|
$myDateTime = DateTime::createFromFormat('Y-m-d', $hingga_date);
|
||||||
|
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||||
|
echo($formattedweddingdate)
|
||||||
|
@endphp</td>
|
||||||
|
|
||||||
|
<td style="white-space: nowrap" colspan="2"><b>Tarikh Cetak: </b>
|
||||||
|
|
||||||
|
@php
|
||||||
|
$myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
|
||||||
|
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||||
|
echo($formattedweddingdate)
|
||||||
|
@endphp</td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<table id="details">
|
||||||
|
<tr>
|
||||||
|
<th>Bil</th>
|
||||||
|
<th>No Rujukan</th>
|
||||||
|
<th width="30%">Nama</th>
|
||||||
|
<th>No K/P</th>
|
||||||
|
<th>Tarikh Bayaran</th>
|
||||||
|
<th>Tempoh</th>
|
||||||
|
<th>Baki Pembiayaan (RM)</th>
|
||||||
|
<th>Bayaran Pemb. (RM)</th>
|
||||||
|
<th>Ujrah(RM)</th>
|
||||||
|
<th>Keuntungan 1% (RM)</th>
|
||||||
|
<th>Keuntungan (RM)</th>
|
||||||
|
<th>Bayaran (RM)</th>
|
||||||
|
</tr>
|
||||||
|
@php
|
||||||
|
$counter = 1;
|
||||||
|
$totalduitmasuk = 0;
|
||||||
|
$totalkeuntungan = 0;
|
||||||
|
$totalpendahuluan = 0;
|
||||||
|
$totalujrah = 0;
|
||||||
|
$totalonepercent = 0;
|
||||||
|
@endphp
|
||||||
|
@foreach($tebus as $index=>$item)
|
||||||
|
@php
|
||||||
|
$totalduitmasuk += $item['duit_masuk'];
|
||||||
|
$totalkeuntungan += $item['bayaran_keuntungan'];
|
||||||
|
$totalpendahuluan += $item['bayaran_pembiayaan'];
|
||||||
|
$totalujrah += bcdiv(round($item['ansuranujrah'],2),1,1);
|
||||||
|
$totalonepercent += bcdiv(round($item['ansuranonepercent'],2),1,1);
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
@if($index > 0)
|
||||||
|
@if($item['teller'] != $tebus[$index - 1]['teller'])
|
||||||
|
<tr>
|
||||||
|
<td colspan="11">Teller : <b>{{ $item['teller'] }}</b></td>
|
||||||
|
</tr>
|
||||||
|
@php
|
||||||
|
$totaldmteller = 0;
|
||||||
|
$totalupahteller = 0;
|
||||||
|
$totalpendhteller = 0;
|
||||||
|
$totalujrahteller = 0;
|
||||||
|
$totalonepercentteller = 0;
|
||||||
|
@endphp
|
||||||
|
@endif
|
||||||
|
@else
|
||||||
|
<tr>
|
||||||
|
<td colspan="11">Teller : <b>{{ $item['teller'] }}</b></td>
|
||||||
|
</tr>
|
||||||
|
@php
|
||||||
|
$totaldmteller = 0;
|
||||||
|
$totalupahteller = 0;
|
||||||
|
$totalpendhteller = 0;
|
||||||
|
$totalujrahteller = 0;
|
||||||
|
$totalonepercentteller = 0;
|
||||||
|
@endphp
|
||||||
|
@endif
|
||||||
|
<tr>
|
||||||
|
<td>{{ $counter }}</td>
|
||||||
|
<td>{{$item['norujukan']}}</td>
|
||||||
|
<td>{{ $item['nama'] }}</td>
|
||||||
|
<td>{{ $item['nokp'] }}</td>
|
||||||
|
<td> @php
|
||||||
|
$myDateTime = DateTime::createFromFormat('Y-m-d H:i:s', $item['tarikh_bayaran']);
|
||||||
|
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||||
|
echo($formattedweddingdate)
|
||||||
|
@endphp</td>
|
||||||
|
<td>{{ $item['tempoh'] }}</td>
|
||||||
|
<td>{{ number_format($item['bakipjm'],2) }}</td>
|
||||||
|
<td>{{ number_format($item['bayaran_pembiayaan'],2) }}</td>
|
||||||
|
<td>{{ number_format(bcdiv(round($item['ansuranujrah'],2),1,1),2) }}</td>
|
||||||
|
<td>{{ number_format(bcdiv(round($item['ansuranonepercent'],2),1,1),2) }}</td>
|
||||||
|
<td>{{ number_format($item['bayaran_keuntungan'],2) }}</td>
|
||||||
|
<td>{{ number_format($item['duit_masuk'],2) }}</td>
|
||||||
|
</tr>
|
||||||
|
@php $counter++; @endphp
|
||||||
|
@php
|
||||||
|
$totaldmteller += $item['duit_masuk'];
|
||||||
|
$totalupahteller += $item['bayaran_keuntungan'];
|
||||||
|
$totalpendhteller += $item['bayaran_pembiayaan'];
|
||||||
|
$totalujrahteller += bcdiv(round($item['ansuranujrah'],2),1,1);
|
||||||
|
$totalonepercentteller += bcdiv(round($item['ansuranonepercent'],2),1,1);
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
@if($index+1 < sizeof($tebus))
|
||||||
|
@if($item['teller'] != $tebus[$index + 1]['teller'])
|
||||||
|
<tr>
|
||||||
|
<td colspan="7">{{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }}</td>
|
||||||
|
<td><b>{{ number_format($totalpendhteller,2) }} </b></td>
|
||||||
|
<td><b>{{ number_format($totalujrahteller,2) }} </b></td>
|
||||||
|
<td><b>{{ number_format($totalonepercentteller,2) }} </b></td>
|
||||||
|
<td><b>{{ number_format($totalupahteller,2) }} </b></td>
|
||||||
|
<td><b>{{ number_format($totaldmteller,2) }} </b></td>
|
||||||
|
</tr>
|
||||||
|
@php
|
||||||
|
$counter = 1;
|
||||||
|
$totaldmteller = 0;
|
||||||
|
$totalupahteller = 0;
|
||||||
|
$totalpendhteller = 0;
|
||||||
|
@endphp
|
||||||
|
@endif
|
||||||
|
@else
|
||||||
|
<tr>
|
||||||
|
<td colspan="7">{{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }}</td>
|
||||||
|
<td><b>{{ number_format($totalpendhteller,2) }} </b></td>
|
||||||
|
<td><b>{{ number_format($totalujrahteller,2) }} </b></td>
|
||||||
|
<td><b>{{ number_format($totalonepercentteller,2) }} </b></td>
|
||||||
|
<td><b>{{ number_format($totalupahteller,2) }} </b></td>
|
||||||
|
<td><b>{{ number_format($totaldmteller,2) }} </b></td>
|
||||||
|
</tr>
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<br><br>
|
||||||
|
<table id="details" style="border-top:1px solid black;border-bottom:1px solid black;text-align:center;">
|
||||||
|
<tr>
|
||||||
|
<th colspan="9"></th>
|
||||||
|
<th style="text-align:center;">Bayaran Pemb. (RM)</th>
|
||||||
|
<th style="text-align:center;">Ujrah (RM)</th>
|
||||||
|
<th style="text-align:center;">Keuntungan 1% (RM)</th>
|
||||||
|
<th style="text-align:center;">Keuntungan (RM)</th>
|
||||||
|
<th style="text-align:center;">Bayaran (RM)</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="9" style="text-align: center;"><b>JUMLAH KESELURUHAN</b></td>
|
||||||
|
<td>{{ number_format($totalpendahuluan,2) }}</td>
|
||||||
|
<td>{{ number_format($totalujrah,2) }}</td>
|
||||||
|
<td>{{ number_format($totalonepercent,2) }}</td>
|
||||||
|
<td>{{ number_format($totalkeuntungan,2) }}</td>
|
||||||
|
<td>{{ number_format($totalduitmasuk,2) }}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<br><br>
|
||||||
|
<br><br>
|
||||||
|
<table id="sign">
|
||||||
|
<tr>
|
||||||
|
<td></td>
|
||||||
|
<td colspan="2"> .................................................................. </td>
|
||||||
|
<td> </td>
|
||||||
|
<td colspan="2">.................................................................. </td>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td></td>
|
||||||
|
<td colspan="2"><B> DI SEMAK</B> </td>
|
||||||
|
<td> </td>
|
||||||
|
<td colspan="2"><B>DI SAHKAN </B></td>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,404 @@
|
|||||||
|
<style>
|
||||||
|
#header {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header td, #customers th {
|
||||||
|
|
||||||
|
padding:4px;
|
||||||
|
font-size:10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header tr:nth-child(even){background-color: #ffffff;}
|
||||||
|
|
||||||
|
#header tr:hover {background-color: #ddd;}
|
||||||
|
|
||||||
|
#header th {
|
||||||
|
padding-top: 12px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding:4px;
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#scan {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan td, #scan th {
|
||||||
|
|
||||||
|
padding: 8px;
|
||||||
|
font-size:11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan tr:nth-child(even){background-color: #ffffff;}
|
||||||
|
|
||||||
|
#scan tr:hover {background-color: #ddd;}
|
||||||
|
|
||||||
|
#scan th {
|
||||||
|
padding-top: 12px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding:4px;
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#scan {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan td, #scan th {
|
||||||
|
border-collapse: collapse;
|
||||||
|
padding: 8px;
|
||||||
|
font-size:11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan tr:nth-child(even){background-color: #ffffff;}
|
||||||
|
|
||||||
|
#scan tr:hover {background-color: #ddd;}
|
||||||
|
|
||||||
|
#scan th {
|
||||||
|
border-collapse: collapse;
|
||||||
|
padding-top: 12px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding:4px;
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#details {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details td, #details th {
|
||||||
|
|
||||||
|
padding: 8px;
|
||||||
|
font-size:8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details tr:nth-child(even){background-color: #ffffff;}
|
||||||
|
|
||||||
|
#details tr:hover {background-color: #ddd;}
|
||||||
|
|
||||||
|
#details th {
|
||||||
|
padding-top: 12px;
|
||||||
|
font-style:bold;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding:4px;
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#sign {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sign td, #sign th {
|
||||||
|
|
||||||
|
padding: 8px;
|
||||||
|
font-size:11px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sign tr:nth-child(even){background-color: #ffffff;}
|
||||||
|
|
||||||
|
#sign tr:hover {background-color: #ddd;}
|
||||||
|
|
||||||
|
#sign th {
|
||||||
|
padding-top: 12px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding:4px;
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<table id="header">
|
||||||
|
<tr>
|
||||||
|
<th rowspan="4" style="width:50px"><br><img src="{{ asset('img/ARRAHN1.png') }}" style="width:70px"></img></th>
|
||||||
|
<th colspan="1">KOPERASI PERMODALAN KELANTAN BERHAD</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{{ $cawangan_detail['namacaw'] }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{{ $cawangan_detail['alamat1'] }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{{ $cawangan_detail['alamat2'].' No Tel : '. $cawangan_detail['notel'].' No Faks : '. $cawangan_detail['nofaks'] }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<table id="scan">
|
||||||
|
<tr>
|
||||||
|
<th colspan ="5"><b>LAPORAN GADAIAN</b></th>
|
||||||
|
<th> </th>
|
||||||
|
<th> </th>
|
||||||
|
<th>
|
||||||
|
</th>
|
||||||
|
<th></th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="white-space: nowrap" colspan="2"><b>Tarikh Mula: </b>
|
||||||
|
|
||||||
|
@php
|
||||||
|
$myDateTime = DateTime::createFromFormat('Y-m-d', $mula_date);
|
||||||
|
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||||
|
echo($formattedweddingdate)
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td style="white-space: nowrap" colspan="2"><b> Tarikh Hingga: </b>
|
||||||
|
|
||||||
|
@php
|
||||||
|
$myDateTime = DateTime::createFromFormat('Y-m-d', $hingga_date);
|
||||||
|
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||||
|
echo($formattedweddingdate)
|
||||||
|
@endphp</td>
|
||||||
|
|
||||||
|
<td style="white-space: nowrap" colspan="2"><b>Tarikh Cetak: </b>
|
||||||
|
|
||||||
|
@php
|
||||||
|
$myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
|
||||||
|
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||||
|
echo($formattedweddingdate)
|
||||||
|
@endphp</td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="width:50px">
|
||||||
|
</td>
|
||||||
|
<td> </td>
|
||||||
|
<td> </td>
|
||||||
|
<td> </td>
|
||||||
|
<td> </td>
|
||||||
|
<td> </td>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<table id="details">
|
||||||
|
<tr>
|
||||||
|
<th>Bil</th>
|
||||||
|
<th>Norujukan</th>
|
||||||
|
<th>Nama</th>
|
||||||
|
<th>Alamat</th>
|
||||||
|
<th>No K/P</th>
|
||||||
|
<th>Tarikh Gadai</th>
|
||||||
|
<th>Masa</th>
|
||||||
|
<th>Berat</th>
|
||||||
|
<th>N Marhun</th>
|
||||||
|
<th>Pembiayaan</th>
|
||||||
|
<th>Ujrah (RM)</th>
|
||||||
|
<th>Keuntungan 1% (RM)</th>
|
||||||
|
<th>Keuntungan</th>
|
||||||
|
<th>Peratus (%)</th>
|
||||||
|
</tr>
|
||||||
|
@php
|
||||||
|
$counter = 1;
|
||||||
|
$totalpinjaman = 0;
|
||||||
|
$totalberat = 0;
|
||||||
|
$totalnm = 0;
|
||||||
|
$totalupah = 0;
|
||||||
|
$bil = 0;
|
||||||
|
$full_total_ujrah = 0;
|
||||||
|
$full_total_onepercent = 0;
|
||||||
|
|
||||||
|
@endphp
|
||||||
|
@foreach($gadai as $index=>$item)
|
||||||
|
@php
|
||||||
|
$totalpinjaman += $item['pinjaman'];
|
||||||
|
$totalberat += $item['berat'];
|
||||||
|
$totalnm += $item['nilaimarhun'];
|
||||||
|
$totalupah += $item['upah12'];
|
||||||
|
$full_total_ujrah += $item['ujrah']*12;
|
||||||
|
$full_total_onepercent += $item['onepercent']*12;
|
||||||
|
|
||||||
|
@endphp
|
||||||
|
@if($index > 0)
|
||||||
|
@if($item['teller'] != $gadai[$index - 1]['teller'])
|
||||||
|
<tr>
|
||||||
|
<td colspan=10>Teller : <b>{{ $item['teller'] }}</b></td>
|
||||||
|
</tr>
|
||||||
|
@php
|
||||||
|
$totalpinjamanteller = 0;
|
||||||
|
$totalnmteller = 0;
|
||||||
|
$totalberatteller = 0;
|
||||||
|
$totalujrah = 0;
|
||||||
|
$totalonepercent = 0;
|
||||||
|
|
||||||
|
@endphp
|
||||||
|
@endif
|
||||||
|
@else
|
||||||
|
<tr>
|
||||||
|
<td colspan=10>Teller : <b>{{ $item['teller'] }}</b></td>
|
||||||
|
</tr>
|
||||||
|
@php
|
||||||
|
$totalpinjamanteller = 0;
|
||||||
|
$totalnmteller = 0;
|
||||||
|
$totalberatteller = 0;
|
||||||
|
$totalupah12 = 0;
|
||||||
|
$totalujrah = 0;
|
||||||
|
$totalonepercent= 0;
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
@endif
|
||||||
|
<tr>
|
||||||
|
<td>{{ $counter }}</td>
|
||||||
|
<td style="width:100px">{{$item['norujukan']}}</td>
|
||||||
|
<td>
|
||||||
|
{{ $item['nama'] }}
|
||||||
|
</td>
|
||||||
|
<td>{{ $item['alamat1'] }}</td>
|
||||||
|
<td>{{ $item['nokp'] }}</td>
|
||||||
|
<td>@php
|
||||||
|
$dt = new DateTime($item['t_gadai']);
|
||||||
|
$time = $dt->format('d-m-Y');
|
||||||
|
echo date($time);
|
||||||
|
@endphp</td>
|
||||||
|
<td>{{ $item['masa'] }}</td>
|
||||||
|
<td>{{ number_format($item['berat'],2) }}</td>
|
||||||
|
<td>{{ number_format($item['nilaimarhun'],2) }}</td>
|
||||||
|
<td>{{ number_format($item['pinjaman'],2) }}</td>
|
||||||
|
<td>{{ number_format($item['ujrah']*12,2) }}</td>
|
||||||
|
<td>{{ number_format($item['onepercent']*12,2) }}</td>
|
||||||
|
<td>{{ number_format($item['upah12'],2) }}</td>
|
||||||
|
<td>{{ $item['percentpinj'] }}</td>
|
||||||
|
</tr>
|
||||||
|
@php $counter++; @endphp
|
||||||
|
@php
|
||||||
|
$totalpinjamanteller += $item['pinjaman'];
|
||||||
|
$totalnmteller += $item['nilaimarhun'];
|
||||||
|
$totalberatteller += $item['berat'];
|
||||||
|
$totalupah12 += $item['upah12'];
|
||||||
|
$totalujrah += $item['ujrah']*12;
|
||||||
|
$totalonepercent += $item['onepercent']*12;
|
||||||
|
|
||||||
|
|
||||||
|
@endphp
|
||||||
|
@if($index+1 < sizeof($gadai))
|
||||||
|
@if($item['teller'] != $gadai[$index + 1]['teller'])
|
||||||
|
@php if($item['teller'] != '')$bil += ($counter-1); @endphp
|
||||||
|
<tr>
|
||||||
|
<td colspan="7"><b>{{ $counter-1 }}</b> Jumlah surat bagi teller : <b>{{ $item['teller'] }}</b></td>
|
||||||
|
<td><b>{{ number_format($totalberatteller,2) }} </b></td>
|
||||||
|
<td><b>{{ number_format($totalnmteller,2) }} </b></td>
|
||||||
|
<td><b>{{ number_format($totalpinjamanteller,2) }} </b></td>
|
||||||
|
<td><b>{{ number_format($totalujrah,2) }}</b></td>
|
||||||
|
<td><b>{{ number_format($totalonepercent,2) }}</b></td>
|
||||||
|
<td><b>{{ number_format($totalupah12,2) }} </b></td>
|
||||||
|
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
@php
|
||||||
|
$counter = 1;
|
||||||
|
$totalupah12 = 0;
|
||||||
|
$totalpinjamanteller = 0;
|
||||||
|
$totalnmteller = 0;
|
||||||
|
$totalujrah = 0;
|
||||||
|
$totalonepercent = 0;
|
||||||
|
|
||||||
|
@endphp
|
||||||
|
@endif
|
||||||
|
@else
|
||||||
|
@php $bil += ($counter-1); @endphp
|
||||||
|
<tr>
|
||||||
|
<td colspan="7"><b>{{ $counter-1 }}</b> Jumlah surat bagi teller : <b>{{ $item['teller'] }}</b></td>
|
||||||
|
<td><b>{{ number_format($totalberatteller,2) }} </b></td>
|
||||||
|
<td><b>{{ number_format($totalnmteller,2) }} </b></td>
|
||||||
|
<td><b>{{ number_format($totalpinjamanteller,2) }} </b></td>
|
||||||
|
<td><b>{{ number_format($totalujrah,2) }}</b></td>
|
||||||
|
<td><b>{{ number_format($totalonepercent,2) }}</b></td>
|
||||||
|
<td><b>{{ number_format($totalupah12,2) }} </b></td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
</table>
|
||||||
|
<br><br>
|
||||||
|
<table id="details" style="border-top:1px solid black;border-bottom:1px solid black;text-align:center;">
|
||||||
|
<tr>
|
||||||
|
<th colspan="9" style="text-align: center;"><b>JUMLAH BILANGAN = {{ $bil }}</b></th>
|
||||||
|
<th style="text-align:center;">Berat (g/m)</th>
|
||||||
|
<th style="text-align:center;">Nilai Marhun (RM)</th>
|
||||||
|
<th style="text-align:center;">Pembiayaan (RM)</th>
|
||||||
|
<th style="text-align:center;">Ujrah (RM)</th>
|
||||||
|
<th style="text-align:center;">Keuntungan 1% (RM)</th>
|
||||||
|
<th style="text-align:center;">Upah/Keuntungan (RM)</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="9" style="text-align: center;"><b>JUMLAH KESELURUHAN</b></td>
|
||||||
|
<td>{{ number_format($totalberat,2) }}</td>
|
||||||
|
<td>{{ number_format($totalnm,2) }}</td>
|
||||||
|
<td>{{ number_format($totalpinjaman,2) }}</td>
|
||||||
|
<td>{{ number_format($full_total_ujrah,2) }}</td>
|
||||||
|
<td>{{ number_format($full_total_onepercent,2) }}</td>
|
||||||
|
<td>{{ number_format($totalupah,2) }}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
{{-- <h5 style="float:right;">JUMLAH KESELURUHAN GADAIAN : RM {{ number_format($totalpinjaman,2) }}</h5> --}}
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<table id="sign">
|
||||||
|
<tr>
|
||||||
|
<td></td>
|
||||||
|
<td colspan="2"> .................................................................. </td>
|
||||||
|
<td> </td>
|
||||||
|
<td colspan="2">.................................................................. </td>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td></td>
|
||||||
|
<td colspan="2"><B> DI SEMAK</B> </td>
|
||||||
|
<td> </td>
|
||||||
|
<td colspan="2"><B>DI SAHKAN </B></td>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,431 @@
|
|||||||
|
@extends('layouts.app')
|
||||||
|
<style>
|
||||||
|
|
||||||
|
.radiostyle .radio-green {
|
||||||
|
background-color: #27ae60;
|
||||||
|
color:white;
|
||||||
|
box-shadow: 5px 10px #888888;
|
||||||
|
width:200px;
|
||||||
|
margin-right:5px;
|
||||||
|
transition: 0.5s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-red {
|
||||||
|
background-color: #e74c3c;
|
||||||
|
color:white;
|
||||||
|
width:200px;
|
||||||
|
margin-right:5px;
|
||||||
|
box-shadow: 5px 10px #888888;
|
||||||
|
transition: 0.5s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-yellow {
|
||||||
|
background-color: #3498db;
|
||||||
|
color:white;
|
||||||
|
width:200px;
|
||||||
|
margin-right:5px;
|
||||||
|
box-shadow: 5px 10px #888888;
|
||||||
|
transition: 0.5s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-green:hover {
|
||||||
|
box-shadow: 5px 5px #888888;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-red:hover {
|
||||||
|
box-shadow: 5px 5px #888888;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-yellow:hover {
|
||||||
|
box-shadow: 5px 5px #888888;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-green input[type="radio"]:checked{
|
||||||
|
box-shadow: 5px 10px #888888;
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-yellow input[type="radio"]:checked{
|
||||||
|
box-shadow: 5px 10px #888888;
|
||||||
|
}
|
||||||
|
|
||||||
|
.radiostyle .radio-red input[type="radio"]:checked{
|
||||||
|
box-shadow: 5px 10px #888888;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#header {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header td,
|
||||||
|
#customers th {
|
||||||
|
|
||||||
|
padding: 4px;
|
||||||
|
font-size: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header tr:nth-child(even) {
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header tr:hover {
|
||||||
|
background-color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header th {
|
||||||
|
padding-top: 12px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding: 4px;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#scan {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan td,
|
||||||
|
#scan th {
|
||||||
|
|
||||||
|
padding: 8px;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan tr:nth-child(even) {
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan tr:hover {
|
||||||
|
background-color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan th {
|
||||||
|
padding-top: 12px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding: 4px;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#scan {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan td,
|
||||||
|
#scan th {
|
||||||
|
border-collapse: collapse;
|
||||||
|
padding: 8px;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan tr:nth-child(even) {
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan tr:hover {
|
||||||
|
background-color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan th {
|
||||||
|
border-collapse: collapse;
|
||||||
|
padding-top: 12px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding: 4px;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#details {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details td,
|
||||||
|
#details th {
|
||||||
|
|
||||||
|
padding: 8px;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details tr:nth-child(even) {
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details tr:hover {
|
||||||
|
background-color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details th {
|
||||||
|
padding-top: 12px;
|
||||||
|
font-style: bold;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding: 4px;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#sign {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sign td,
|
||||||
|
#sign th {
|
||||||
|
|
||||||
|
padding: 8px;
|
||||||
|
font-size: 11px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sign tr:nth-child(even) {
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sign tr:hover {
|
||||||
|
background-color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sign th {
|
||||||
|
padding-top: 12px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding: 4px;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
<div class="container">
|
||||||
|
<div class="row justify-content-center">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="card">
|
||||||
|
<nav aria-label="breadcrumb">
|
||||||
|
<ol class="breadcrumb pb-3">
|
||||||
|
<li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="{{ route('laporan') }}">Laporan</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="{{ route('laporan.stokauditkhas') }}">SA(Blast Whatsapp)</a></li>
|
||||||
|
<li class="breadcrumb-item active" aria-current="page">Stok Audit Khas (Blast Whatsapp)</li>
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="card-body text-center">
|
||||||
|
|
||||||
|
<form id="exportpdf" action="{{route('stokaudit.exportlaporancetakkhas')}}" target="_blank" method="POST">
|
||||||
|
{{-- <a class="btn m-1 btn-success confirmdel" href="{{route('stokaudit.exportlaporancetakkhas')}}" data-toggle="tooltip" data-placement="top" title="Blast"><i class="far fa-mail-alt"></i>Blast Whatsapp & SMS</a> --}}
|
||||||
|
@csrf
|
||||||
|
<input type="hidden" name="type" id="typedonwload" value="">
|
||||||
|
<input type="hidden" name="daritempoh" value="{{ $daritempoh}}">
|
||||||
|
<input type="hidden" name="hinggatempoh" value="{{ $hinggatempoh}}">
|
||||||
|
<input type='hidden' name="radaktif" value="aktif">
|
||||||
|
<table id="scan">
|
||||||
|
<tr>
|
||||||
|
<th colspan ="5"><b>Laporan Stok Audit Khas (Blast Whatsapp)</b></th>
|
||||||
|
|
||||||
|
<th><b> Tarikh Cetak:</b>
|
||||||
|
@php
|
||||||
|
$myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
|
||||||
|
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||||
|
echo $formattedweddingdate;
|
||||||
|
@endphp
|
||||||
|
</th>
|
||||||
|
<th></th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th> <b>Dari Tempoh: {{$daritempoh}} hingga Tempoh: {{$hinggatempoh}}</b></th>
|
||||||
|
<td></td>
|
||||||
|
<td style="width:50px"></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<table class="table table-bordered" id="details" style="width:100%">
|
||||||
|
<thead>
|
||||||
|
<th>Bil</th>
|
||||||
|
<th>Status</th>
|
||||||
|
<th>Nama</th>
|
||||||
|
<th>No. KP</th>
|
||||||
|
<th>No. Telefon</th>
|
||||||
|
<th>Norujukan</th>
|
||||||
|
<th>Tempoh</th>
|
||||||
|
<th>Berat</th>
|
||||||
|
<th>Nilai Marhun (RM)</th>
|
||||||
|
<th>Pembiayaan Asal (RM)</th>
|
||||||
|
<th>Baki Pembiayaan (RM)</th>
|
||||||
|
<th>Keuntungan Belum Bayar (RM)</th>
|
||||||
|
</thead>
|
||||||
|
@php
|
||||||
|
$counter = 1;
|
||||||
|
$totalpinjaman = 0;
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
@foreach ($stokaudit['rekod'] as $index => $item)
|
||||||
|
@php
|
||||||
|
if ($item['listsag'][0]['hargajualan'] == null) {
|
||||||
|
$totalpinjaman += $item['listsag'][0]['pinjaman'];
|
||||||
|
} else {
|
||||||
|
$totalpinjaman += $item['listsag'][0]['bakipjm'];
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($item['blasted'] == null) {
|
||||||
|
$status = 'Belum';
|
||||||
|
} else {
|
||||||
|
$status = 'Selesai';
|
||||||
|
}
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td>{{ $counter }}</td>
|
||||||
|
<td style="white-space: nowrap">{{ $status ?? '-' }}</td>
|
||||||
|
<td style="white-space: nowrap;">{{ $item['info']['nama'] ?? '-' }}</td>
|
||||||
|
<td>{{ $item['nokp'] }}<input type="hidden" name="nokp[]" value="{{ $item['nokp']}}"></td>
|
||||||
|
<td>{{ $item['info']['telefon'] ?? '-' }}<input type="hidden" name="telefon[]" value="{{ $item['info']['telefon'] ?? ''}}"></td>
|
||||||
|
<td style="white-space: nowrap;">@foreach($item['listsag'] as $item1){{ $item1['norujukan']}}<br>@endforeach</td>
|
||||||
|
<td>@foreach($item['listsag'] as $item1){{ $item1['tempoh']}}<br>@endforeach</td>
|
||||||
|
<td>@foreach($item['listsag'] as $item1){{ $item1['berat']}}<br>@endforeach</td>
|
||||||
|
<td align = "right">@foreach($item['listsag'] as $item1){{ number_format($item1['nilaimarhun'], 2)}}<br>@endforeach</td>
|
||||||
|
<td align = "right">@foreach($item['listsag'] as $item1){{ number_format($item1['pinjaman'], 2)}}<br>@endforeach</td>
|
||||||
|
<td align = "right">@foreach($item['listsag'] as $item1){{ number_format($item1['bakipjm'], 2)}}<br>@endforeach</td>
|
||||||
|
<td align = "right">@foreach($item['listsag'] as $item1){{ number_format($item1['tunggakan'], 2) }}<br>@endforeach</td>
|
||||||
|
</tr>
|
||||||
|
@php $counter++; @endphp
|
||||||
|
@endforeach
|
||||||
|
<tfoot>
|
||||||
|
<th colspan='7'>Jumlah</th>
|
||||||
|
<th>{{ number_format($stokaudit['totalberat'], 2) }}</th>
|
||||||
|
<th align = "right">{{ number_format($stokaudit['totalnilaimarhun'], 2) }}</th>
|
||||||
|
<th align = "right">{{ number_format($stokaudit['totalpinjaman'], 2) }}</th>
|
||||||
|
<th align = "right">{{ number_format($stokaudit['totalbakipjm'], 2) }}</th>
|
||||||
|
<th>{{ number_format($stokaudit['totaltunggakan'], 2) }}</th>
|
||||||
|
</tfoot>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
{{-- <table id="sign">
|
||||||
|
<tr>
|
||||||
|
<td></td>
|
||||||
|
<td colspan="2"> .................................................................. </td>
|
||||||
|
<td> </td>
|
||||||
|
<td colspan="2">.................................................................. </td>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td></td>
|
||||||
|
<td colspan="2"><B> DI SEMAK</B> </td>
|
||||||
|
<td> </td>
|
||||||
|
<td colspan="2"><B>DI SAHKAN </B></td>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
</table> --}}
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
var tablelelongbid= $('#details').DataTable( {
|
||||||
|
"columnDefs": [
|
||||||
|
{
|
||||||
|
"targets": 0,
|
||||||
|
"target": '_blank',
|
||||||
|
"orderable": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"targets": 5,
|
||||||
|
"orderable": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
// order: [[1, 'asc']],
|
||||||
|
// // "ordering": false,
|
||||||
|
"info": false,
|
||||||
|
"lengthChange": false,
|
||||||
|
"pageLength": 9999999,
|
||||||
|
dom: 'Bfrtip',
|
||||||
|
buttons: [
|
||||||
|
|
||||||
|
{
|
||||||
|
className: 'btn btn-outline-success pl-4 pr-4 btn-sm export',
|
||||||
|
target: "_blank",
|
||||||
|
titleAttr: 'Export to Excel',
|
||||||
|
text: '<h8><b>EXCEL</b></h8>',
|
||||||
|
action: function ( e, dt, node, config ) {
|
||||||
|
$('#typedonwload').val('excel');
|
||||||
|
$("#exportpdf").submit();
|
||||||
|
// window.open("_blank");
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
className: 'btn btn-outline-danger pl-4 pr-4 btn-sm export',
|
||||||
|
titleAttr: 'Export to PDF',
|
||||||
|
text: '<h8><b>PDF</b></h8>',
|
||||||
|
action: function ( e, dt, node, config ) {
|
||||||
|
$('#typedonwload').val('pdf');
|
||||||
|
$("#exportpdf").submit();
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
{
|
||||||
|
className: 'btn btn-outline-info pl-4 pr-4 btn-sm export',
|
||||||
|
target: "_blank",
|
||||||
|
titleAttr: 'Blast Whatsapp',
|
||||||
|
text: '<h8><b>WHATSAPP & SMS</b></h8>',
|
||||||
|
action: function ( e, dt, node, config ) {
|
||||||
|
// $('#typedonwload').val('whatsapp');
|
||||||
|
// $("#exportpdf").submit();
|
||||||
|
$("#exportpdf").click(function() {
|
||||||
|
$('[data-toggle="tooltip"]').tooltip()
|
||||||
|
alert("ADAKAH ANDA PASTI?");
|
||||||
|
$('#typedonwload').val('whatsapp');
|
||||||
|
$("#exportpdf").submit();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
]
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
$('.export').tooltip();
|
||||||
|
$( '.export').removeClass('dt-button');
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
@endsection
|
||||||
@@ -0,0 +1,503 @@
|
|||||||
|
<style>
|
||||||
|
#header {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header td, #customers th {
|
||||||
|
|
||||||
|
padding:4px;
|
||||||
|
font-size:10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header tr:nth-child(even){background-color: #ffffff;}
|
||||||
|
|
||||||
|
#header tr:hover {background-color: #ddd;}
|
||||||
|
|
||||||
|
#header th {
|
||||||
|
padding-top: 12px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding:4px;
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#scan {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan td, #scan th {
|
||||||
|
|
||||||
|
padding: 8px;
|
||||||
|
font-size:11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan tr:nth-child(even){background-color: #ffffff;}
|
||||||
|
|
||||||
|
#scan tr:hover {background-color: #ddd;}
|
||||||
|
|
||||||
|
#scan th {
|
||||||
|
padding-top: 12px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding:4px;
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#scan {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan td, #scan th {
|
||||||
|
border-collapse: collapse;
|
||||||
|
padding: 8px;
|
||||||
|
font-size:11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan tr:nth-child(even){background-color: #ffffff;}
|
||||||
|
|
||||||
|
#scan tr:hover {background-color: #ddd;}
|
||||||
|
|
||||||
|
#scan th {
|
||||||
|
border-collapse: collapse;
|
||||||
|
padding-top: 12px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding:4px;
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#details {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details td, #details th {
|
||||||
|
|
||||||
|
padding: 8px;
|
||||||
|
font-size:8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details tr:nth-child(even){background-color: #ffffff;}
|
||||||
|
|
||||||
|
#details tr:hover {background-color: #ddd;}
|
||||||
|
|
||||||
|
#details th {
|
||||||
|
padding-top: 12px;
|
||||||
|
font-style:bold;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding:4px;
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#sign {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sign td, #sign th {
|
||||||
|
|
||||||
|
padding: 8px;
|
||||||
|
font-size:11px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sign tr:nth-child(even){background-color: #ffffff;}
|
||||||
|
|
||||||
|
#sign tr:hover {background-color: #ddd;}
|
||||||
|
|
||||||
|
#sign th {
|
||||||
|
padding-top: 12px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding:4px;
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media print {
|
||||||
|
.new-page {
|
||||||
|
page-break-before: always;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
<table id="header">
|
||||||
|
<tr>
|
||||||
|
<th rowspan="4" style="width:50px"><br><img src="{{ asset('img/ARRAHN1.png') }}" style="width:70px"></img></th>
|
||||||
|
<th colspan="1">KOPERASI PERMODALAN KELANTAN BERHAD</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{{ $cawangan_detail['namacaw'] }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{{ $cawangan_detail['alamat1'] }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{{ $cawangan_detail['alamat2'].' No Tel : '. $cawangan_detail['notel'].' No Faks : '. $cawangan_detail['nofaks'] }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<table id="scan">
|
||||||
|
<tr>
|
||||||
|
<th colspan ="5"><b>LAPORAN PENEBUSAN</b></th>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="white-space: nowrap" colspan="2"><b>Tarikh Mula: </b>
|
||||||
|
|
||||||
|
@php
|
||||||
|
$myDateTime = DateTime::createFromFormat('Y-m-d', $mula_date);
|
||||||
|
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||||
|
echo($formattedweddingdate)
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td style="white-space: nowrap" colspan="2"><b> Tarikh Hingga: </b>
|
||||||
|
|
||||||
|
@php
|
||||||
|
$myDateTime = DateTime::createFromFormat('Y-m-d', $hingga_date);
|
||||||
|
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||||
|
echo($formattedweddingdate)
|
||||||
|
@endphp</td>
|
||||||
|
|
||||||
|
<td style="white-space: nowrap" colspan="2"><b>Tarikh Cetak: </b>
|
||||||
|
|
||||||
|
@php
|
||||||
|
$myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
|
||||||
|
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||||
|
echo($formattedweddingdate)
|
||||||
|
@endphp</td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<table id="details">
|
||||||
|
<tr>
|
||||||
|
<th>Bil</th>
|
||||||
|
<th>Norujukan</th>
|
||||||
|
<th>Nama</th>
|
||||||
|
<th>No KP</th>
|
||||||
|
<th>Tarikh Tebus</th>
|
||||||
|
<th>Masa</th>
|
||||||
|
<th>JBG</th>
|
||||||
|
<th>J Tebus</th>
|
||||||
|
<th>Nilai Marhun(RM)</th>
|
||||||
|
<th>P. Asal(RM)</th>
|
||||||
|
<th>B.Pembiayaan(RM)</th>
|
||||||
|
<th>Ujrah(RM)</th>
|
||||||
|
<th>Keuntungan 1%(RM)</th>
|
||||||
|
<th>Keuntungan(RM)</th>
|
||||||
|
<th>Bayaran(RM)</th>
|
||||||
|
<th>Jumlah(RM)</th>
|
||||||
|
</tr>
|
||||||
|
@php
|
||||||
|
$counter = 1;
|
||||||
|
$totalnm = 0;
|
||||||
|
$totalbayaran = 0;
|
||||||
|
$totalpinjamanasal = 0;
|
||||||
|
$totalpinjaman = 0;
|
||||||
|
$totalupah = 0;
|
||||||
|
$totalujrah = 0;
|
||||||
|
$totalonepercent = 0;
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
@foreach($tebus as $index=>$item)
|
||||||
|
@php
|
||||||
|
$totalbayaran += ($item['jenistebus'] === 'S') ? ($item['gadaibakipjm']+$item['bakiupah']) : $item['bakipjm'];
|
||||||
|
$totalpinjaman += ($item['hargajualan'] != $item['bakihargajualan']) ? $item['gadaibakipjm'] : $item['pinjaman'];
|
||||||
|
$totalupah += $item['bakiupah'];
|
||||||
|
$totalpinjamanasal += $item['pinjaman'];
|
||||||
|
$totalnm += $item['nilaimarhun'];
|
||||||
|
$totalujrah += $item['ujrah'];
|
||||||
|
$totalonepercent += $item['onepercent'];
|
||||||
|
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
@if($index > 0)
|
||||||
|
@if($item['teller'] != $tebus[$index - 1]['teller'])
|
||||||
|
<tr>
|
||||||
|
<td colspan="12">Teller : <b>{{ $item['teller'] }}</b></td>
|
||||||
|
</tr>
|
||||||
|
@php
|
||||||
|
$totalnmteller = 0;
|
||||||
|
$totalpinjamanasalteller = 0;
|
||||||
|
$totalpinjamanteller = 0;
|
||||||
|
$totalupahteller = 0;
|
||||||
|
$totalbayaranteller = 0;
|
||||||
|
$totalujrahteller = 0;
|
||||||
|
$totalonepercentteller = 0;
|
||||||
|
@endphp
|
||||||
|
@endif
|
||||||
|
@else
|
||||||
|
<tr>
|
||||||
|
<td colspan="12">Teller : <b>{{ $item['teller'] }}</b></td>
|
||||||
|
</tr>
|
||||||
|
@php
|
||||||
|
$totalnmteller = 0;
|
||||||
|
$totalpinjamanasalteller = 0;
|
||||||
|
$totalpinjamanteller = 0;
|
||||||
|
$totalupahteller = 0;
|
||||||
|
$totalbayaranteller = 0;
|
||||||
|
$totaljumlahteller = 0;
|
||||||
|
$totalujrahteller = 0;
|
||||||
|
$totalonepercentteller = 0;
|
||||||
|
@endphp
|
||||||
|
@endif
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td>{{ $counter }}</td>
|
||||||
|
<td>{{ $item['norujukan'] }}</td>
|
||||||
|
<td>{{ $item['nama'] }}</td>
|
||||||
|
<td>{{ $item['nokp'] }}</td>
|
||||||
|
<td>
|
||||||
|
@php
|
||||||
|
$dt = new DateTime($item['tarikh_bayaran']);
|
||||||
|
$time = $dt->format('d-m-Y');
|
||||||
|
echo date($time);
|
||||||
|
@endphp
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
@php
|
||||||
|
$dt = new DateTime($item['tarikh_bayaran']);
|
||||||
|
$time = $dt->format('h:i:s');
|
||||||
|
echo date($time);
|
||||||
|
@endphp
|
||||||
|
</td>
|
||||||
|
<td>{{ $item['jbg'] }}</td>
|
||||||
|
<td>{{$item['jenistebus']}}</td>
|
||||||
|
<td>
|
||||||
|
{{ number_format($item['nilaimarhun'],2) }}
|
||||||
|
</td>
|
||||||
|
<td>{{ number_format($item['pinjaman'],2) }}</td>
|
||||||
|
<td>
|
||||||
|
@php
|
||||||
|
if($item['hargajualan'] !== $item['bakihargajualan'])
|
||||||
|
echo number_format($item['gadaibakipjm'],2);
|
||||||
|
else
|
||||||
|
echo number_format($item['pinjaman'],2);
|
||||||
|
@endphp
|
||||||
|
</td>
|
||||||
|
<td>{{ number_format($item['ujrah'],2) }}</td>
|
||||||
|
<td>{{ number_format($item['onepercent'],2) }}</td>
|
||||||
|
<td>{{ number_format($item['bakiupah'],2) }}</td>
|
||||||
|
<td>{{ number_format($item['bakipjm'],2) }}</td>
|
||||||
|
<td>@php if($item['jenistebus'] == 'S'){ $total=($item['gadaibakipjm']+$item['bakiupah']);echo number_format($total,2);} else echo number_format($item['bakipjm'],2); @endphp</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
|
@php $counter++; @endphp
|
||||||
|
@php
|
||||||
|
$totalnmteller += $item['nilaimarhun'];
|
||||||
|
$totalpinjamanasalteller += $item['pinjaman'];
|
||||||
|
$totalpinjamanteller += ($item['hargajualan'] != $item['bakihargajualan']) ? $item['gadaibakipjm'] : $item['pinjaman'];
|
||||||
|
$totalupahteller += $item['bakiupah'];$totalbayaranteller += $item['bakipjm'];
|
||||||
|
$totalujrahteller += $item['ujrah'];
|
||||||
|
$totalonepercentteller += $item['onepercent'];
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
@php
|
||||||
|
$totaljumlahteller += ($item['jenistebus'] === 'S') ? ($item['gadaibakipjm']+$item['bakiupah']) : $item['bakipjm'];
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
@if($index+1 < sizeof($tebus))
|
||||||
|
@if($item['teller'] != $tebus[$index + 1]['teller'])
|
||||||
|
<tr class="new-page">
|
||||||
|
<td colspan="8"><b>{{ $counter-1 }}</b> Jumlah Bagi Teller : <b>{{ $item['teller'] }}</b></td>
|
||||||
|
<td><b>{{ number_format($totalnmteller,2) }} </b></td>
|
||||||
|
<td><b>{{ number_format($totalpinjamanasalteller,2) }} </b></td>
|
||||||
|
<td><b>{{ number_format($totalpinjamanteller,2) }} </b></td>
|
||||||
|
<td><b>{{ number_format($totalujrahteller,2) }} </b></td>
|
||||||
|
<td><b>{{ number_format($totalonepercentteller,2) }} </b></td>
|
||||||
|
<td><b>{{ number_format($totalupahteller,2) }} </b></td>
|
||||||
|
<td><b>{{ number_format($totalbayaranteller,2) }} </b></td>
|
||||||
|
<td><b>{{ number_format($totaljumlahteller,2) }} </b></td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
@php
|
||||||
|
$counter = 1;
|
||||||
|
$totalpinjamanasalteller = 0;
|
||||||
|
$totalpinjamanteller = 0;
|
||||||
|
$totalupahteller = 0;
|
||||||
|
$totalbayaranteller = 0;
|
||||||
|
$totaljumlahteller = 0;
|
||||||
|
$totalujrahteller = 0;
|
||||||
|
$totalonepercentteller = 0;
|
||||||
|
@endphp
|
||||||
|
@endif
|
||||||
|
@else
|
||||||
|
<tr>
|
||||||
|
<td colspan="8"><b>{{ $counter-1 }}</b> Jumlah Bagi Teller : <b>{{ $item['teller'] }}</b></td>
|
||||||
|
<td><b>{{ number_format($totalnmteller,2) }}</b></td>
|
||||||
|
<td><b>{{ number_format($totalpinjamanasalteller,2) }} </b></td>
|
||||||
|
<td><b>{{ number_format($totalpinjamanteller,2) }} </b></td>
|
||||||
|
<td><b>{{ number_format($totalujrahteller,2) }} </b></td>
|
||||||
|
<td><b>{{ number_format($totalonepercentteller,2) }} </b></td>
|
||||||
|
<td><b>{{ number_format($totalupahteller,2) }} </b></td>
|
||||||
|
<td><b>{{ number_format($totalbayaranteller,2) }} </b></td>
|
||||||
|
<td><b>{{ number_format($totaljumlahteller,2) }} </b></td>
|
||||||
|
</tr>
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<br><br>
|
||||||
|
<table id="details" style="border-top:1px solid black;border-bottom:1px solid black;text-align:center;">
|
||||||
|
<tr>
|
||||||
|
<th colspan="9" style="text-align: center;"><b>JUMLAH BILANGAN = {{ $tebuspengasingan['biltawarruq'] + $tebuspengasingan['bilarrahn'] }}</b></th>
|
||||||
|
<th style="text-align:center;">Nilai Marhun (RM)</th>
|
||||||
|
<th style="text-align:center;">Pembiayaan Asal(RM)</th>
|
||||||
|
<th style="text-align:center;">B. Pembiayaan (RM)</th>
|
||||||
|
<th style="text-align:center;">Keuntungan Rebet(RM)</th>
|
||||||
|
<th style="text-align:center;">Ujrah (RM)</th>
|
||||||
|
<th style="text-align:center;">Keuntungan 1% (RM)</th>
|
||||||
|
<th style="text-align:center;">Upah/Keuntungan (RM)</th>
|
||||||
|
<th style="text-align:center;">Keuntungan Sebenar(RM)</th>
|
||||||
|
<th style="text-align:center;">Jumlah (RM)</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="9" style="text-align: center;"><b>JUMLAH KESELURUHAN</b></td>
|
||||||
|
<td>{{ number_format($totalnm,2) }}</td>
|
||||||
|
<td>{{ number_format($totalpinjamanasal,2) }}</td>
|
||||||
|
<td>{{ number_format($totalpinjaman,2) }}</td>
|
||||||
|
<td>@php $totalkeuntunganrebet = ($totalpinjaman + $totalupah) - $totalbayaran;
|
||||||
|
echo number_format($totalkeuntunganrebet,2);
|
||||||
|
@endphp</td>
|
||||||
|
<td>{{ number_format($totalujrah,2) }}</td>
|
||||||
|
<td>{{ number_format($totalonepercent,2) }}</td>
|
||||||
|
<td>{{ number_format($totalupah,2) }}</td>
|
||||||
|
<td>{{ number_format($totalupah - $totalkeuntunganrebet,2) }}</td>
|
||||||
|
<td>{{ number_format($totalbayaran,2) }}</td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<h4>Laporan Transaksi Penebusan</h4>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<table id="details">
|
||||||
|
<thead>
|
||||||
|
<th>Bil</th>
|
||||||
|
<th>Jenis</th>
|
||||||
|
<th>Penebusan(RM)</th>
|
||||||
|
<th>Ujrah(RM)</th>
|
||||||
|
<th>Keuntungan 1% (RM)</th>
|
||||||
|
<th>Keuntungan(RM)</th>
|
||||||
|
<th>Rebate(RM)</th>
|
||||||
|
</thead>
|
||||||
|
<tr>
|
||||||
|
<td>{{ $tebuspengasingan['biltawarruq'] }}</td>
|
||||||
|
<td>Tawarruq</td>
|
||||||
|
<td>{{ number_format($tebuspengasingan['totaltawarruq'],2) }}</td>
|
||||||
|
<td>{{ number_format($tebuspengasingan['ujrahtawarruq'],2) }}</td>
|
||||||
|
<td>{{ number_format($tebuspengasingan['onepercenttawarruq'],2) }}</td>
|
||||||
|
<td>{{ number_format($tebuspengasingan['keuntungantawarruq'],2) }}</td>
|
||||||
|
<td>{{ number_format($tebuspengasingan['totalrebate'],2) }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{{ $tebuspengasingan['bilarrahn'] }}</td>
|
||||||
|
<td>Ar-Rahn</td>
|
||||||
|
<td>{{ number_format($tebuspengasingan['totalarrahn'],2) }}</td>
|
||||||
|
<td>{{ number_format($tebuspengasingan['ujraharrahn'],2) }}</td>
|
||||||
|
<td>{{ number_format($tebuspengasingan['onepercentarrahn'],2) }}</td>
|
||||||
|
<td>{{ number_format($tebuspengasingan['keuntunganarrahn'],2) }}</td>
|
||||||
|
<td> Not Applicable </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{{ $upahlama['bilkaunter'] }}</td>
|
||||||
|
<td>Bayaran Upah</td>
|
||||||
|
<td> Not Applicable </td>
|
||||||
|
<td> Not Applicable</td>
|
||||||
|
<td> Not Applicable</td>
|
||||||
|
<td>{{ number_format($upahlama['totalkaunter'],2) }}</td>
|
||||||
|
<td> Not Applicable </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{{ $upahlama['bilonline'] }}</td>
|
||||||
|
<td>Bayaran Upah Online</td>
|
||||||
|
<td> Not Applicable </td>
|
||||||
|
<td> Not Applicable</td>
|
||||||
|
<td> Not Applicable</td>
|
||||||
|
<td>{{ number_format($upahlama['totalonline'],2) }}</td>
|
||||||
|
<td> Not Applicable </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{{ $ansuran['bilangankaunter'] }}</td>
|
||||||
|
<td>Ansuran Pembiayaan</td>
|
||||||
|
<td>{{ number_format($ansuran['totalpendahuluankaunter'],2) }}</td>
|
||||||
|
<td>{{ number_format($ansuran['totalujrahkaunter'],2) }}</td>
|
||||||
|
<td>{{ number_format($ansuran['totalonepercentkaunter'],2) }}</td>
|
||||||
|
<td>{{ number_format($ansuran['totalkeuntungankaunter'],2) }}</td>
|
||||||
|
<td> Not Applicable </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{{ $ansuran['bilanganonline'] }}</td>
|
||||||
|
<td>Ansuran Pembiayaan Online</td>
|
||||||
|
<td>{{ number_format($ansuran['totalpendahuluanonline'],2) }}</td>
|
||||||
|
<td>{{ number_format($ansuran['totalujrahonline'],2) }}</td>
|
||||||
|
<td>{{ number_format($ansuran['totalonepercentonline'],2) }}</td>
|
||||||
|
<td>{{ number_format($ansuran['totalkeuntunganonline'],2) }}</td>
|
||||||
|
<td> Not Applicable </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<table id="sign">
|
||||||
|
<tr>
|
||||||
|
<td></td>
|
||||||
|
<td colspan="2"> .................................................................. </td>
|
||||||
|
<td> </td>
|
||||||
|
<td colspan="2">.................................................................. </td>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td></td>
|
||||||
|
<td colspan="2"><B> DI SEMAK</B> </td>
|
||||||
|
<td> </td>
|
||||||
|
<td colspan="2"><B>DI SAHKAN </B></td>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,119 @@
|
|||||||
|
|
||||||
|
<style>
|
||||||
|
/* Button used to open the chat form - fixed at the bottom of the page */
|
||||||
|
.open-button {
|
||||||
|
background-color: #555;
|
||||||
|
color: white;
|
||||||
|
padding: 16px 20px;
|
||||||
|
border: none;
|
||||||
|
cursor: pointer;
|
||||||
|
opacity: 0.8;
|
||||||
|
position: fixed;
|
||||||
|
bottom: 23px;
|
||||||
|
right: 28px;
|
||||||
|
width: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* The popup chat - hidden by default */
|
||||||
|
.chat-popup {
|
||||||
|
position: fixed;
|
||||||
|
bottom: -500px;
|
||||||
|
right: 15px;
|
||||||
|
border: 3px solid #f1f1f1;
|
||||||
|
z-index: 9;
|
||||||
|
transition: 1s;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Add styles to the form container */
|
||||||
|
.form-container {
|
||||||
|
/* max-width: 500px; */
|
||||||
|
padding: 10px;
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Full-width textarea */
|
||||||
|
.form-container textarea {
|
||||||
|
width: 100%;
|
||||||
|
padding: 15px;
|
||||||
|
margin: 5px 0 22px 0;
|
||||||
|
border: none;
|
||||||
|
background: #f1f1f1;
|
||||||
|
resize: none;
|
||||||
|
min-height: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* When the textarea gets focus, do something */
|
||||||
|
.form-container textarea:focus {
|
||||||
|
background-color: #ddd;
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Set a style for the submit/send button */
|
||||||
|
.form-container .btn {
|
||||||
|
background-color: #4CAF50;
|
||||||
|
color: white;
|
||||||
|
padding: 16px 20px;
|
||||||
|
border: none;
|
||||||
|
cursor: pointer;
|
||||||
|
width: 100%;
|
||||||
|
margin-bottom:10px;
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Add a red background color to the cancel button */
|
||||||
|
.form-container .cancel {
|
||||||
|
background-color: red;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Add some hover effects to buttons */
|
||||||
|
.form-container .btn:hover, .open-button:hover {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<button class="open-button" onclick="openForm()">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" d="M15.75 15.75V18m-7.5-6.75h.008v.008H8.25v-.008zm0 2.25h.008v.008H8.25V13.5zm0 2.25h.008v.008H8.25v-.008zm0 2.25h.008v.008H8.25V18zm2.498-6.75h.007v.008h-.007v-.008zm0 2.25h.007v.008h-.007V13.5zm0 2.25h.007v.008h-.007v-.008zm0 2.25h.007v.008h-.007V18zm2.504-6.75h.008v.008h-.008v-.008zm0 2.25h.008v.008h-.008V13.5zm0 2.25h.008v.008h-.008v-.008zm0 2.25h.008v.008h-.008V18zm2.498-6.75h.008v.008h-.008v-.008zm0 2.25h.008v.008h-.008V13.5zM8.25 6h7.5v2.25h-7.5V6zM12 2.25c-1.892 0-3.758.11-5.593.322C5.307 2.7 4.5 3.65 4.5 4.757V19.5a2.25 2.25 0 002.25 2.25h10.5a2.25 2.25 0 002.25-2.25V4.757c0-1.108-.806-2.057-1.907-2.185A48.507 48.507 0 0012 2.25z" />
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<div class="chat-popup" id="myForm">
|
||||||
|
<form class="form-container">
|
||||||
|
<h1>Calculator</h1>
|
||||||
|
|
||||||
|
<label for="calcamaun"><b>Amaun Pelanggan</b></label>
|
||||||
|
<input id="calcamaun" class="form-control" placeholder="Amaun" name="calcamaun" required/>
|
||||||
|
<label for="calcbayar"><b>Amaun Dibayar</b></label>
|
||||||
|
<input id="calcbayar" class="form-control" placeholder="Amaun" name="calcbayar" disabled value="0.00"/>
|
||||||
|
<label for="calcbaki"><b>Baki</b></label>
|
||||||
|
<input id="calcbaki" class="form-control" name="calcbaki" disabled value="0.00"/>
|
||||||
|
|
||||||
|
<button type="button" class="btn" onclick="kirafunc()">Kira</button>
|
||||||
|
<button type="button" class="btn cancel" onclick="closeForm()">Tutup</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
function kirafunc(){
|
||||||
|
let amaun = $('#calcamaun').val();
|
||||||
|
let bayar = $('#calcbayar').val();
|
||||||
|
let total = 0;
|
||||||
|
|
||||||
|
total = amaun - bayar;
|
||||||
|
|
||||||
|
$('#calcbaki').val(formatter.format(total));
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function openForm() {
|
||||||
|
document.getElementById("myForm").style.bottom = "0";
|
||||||
|
// document.getElementById("myForm").style.display = "block";
|
||||||
|
}
|
||||||
|
|
||||||
|
function closeForm() {
|
||||||
|
$('#calcamaun').val('');
|
||||||
|
$('#calcbaki').val('0.00');
|
||||||
|
document.getElementById("myForm").style.bottom = "-500px";
|
||||||
|
// document.getElementById("myForm").style.display = "none";
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@@ -279,6 +279,15 @@ Route::post('/laporan/auditcustomer/cetak',['as'=>'laporan.auditcustomercetak','
|
|||||||
|
|
||||||
Route::get('/laporanscantebusbarcode',['as'=>'laporanscantebusbarcode','uses'=>'KhazanahController@LaporanTebusBarcode'])->middleware('auth','khazanah');
|
Route::get('/laporanscantebusbarcode',['as'=>'laporanscantebusbarcode','uses'=>'KhazanahController@LaporanTebusBarcode'])->middleware('auth','khazanah');
|
||||||
|
|
||||||
|
//stokauditkhas
|
||||||
|
Route::get('laporan/stokauditkhas',['as'=>'laporan.stokauditkhas','uses'=>'KhazanahController@laporanStokAuditKhas'])->middleware('auth','khazanah');
|
||||||
|
Route::get('laporan/stokauditkhas/cetak',['as'=>'stokaudit.laporancetakkhas','uses'=>'KhazanahController@cetakLaporanStokAuditKhas'])->middleware('auth','khazanah');
|
||||||
|
Route::post('laporan/stokauditkhas/cetakexport',['as'=>'stokaudit.exportlaporancetakkhas','uses'=>'KhazanahController@cetakExportLaporanStokAuditKhas'])->middleware('auth','khazanah');
|
||||||
|
Route::get('laporan/rekodblast',['as'=>'stokaudit.rekodblast','uses'=>'KhazanahController@rekodblast'])->middleware('auth','khazanah');
|
||||||
|
Route::post('laporan/rekodblastexport',['as'=>'stokaudit.rekodblastexport','uses'=>'KhazanahController@rekodblastexport'])->middleware('auth','khazanah');
|
||||||
|
Route::get('laporan/rekodblastsms',['as'=>'stokaudit.rekodblastsms','uses'=>'KhazanahController@rekodblastsms'])->middleware('auth','khazanah');
|
||||||
|
Route::post('laporan/rekodblastsmsexport',['as'=>'stokaudit.rekodblastsmsexport','uses'=>'KhazanahController@rekodblastsmsexport'])->middleware('auth','khazanah');
|
||||||
|
|
||||||
//Resit Ansurans
|
//Resit Ansurans
|
||||||
Route::get('/resit/{id}',['as'=>'resit.ansuran','uses'=>'GadaianController@resit'])->middleware('auth','teller');
|
Route::get('/resit/{id}',['as'=>'resit.ansuran','uses'=>'GadaianController@resit'])->middleware('auth','teller');
|
||||||
Route::get('/resitansurans/{id}',['as'=>'resit.ansurans','uses'=>'GadaianController@resitansurans'])->middleware('auth','teller');
|
Route::get('/resitansurans/{id}',['as'=>'resit.ansurans','uses'=>'GadaianController@resitansurans'])->middleware('auth','teller');
|
||||||
@@ -377,6 +386,19 @@ Route::get('admin/poskod',['as'=>'admin.poskod','uses'=>'HomeController@poskod']
|
|||||||
|
|
||||||
Route::get('pembeliannotifykomuditi',['as'=>'beli.notifyKomoditi','uses'=>'OperasiController@notifyKomoditi'])->middleware('auth','operasi');
|
Route::get('pembeliannotifykomuditi',['as'=>'beli.notifyKomoditi','uses'=>'OperasiController@notifyKomoditi'])->middleware('auth','operasi');
|
||||||
|
|
||||||
|
//LAPORAN UJRAH ROLE KHAZANAH
|
||||||
|
|
||||||
|
Route::get('/laporan/gadaianujrah',['as'=>'laporan.gadaianujrah','uses'=>'KhazanahController@laporanGadaianUjrah'])->middleware('auth','khazanah');
|
||||||
|
Route::post('laporan/gadaianujrah/cetak',['as'=>'gadaianujrah.laporancetak','uses'=>'KhazanahController@cetakLaporanGadaiUjrah'])->middleware('auth','khazanah');
|
||||||
|
|
||||||
|
Route::get('/laporan/tebusujrah',['as'=>'laporan.tebusujrah','uses'=>'KhazanahController@laporanPenebusanUjrah'])->middleware('auth','khazanah');
|
||||||
|
Route::post('laporan/tebusujrah/cetak',['as'=>'tebusujrah.laporancetak','uses'=>'KhazanahController@cetakLaporanPenebusanUjrah'])->middleware('auth','khazanah');
|
||||||
|
|
||||||
|
Route::get('/laporan/ansuranujrah',['as'=>'laporan.ansuranujrah','uses'=>'KhazanahController@laporanAnsuranUjrah'])->middleware('auth','khazanah');
|
||||||
|
Route::post('laporan/ansuranujrah/cetak',['as'=>'ansuranujrah.laporancetak','uses'=>'KhazanahController@cetakLaporanAnsuranUjrah'])->middleware('auth','khazanah');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Route::get('supports/driver/mykad-reader',['as'=>'mykadreader.driver', function(){
|
Route::get('supports/driver/mykad-reader',['as'=>'mykadreader.driver', function(){
|
||||||
return view('supports.driver.mykad-reader.download');
|
return view('supports.driver.mykad-reader.download');
|
||||||
}])->middleware('auth','teller');
|
}])->middleware('auth','teller');
|
||||||
|
|||||||
Reference in New Issue
Block a user