Merge branch 'ujrah_master' of https://bitbucket.org/arrahn-pkb/kaunter into finadev
This commit is contained in:
@@ -48,7 +48,8 @@ class LoginController extends Controller
|
||||
|
||||
public function login()
|
||||
{
|
||||
return view('auth.login');
|
||||
// return view('auth.login');
|
||||
return view('auth.v2.login');
|
||||
}
|
||||
|
||||
public function authenticate(Request $request)
|
||||
@@ -90,7 +91,7 @@ class LoginController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
return redirect('login')->with('error', 'Oppes! You have entered invalid credentials');
|
||||
return redirect('login')->with('error', 'Oppes! You have entered invalid credentials')->withInput();
|
||||
}
|
||||
|
||||
public function loginDashboard(Request $request)
|
||||
|
||||
@@ -0,0 +1,290 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use App\Services\CustomerService;
|
||||
use Illuminate\Support\Facades\Session;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Carbon\Carbon;
|
||||
|
||||
|
||||
class CallCenterController extends Controller
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware('auth');
|
||||
}
|
||||
|
||||
public function notisperingatan(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();
|
||||
|
||||
$kelulusan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/ListOperasi/')->json();
|
||||
|
||||
$arraykelulusan = [];
|
||||
|
||||
|
||||
foreach($kelulusan as $index=>$lulus)
|
||||
{
|
||||
foreach($lulus['kelulusanall'] as $index=>$kel)
|
||||
{
|
||||
array_push($arraykelulusan,["cawangan" => $lulus['cawangan'], "cawangankod" => $lulus['cawangankod'],"namateller" => $kel['teller'], 'siri' => $kel['siri'] , "norujukan" => $kel['norujukan'], 'pinjaman' => $kel['jumpinj'],'komen' => $kel['komen'], 'nilaimarhun' => ($kel['nilaimarhun'] ?? '-'), 'berat' => ($kel['berat'] ?? '-'),'margin' => ($kel['margin'] ?? '-'), 'status' => ($kel['status'] ?? '-'), 'pelulus' => $kel['pelulus']]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return view('callcenter.notisperingatan',compact('cawangan_info','api_url','arraykelulusan'));
|
||||
}
|
||||
|
||||
public function cariansag(Request $request)
|
||||
{
|
||||
// dd($request->all());
|
||||
$request->radaktif === 'aktif';
|
||||
$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_all = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/arcc/cawangan',[
|
||||
'daritempoh' => $daritempoh,
|
||||
'hinggatempoh' => $hinggatempoh,
|
||||
])->json();
|
||||
|
||||
$senarai = [];
|
||||
foreach($cawangan_all as $cawangan){
|
||||
$kodcaw = $cawangan['kodcaw'];
|
||||
// $kodcaw = 'WCY';
|
||||
$datagadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/arcc/datagadai/'.$request->radaktif.'/'.$kodcaw ,[
|
||||
'daritempoh' => $daritempoh,
|
||||
'hinggatempoh' => $hinggatempoh,
|
||||
])->json();
|
||||
|
||||
$data = [
|
||||
'kodcaw'=>$cawangan['kodcaw'],
|
||||
'caw_name'=>$cawangan['details_caw'],
|
||||
'datagadai' => $datagadai ? $datagadai : '',
|
||||
];
|
||||
|
||||
array_push($senarai,$data);
|
||||
|
||||
// dd($data);
|
||||
}
|
||||
|
||||
return view('callcenter.listcariansag', compact(
|
||||
'kodcaw',
|
||||
'senarai',
|
||||
'daritempoh',
|
||||
'hinggatempoh',
|
||||
|
||||
));
|
||||
}
|
||||
|
||||
public function janadatanotisperingatan(Request $request)
|
||||
{
|
||||
$current = Carbon::now();
|
||||
$current = new Carbon();
|
||||
$currentNow = Carbon::now();
|
||||
$senarai = [];
|
||||
$tarikh_savedaftarnotis = $current->toDateString();
|
||||
$daritempoh = $request->daritempoh;
|
||||
$hinggatempoh = $request->hinggatempoh;
|
||||
$kodcaw = $request->kodcaw;
|
||||
$selected_caw = $request->caw;
|
||||
// dd($selected_caw);
|
||||
|
||||
$getbatchnotis=Http::withOptions(['verify' => config('app.api_verify')])->get( config('api.url').'/arcc/getbatchnotis',[
|
||||
'daritempoh' => $daritempoh,
|
||||
'hinggatempoh' => $hinggatempoh,
|
||||
])->json();
|
||||
|
||||
$newbatchnotis=$getbatchnotis;
|
||||
|
||||
if(!empty($selected_caw))
|
||||
{
|
||||
foreach($selected_caw as $index=>$caw){
|
||||
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $caw)->json();
|
||||
// dd($cawangan_info);
|
||||
$insertdatagadai = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url').'/arcc/insertdatagadai/aktif/'.$caw ,[
|
||||
'daritempoh' => $daritempoh,
|
||||
'hinggatempoh' => $hinggatempoh,
|
||||
'kodcaw' => $caw,
|
||||
'notisid' => $newbatchnotis
|
||||
])->json();
|
||||
|
||||
$data = [
|
||||
'kodcaw'=>$caw,
|
||||
'caw_name'=>$cawangan_info['details_caw'],
|
||||
'datagadai' => $insertdatagadai ? $insertdatagadai : '',
|
||||
];
|
||||
|
||||
array_push($senarai,$data);
|
||||
}
|
||||
}
|
||||
return redirect()->route('arcc.notisperingatan')->with('success','Berjaya Daftar Notis Peringatan.');
|
||||
|
||||
}
|
||||
|
||||
public function rekodnotisperingatan()
|
||||
{
|
||||
$auth_user = Auth::user();
|
||||
$api_url = config('api.url');
|
||||
|
||||
$arrayinfo = [];
|
||||
|
||||
// $notis = Notis::select('tarikh_notis','id')
|
||||
// ->groupBy('tarikh_notis')
|
||||
// ->get();
|
||||
$notis = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/arcc/senarainotisperingatan')->json();
|
||||
// dd($notis);
|
||||
foreach($notis as $info)
|
||||
{
|
||||
$getcawnotis = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/arcc/getcawnotis/'.$info['id'])->json();
|
||||
|
||||
array_push($arrayinfo, ['info'=> $info,'cawnotis' => $getcawnotis]);
|
||||
}
|
||||
// dd($arrayinfo);
|
||||
return view('callcenter.rekodnotisperingatan',compact('notis','arrayinfo'));
|
||||
}
|
||||
|
||||
public function detailnotisperingatan($notisid)
|
||||
{
|
||||
$auth_user = Auth::user();
|
||||
$api_url = config('api.url');
|
||||
|
||||
$senarai = [];
|
||||
|
||||
$detailnotis = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/arcc/getcawnotis/'.$notisid)->json();
|
||||
foreach($detailnotis as $info)
|
||||
{
|
||||
$getcawnotisbycaw = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/arcc/getcawnotisbycaw', [
|
||||
'kodcaw' => $info[0]['kodcaw'],
|
||||
'notisid' => $notisid
|
||||
])->json();
|
||||
|
||||
$data = [
|
||||
'detailnotis' => $info ? $info : '',
|
||||
'getcawnotisbycaw' => $getcawnotisbycaw ? $getcawnotisbycaw : '',
|
||||
];
|
||||
|
||||
array_push($senarai,$data);
|
||||
}
|
||||
return view('callcenter.detailnotisperingatan',compact('detailnotis','senarai','notisid'));
|
||||
}
|
||||
|
||||
public function bycawnotisperingatan($kodcaw,$notisid, 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/'. $kodcaw)->json();
|
||||
$bycawnotisperingatan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/arcc/bycawnotisperingatan/'.$kodcaw.'/'.$notisid)->json();
|
||||
|
||||
if($request->type == 'whatsapp')
|
||||
{
|
||||
|
||||
$blastwhatsapp = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url').'/arcc/blastwasapbysag/'.$auth_user['cawangan'],
|
||||
['kodcaw' => $kodcaw,'notisid' => $notisid, 'namapengguna' => $auth_user['name'],])->json();
|
||||
if($blastwhatsapp == 'success'){
|
||||
return redirect()->route('arcc.bycawnotisperingatan',['kodcaw' => $kodcaw, 'notisid' => $notisid])
|
||||
->with('success','Blast Whatsapp Dalam Proses.');
|
||||
}
|
||||
elseif($blastwhatsapp == 'failed'){
|
||||
return redirect()->route('arcc.bycawnotisperingatan',['kodcaw' => $kodcaw, 'notisid' => $notisid])
|
||||
->with('failed','Blast Whatsapp Tidak Berjaya, Sila Semak Semula Rekod Blasted.');
|
||||
}
|
||||
|
||||
}
|
||||
return view('callcenter.bycawdetailnotisperingatan',compact('cawangan_info','bycawnotisperingatan','kodcaw','notisid'));
|
||||
}
|
||||
|
||||
public function blastpertama($kodcaw,$notisid,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/'. $kodcaw)->json();
|
||||
$bycawnotisperingatan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/arcc/bycawnotisperingatan/'.$kodcaw.'/'.$notisid)->json();
|
||||
if($request->type == 'whatsapp')
|
||||
{
|
||||
|
||||
$blastwhatsapp = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url').'/arcc/blastwasapbysag',
|
||||
['kodcaw' => $kodcaw,'notisid' => $notisid, 'namapengguna' => $auth_user['name'],])->json();
|
||||
if($blastwhatsapp == 'success'){
|
||||
return redirect()->route('arcc.bycawnotisperingatan',['kodcaw' => $kodcaw, 'notisid' => $notisid])
|
||||
->with('success','Blast Whatsapp Dalam Proses.');
|
||||
}
|
||||
elseif($blastwhatsapp == 'failed'){
|
||||
return redirect()->route('arcc.bycawnotisperingatan',['kodcaw' => $kodcaw, 'notisid' => $notisid])
|
||||
->with('failed','Blast Whatsapp Tidak Berjaya, Sila Semak Semula Rekod Blasted.');
|
||||
}
|
||||
|
||||
}
|
||||
return view('callcenter.bycawdetailnotisperingatan',compact('cawangan_info','bycawnotisperingatan','kodcaw','notisid'));
|
||||
}
|
||||
|
||||
public function pelanggan()
|
||||
{
|
||||
$search = false;
|
||||
|
||||
$api_url = config('api.url');
|
||||
$auth_user = Auth::user();
|
||||
$idtype = 'nokp';
|
||||
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
$bank = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/bank')->json();
|
||||
if($auth_user->roles == 'admin'){
|
||||
return view('admin.customer_index',compact('search','cawangan_info','bank','api_url','idtype','auth_user'));
|
||||
}else{
|
||||
return view('callcenter.index',compact('search','cawangan_info','bank','api_url','idtype','auth_user'));
|
||||
}
|
||||
}
|
||||
|
||||
public function search(Request $request){
|
||||
// dd($request->all());
|
||||
$noic = $request->noic;
|
||||
$idtype = $request->customerIDType;
|
||||
$kodcaw = $request->cawangan;
|
||||
Session::put('noic', $noic);
|
||||
Session::put('kodcaw', $kodcaw);
|
||||
|
||||
$api_url = config('api.url');
|
||||
$auth_user = Auth::user();
|
||||
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $kodcaw)->json();
|
||||
$bank = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/bank')->json();
|
||||
$customer_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/'. $noic)->json();
|
||||
|
||||
$request->session()->forget('page_reload');
|
||||
$request->session()->forget('norujukan');
|
||||
|
||||
$search = true;
|
||||
|
||||
if($customer_info){
|
||||
Session::put('customer_info_arcc',$customer_info);
|
||||
return redirect()->route('arcc.customer_info', ['customer_info' => $customer_info,'cawangan_info'=>$cawangan_info,'api_url'=>$api_url]);
|
||||
}else{
|
||||
return view('arcc.pelanggan',compact('search','noic','cawangan_info','bank','api_url','idtype'));
|
||||
}
|
||||
}
|
||||
|
||||
public function info(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/'. Session::get('kodcaw'))->json();
|
||||
$customer_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/'. Session::get('noic'))->json();
|
||||
|
||||
$bakilelong = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/bakilelong/cawangan/' . Session::get('kodcaw') . '/' . Session::get('noic') . '/baki')->json();
|
||||
$rugilelong = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/bakilelong/cawangan/' . Session::get('kodcaw') . '/' . Session::get('noic') . '/rugi')->json();
|
||||
|
||||
$negeri = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/negeri/')->json();
|
||||
|
||||
$request->session()->forget('page_reload');
|
||||
$request->session()->forget('norujukan');
|
||||
|
||||
return view('callcenter.' . $cawangan_info['version'] . '.info',compact('cawangan_info','api_url','customer_info','bakilelong','rugilelong','negeri'));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -40,7 +40,8 @@ class CustomersController extends Controller
|
||||
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
$bank = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/bank')->json();
|
||||
$blacklist_search = false;
|
||||
return view('customers.index',compact('search','blacklist_search','cawangan_info','bank','api_url','idtype'));
|
||||
|
||||
return view('customers.' . $cawangan_info['version'] . '.index',compact('search','blacklist_search','cawangan_info','bank','api_url','idtype'));
|
||||
}
|
||||
|
||||
public function info(Request $request){
|
||||
@@ -59,11 +60,14 @@ class CustomersController extends Controller
|
||||
$request->session()->forget('page_reload');
|
||||
$request->session()->forget('norujukan');
|
||||
|
||||
$customer_page = ($cawangan_info['version'] == 'v1') ? 'customers.v1.info' : 'customers.v2.info';
|
||||
|
||||
|
||||
if($request->tebus_auto_tawarruq_berjaya === 'true'){
|
||||
$request->session()->flash('activate_tab', 'SAG_baru');
|
||||
}
|
||||
|
||||
return view('customers.info',compact('cawangan_info','api_url','customer_info','bakilelong','rugilelong','min_komoditi'));
|
||||
return view($customer_page,compact('cawangan_info','api_url','customer_info','bakilelong','rugilelong','min_komoditi'));
|
||||
}
|
||||
|
||||
public function search(Request $request){
|
||||
@@ -92,7 +96,7 @@ class CustomersController extends Controller
|
||||
if($customer_info){
|
||||
if($blacklist){
|
||||
$blacklist_search = true;
|
||||
return view('customers.index',compact('blacklist_search','customer_info','search','noic','cawangan_info','bank','api_url','idtype'));
|
||||
return view('customers.' . $cawangan_info['version'] .'.index',compact('blacklist_search','customer_info','search','noic','cawangan_info','bank','api_url','idtype'));
|
||||
}else{
|
||||
Session::put('customer_info',$customer_info);
|
||||
return redirect()->route('customer_info')->with( ['customer_info' => $customer_info,'cawangan_info'=>$cawangan_info,'api_url'=>$api_url]);
|
||||
@@ -100,9 +104,9 @@ class CustomersController extends Controller
|
||||
}else{
|
||||
if($blacklist){
|
||||
$blacklist_search = true;
|
||||
return view('customers.index',compact('blacklist_search','customer_info','search','noic','cawangan_info','bank','api_url','idtype'));
|
||||
return view('customers.' . $cawangan_info['version'] . '.index',compact('blacklist_search','customer_info','search','noic','cawangan_info','bank','api_url','idtype'));
|
||||
}else{
|
||||
return view('customers.index',compact('blacklist_search','customer_info','search','noic','cawangan_info','bank','api_url','idtype'));
|
||||
return view('customers.' . $cawangan_info['version'] . '.index',compact('blacklist_search','customer_info','search','noic','cawangan_info','bank','api_url','idtype'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ class GadaianController extends Controller
|
||||
|
||||
|
||||
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
return view('gadaian.index',compact('customer_info','limit_pinjaman_semasa','cawangan_info','norujukan','api_url','current'));
|
||||
return view('gadaian.' . $cawangan_info['version'] . '.index',compact('customer_info','limit_pinjaman_semasa','cawangan_info','norujukan','api_url','current'));
|
||||
}
|
||||
|
||||
public function edit(Request $request,$norujukan){
|
||||
@@ -119,7 +119,7 @@ class GadaianController extends Controller
|
||||
$auth_user = Auth::user();
|
||||
|
||||
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
return view('gadaian.edit',compact('customer_info','gadaiannorujukan','limit_pinjaman_semasa','cawangan_info','norujukan','api_url'));
|
||||
return view('gadaian.' . $cawangan_info['version'] . '.edit',compact('customer_info','gadaiannorujukan','limit_pinjaman_semasa','cawangan_info','norujukan','api_url'));
|
||||
}
|
||||
|
||||
public function editmarhun(Request $request){
|
||||
@@ -348,7 +348,13 @@ class GadaianController extends Controller
|
||||
$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_ujrah_2',compact('gadai_detail','customer_detail','marhun_detail','cawangan_detail','api_url','pembayaran_segera','auth_username','mutu', 'kadar_ujrah'));
|
||||
|
||||
if($gadai_detail['tagbaru'] == 1)
|
||||
{
|
||||
return view('print.sag_ujrah_2',compact('gadai_detail','customer_detail','marhun_detail','cawangan_detail','api_url','pembayaran_segera','auth_username','mutu', 'kadar_ujrah'));
|
||||
}else{
|
||||
return view('print.sag',compact('gadai_detail','customer_detail','marhun_detail','cawangan_detail','api_url','pembayaran_segera','auth_username','mutu'));
|
||||
}
|
||||
}
|
||||
|
||||
public function resit($id)
|
||||
@@ -376,7 +382,12 @@ class GadaianController extends Controller
|
||||
if(sizeof($wakil) != 0)
|
||||
$wakil = $wakil[0];
|
||||
|
||||
return view('print.resitansuran',compact('transaction','gadai','customers_info','wakil'));
|
||||
if($gadai['tagbaru'] == 1) {
|
||||
return view('print.resitansuran_ujrah',compact('transaction','gadai','customers_info','wakil'));
|
||||
} else {
|
||||
return view('print.resitansuran',compact('transaction','gadai','customers_info','wakil'));
|
||||
// return view('print.resittebus',compact('transaction','gadai','cawangan_info','customers_info','penebusan','wakil','totaltransaction','totalBayaranAnsuran'));
|
||||
}
|
||||
}
|
||||
|
||||
public function resitansurans($id)
|
||||
@@ -397,6 +408,8 @@ class GadaianController extends Controller
|
||||
// if(sizeof($customers_info) != 0)
|
||||
// $customers_info = $customers_info[0];
|
||||
|
||||
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
|
||||
$wakil = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/getwakil/' . $auth_user['cawangan'] . '/code/' . $transaction['nowakil'])->json();
|
||||
|
||||
if(sizeof($wakil) != 0)
|
||||
@@ -405,7 +418,8 @@ class GadaianController extends Controller
|
||||
if($gadai['tagbaru'] == 1) {
|
||||
return view('print.resitansuran_ujrah',compact('transaction','gadai','customers_info','wakil'));
|
||||
} else {
|
||||
return view('print.resittebus',compact('transaction','gadai','cawangan_info','customers_info','penebusan','wakil','totaltransaction','totalBayaranAnsuran'));
|
||||
return view('print.resitansuran',compact('transaction','gadai','customers_info','wakil'));
|
||||
// return view('print.resittebus',compact('transaction','gadai','cawangan_info','customers_info','penebusan','wakil','totaltransaction','totalBayaranAnsuran'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -506,6 +520,7 @@ class GadaianController extends Controller
|
||||
// if(sizeof($customers_info) != 0)
|
||||
// $customers_info = $customers_info[0];
|
||||
|
||||
$transaction_tebus = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/transaction/one/'. $id)->json();
|
||||
|
||||
$penebusan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/listpenebusanhistory/' . $auth_user['cawangan'],[ "norujukan" => $id])->json();
|
||||
|
||||
@@ -520,7 +535,7 @@ class GadaianController extends Controller
|
||||
|
||||
$khazanah_user = User::where('role_harian', 'khazanah')->where('cawangan', $auth_user['cawangan'])->select('name')->first();
|
||||
|
||||
return view('print.resittebusautotawarruq',compact('transaction','gadai','customers_info','penebusan','wakil','totaltransaction','transaction_keuntungan', 'khazanah_user'));
|
||||
return view('print.resittebusautotawarruq',compact('transaction_tebus', 'transaction','gadai','customers_info','penebusan','wakil','totaltransaction','transaction_keuntungan', 'khazanah_user'));
|
||||
}
|
||||
|
||||
public function resittebus($id)
|
||||
@@ -719,7 +734,7 @@ class GadaianController extends Controller
|
||||
if($history == $gadai[0][0]['historygadaian'])
|
||||
$history = 0;
|
||||
else{
|
||||
array_push($arrayhist,["hargajualan" => ((isset($gadai[0][0]['hargajualan'])) ? $gadai[0][0]['hargajualan'] : ''), "pinjaman" => ((isset($tebus[0])) ? $tebus[0]['pinjaman'] : 0),"norujukan" => $history,"jenistebus" => ((isset($tebus[0])) ? $tebus[0]['jenistebus'] : 0),"jbg" => ((isset($tebus[0])) ? $tebus[0]['jbg'] : 0),"t_tebus" => ((isset($tebus[0])) ? $tebus[0]['t_tebus'] : 0)]);
|
||||
array_push($arrayhist,["tagbaru" => ((isset($gadai[0][0]['tagbaru'])) ? $gadai[0][0]['tagbaru'] : 0),"hargajualan" => ((isset($gadai[0][0]['hargajualan'])) ? $gadai[0][0]['hargajualan'] : ''), "pinjaman" => ((isset($tebus[0])) ? $tebus[0]['pinjaman'] : 0),"norujukan" => $history,"jenistebus" => ((isset($tebus[0])) ? $tebus[0]['jenistebus'] : 0),"jbg" => ((isset($tebus[0])) ? $tebus[0]['jbg'] : 0),"t_tebus" => ((isset($tebus[0])) ? $tebus[0]['t_tebus'] : 0)]);
|
||||
$history = $gadai[0][0]['historygadaian'];
|
||||
}
|
||||
}
|
||||
@@ -734,7 +749,7 @@ class GadaianController extends Controller
|
||||
])->json();
|
||||
|
||||
|
||||
array_push($arrayhist,["hargajualan" => ((isset($gadai[0][0]['hargajualan'])) ? $gadai[0][0]['hargajualan'] : ''),"pinjaman" => ((isset($tebus[0])) ? $tebus[0]['pinjaman'] : 0),"norujukan" => $norujukan,"jenistebus" => ((isset($tebus[0])) ? $tebus[0]['jenistebus'] : 0),"jbg" => ((isset($tebus[0])) ? $tebus[0]['jbg'] : 0),"t_tebus" => ((isset($tebus[0])) ? $tebus[0]['t_tebus'] : 0)]);
|
||||
array_push($arrayhist,["tagbaru" => ((isset($gadai[0][0]['tagbaru'])) ? $gadai[0][0]['tagbaru'] : 0), "hargajualan" => ((isset($gadai[0][0]['hargajualan'])) ? $gadai[0][0]['hargajualan'] : ''),"pinjaman" => ((isset($tebus[0])) ? $tebus[0]['pinjaman'] : 0),"norujukan" => $norujukan,"jenistebus" => ((isset($tebus[0])) ? $tebus[0]['jenistebus'] : 0),"jbg" => ((isset($tebus[0])) ? $tebus[0]['jbg'] : 0),"t_tebus" => ((isset($tebus[0])) ? $tebus[0]['t_tebus'] : 0)]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -159,7 +159,7 @@ class KhazanahController extends Controller
|
||||
if($auth_user->roles == 'admin'){
|
||||
return view('admin.customer_info',compact('cawangan_info','api_url','customer_info','bakilelong','rugilelong','negeri'));
|
||||
}else{
|
||||
return view('khazanah.info',compact('cawangan_info','api_url','customer_info','bakilelong','rugilelong','negeri'));
|
||||
return view('khazanah.' . $cawangan_info['version'] . '.info',compact('cawangan_info','api_url','customer_info','bakilelong','rugilelong','negeri'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ class PenebusanController extends Controller
|
||||
|
||||
$nilaihargasemasa = $this->tukaranhargaemas($norujukan);
|
||||
|
||||
return view('penebusan.index',compact('cawangan_info','api_url','gadai','marhun','nama','nilaihargasemasa'));
|
||||
return view('penebusan.' . $cawangan_info['version'] . '.index',compact('cawangan_info','api_url','gadai','marhun','nama','nilaihargasemasa'));
|
||||
}
|
||||
|
||||
public function tebuspenuh(Request $request)
|
||||
@@ -88,7 +88,8 @@ class PenebusanController extends Controller
|
||||
'teller' => $request->teller,
|
||||
'nowakil' => $request->nowakil,
|
||||
'duitpelanggan' => $request->duitpelanggan,
|
||||
'bakipelanggan' => $request->bakipelanggan
|
||||
'bakipelanggan' => $request->bakipelanggan,
|
||||
'jeniskeuntungan' => $request->jeniskeuntungan
|
||||
])->json();
|
||||
|
||||
if($updategadai == 'success')
|
||||
@@ -125,11 +126,11 @@ class PenebusanController extends Controller
|
||||
'keluar' => $keluar,
|
||||
'masuk' => $totalmasuk,
|
||||
'bakiakhir' => $bakiakhir
|
||||
]);
|
||||
])->json();
|
||||
|
||||
event(new KeuntunganNotify('lulus',Auth::user()->cawangan));
|
||||
|
||||
return response()->json($updateTunai,200);
|
||||
return response()->json($updategadai,200);
|
||||
|
||||
}else{
|
||||
return response('error');
|
||||
@@ -429,7 +430,7 @@ class PenebusanController extends Controller
|
||||
'marhun' => $request->marhun,
|
||||
'jenisbayarantebus' => $request->jenisbayarantebus,
|
||||
'teller' => $request->teller,
|
||||
'jeniskeuntungan' => 'asal',
|
||||
'jeniskeuntungan' => $request->jeniskeuntungan,
|
||||
'totalbayaran' => $request->totalbayaran,
|
||||
"bayaranpelanggan" => $request->bayaran,
|
||||
"bakipelanggan" => $request->bakipelanggan,
|
||||
@@ -502,7 +503,8 @@ class PenebusanController extends Controller
|
||||
'pembiayaan' => $request->pinjaman,
|
||||
'nilaimarhun' => $total_nilai_marhun,
|
||||
'kadarujrah' => $request->kadarkeuntungan,
|
||||
'margin' => ($margin_pinjaman*100)
|
||||
'margin' => ($margin_pinjaman*100),
|
||||
'kodcaw' => Auth::user()->cawangan
|
||||
])->json();
|
||||
|
||||
$keuntungan_sebln = $onepercent['keuntungan'];
|
||||
|
||||
@@ -0,0 +1,285 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Services\ImbangdugaServices as ImbanganDuga;
|
||||
|
||||
//Events
|
||||
use App\Events\StatusLiked;
|
||||
use App\Events\NotifikasiPembayaran;
|
||||
use App\Events\OperasiNotice;
|
||||
use App\Events\PendahuluanSerahan;
|
||||
use App\Events\NotifikasiKelulusan;
|
||||
use App\Events\NotifikasiUbahHapus;
|
||||
use App\Events\NotifikasiAGH;
|
||||
use App\Events\NotifikasiPetiBesi;
|
||||
|
||||
use App\User;
|
||||
use App\Cawangan;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Session;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
use Carbon\Carbon;
|
||||
use PDF;
|
||||
use DateTime;
|
||||
|
||||
class WakilController extends Controller
|
||||
{
|
||||
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware('auth');
|
||||
}
|
||||
|
||||
public function indexwakil()
|
||||
{
|
||||
$search = false;
|
||||
|
||||
$api_url = config('api.url');
|
||||
$auth_user = Auth::user();
|
||||
$idtype = 'nokp';
|
||||
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/' . $auth_user['cawangan'])->json();
|
||||
$bank = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/bank')->json();
|
||||
|
||||
return view('khazanah.wakil', compact('search', 'cawangan_info', 'bank', 'api_url', 'idtype', 'auth_user'));
|
||||
}
|
||||
|
||||
public function suratwakil(Request $request)
|
||||
{
|
||||
$noic = $request->noic;
|
||||
// $idtype = $request->customerIDType;
|
||||
Session::put('noic', $noic);
|
||||
$api_url = config('api.url');
|
||||
$auth_user = Auth::user();
|
||||
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/' . $auth_user['cawangan'])->json();
|
||||
|
||||
$bank = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/bank')->json();
|
||||
$customer_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/' . $noic)->json();
|
||||
|
||||
|
||||
$request->session()->forget('page_reload');
|
||||
$request->session()->forget('norujukan');
|
||||
|
||||
$search = true;
|
||||
|
||||
if ($customer_info) {
|
||||
Session::put('customer_info_khazanah', $customer_info);
|
||||
|
||||
return redirect()->route('khazanah.sag_info')
|
||||
->with([
|
||||
'customer_info' => $customer_info,
|
||||
'cawangan_info' => $cawangan_info,
|
||||
'api_url' => $api_url
|
||||
]);
|
||||
} else {
|
||||
|
||||
return view('khazanah.wakil', compact('search', 'noic', 'cawangan_info', 'bank', 'api_url', 'idtype'));
|
||||
}
|
||||
}
|
||||
|
||||
public function sagInfo(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();
|
||||
$customer_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/' . Session::get('noic'))->json();
|
||||
|
||||
|
||||
$bakilelong = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/bakilelong/cawangan/' . $auth_user['cawangan'] . '/' . Session::get('noic') . '/baki')->json();
|
||||
$rugilelong = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/bakilelong/cawangan/' . $auth_user['cawangan'] . '/' . Session::get('noic') . '/rugi')->json();
|
||||
|
||||
$negeri = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/negeri/')->json();
|
||||
|
||||
|
||||
|
||||
$request->session()->forget('page_reload');
|
||||
$request->session()->forget('norujukan');
|
||||
|
||||
|
||||
return view('khazanah.saginfo', compact('cawangan_info', 'api_url', 'customer_info', 'bakilelong', 'rugilelong', 'negeri'));
|
||||
}
|
||||
|
||||
public function printSuratWakil($norujukan, Request $request)
|
||||
{
|
||||
|
||||
$api_url = config('api.url');
|
||||
$auth_user = Auth::user();
|
||||
$current = Carbon::now();
|
||||
$current = new Carbon();
|
||||
$t_cetak = $current->toDateString();
|
||||
|
||||
$tarikh_cetak = date('d/m/Y');
|
||||
|
||||
$check_norujukan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/checksurat/' . $auth_user['cawangan'] . '/' . $norujukan)->json();
|
||||
if ($check_norujukan == $norujukan) {
|
||||
//get details gadai && detail customer
|
||||
$update_wakil = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url') . '/api/updatewakil/' . $auth_user['cawangan'] . '/' . $norujukan)->json();
|
||||
|
||||
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/' . $norujukan)->json();
|
||||
$gadai_details = $gadai[0][0];
|
||||
|
||||
$noic = $gadai_details['nokp'];
|
||||
$customer_detail = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/' . $noic)->json();
|
||||
|
||||
$cawangan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/detail/' . $auth_user['cawangan'])->json();
|
||||
$cawangan_detail = $cawangan[0];
|
||||
|
||||
$nosiri = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/nosiri/wakil/' . $auth_user['cawangan'] . '/' . $norujukan)->json();
|
||||
|
||||
// $nosiri = $getNoSiri[0];
|
||||
// $pdf=PDF::loadView('print.surat_wakil', compact('customer_detail','current','auth_user','api_url','cawangan_detail'))
|
||||
// ->setPaper('A4','potrait');
|
||||
// return $pdf->download('notislelong_'.'.pdf');
|
||||
// dd($gadai_details);
|
||||
|
||||
|
||||
return view('print.surat_wakil', compact('customer_detail', 'current', 'auth_user', 'api_url', 'cawangan_detail', 'tarikh_cetak', 'gadai_details', 'noic', 'nosiri'));
|
||||
} else {
|
||||
|
||||
// insert into wakil_surat
|
||||
|
||||
$current_year = substr($current->year, 2, 2);
|
||||
$current_month = sprintf("%02d", $current->month);
|
||||
$current_day = sprintf("%02d", $current->day);
|
||||
|
||||
|
||||
$surat_wakil = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/wakil/' . $auth_user['cawangan'] . '/' . $t_cetak)->json();
|
||||
if ($surat_wakil) {
|
||||
$new_suratid = $surat_wakil['nosiri'] + 1;
|
||||
} else {
|
||||
$new_suratid = 1;
|
||||
}
|
||||
|
||||
|
||||
$new_surat = sprintf("%04d", $new_suratid);
|
||||
|
||||
$no_surat = 'WK' . $current_year . $current_month . $current_day . '-' . $new_surat;
|
||||
Session::put('norujukan', $norujukan);
|
||||
Session::put('no_surat', $no_surat);
|
||||
Session::put('page_reload', true);
|
||||
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url') . '/api/wakil/' . $auth_user['cawangan'], [
|
||||
'nosiri' => $new_suratid,
|
||||
'no_surat' => $no_surat,
|
||||
'norujukan' => $norujukan,
|
||||
't_cetak' => $t_cetak,
|
||||
|
||||
]);
|
||||
|
||||
//get details gadai && detail customer
|
||||
|
||||
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/' . $norujukan)->json();
|
||||
$gadai_details = $gadai[0][0];
|
||||
|
||||
$noic = $gadai_details['nokp'];
|
||||
$customer_detail = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/' . $noic)->json();
|
||||
|
||||
$cawangan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/detail/' . $auth_user['cawangan'])->json();
|
||||
|
||||
$cawangan_detail = $cawangan[0];
|
||||
|
||||
$nosiri = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/nosiri/wakil/' . $auth_user['cawangan'] . '/' . $norujukan)->json();
|
||||
|
||||
// $pdf=PDF::loadView('print.surat_wakil', compact('customer_detail','current','auth_user','api_url','cawangan_detail'))
|
||||
// ->setPaper('A4','potrait');
|
||||
// return $pdf->download('notislelong_'.'.pdf');
|
||||
|
||||
return view('print.surat_wakil', compact('customer_detail', 'current', 'auth_user', 'api_url', 'cawangan_detail', 'tarikh_cetak', 'gadai_details', 'noic', 'nosiri'));
|
||||
}
|
||||
}
|
||||
|
||||
public function printSuratWakilPenilai($norujukan, Request $request)
|
||||
{
|
||||
|
||||
$api_url = config('api.url');
|
||||
$auth_user = Auth::user();
|
||||
$current = Carbon::now();
|
||||
$current = new Carbon();
|
||||
$t_cetak = $current->toDateString();
|
||||
|
||||
$tarikh_cetak = date('d-m-Y');
|
||||
|
||||
$check_norujukan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/checksurat/' . $auth_user['cawangan'] . '/' . $norujukan)->json();
|
||||
|
||||
if ($check_norujukan == $norujukan) {
|
||||
|
||||
//get details gadai && detail customer
|
||||
|
||||
$update_wakil = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url') . '/api/updatewakil/' . $auth_user['cawangan'] . '/' . $norujukan)->json();
|
||||
|
||||
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/' . $norujukan)->json();
|
||||
$gadai_details = $gadai[0][0];
|
||||
|
||||
$noic = $gadai_details['nokp'];
|
||||
$customer_detail = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/' . $noic)->json();
|
||||
|
||||
$cawangan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/detail/' . $auth_user['cawangan'])->json();
|
||||
|
||||
$cawangan_detail = $cawangan[0];
|
||||
|
||||
$nosiri = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/nosiri/wakil/' . $auth_user['cawangan'] . '/' . $norujukan)->json();
|
||||
|
||||
// $pdf=PDF::loadView('print.surat_wakil', compact('customer_detail','current','auth_user','api_url','cawangan_detail'))
|
||||
// ->setPaper('A4','potrait');
|
||||
// return $pdf->download('notislelong_'.'.pdf');
|
||||
// dd($gadai_details);
|
||||
|
||||
|
||||
return view('print.surat_wakil', compact('customer_detail', 'current', 'auth_user', 'api_url', 'cawangan_detail', 'tarikh_cetak', 'gadai_details', 'noic', 'nosiri'));
|
||||
} else {
|
||||
|
||||
// insert into wakil_surat
|
||||
|
||||
$current_year = substr($current->year, 2, 2);
|
||||
$current_month = sprintf("%02d", $current->month);
|
||||
$current_day = sprintf("%02d", $current->day);
|
||||
|
||||
|
||||
$surat_wakil = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/wakil/' . $auth_user['cawangan'] . '/' . $t_cetak)->json();
|
||||
if ($surat_wakil) {
|
||||
$new_suratid = $surat_wakil['nosiri'] + 1;
|
||||
} else {
|
||||
$new_suratid = 1;
|
||||
}
|
||||
|
||||
|
||||
$new_surat = sprintf("%04d", $new_suratid);
|
||||
|
||||
$no_surat = 'WK' . $current_year . $current_month . $current_day . '-' . $new_surat;
|
||||
Session::put('norujukan', $norujukan);
|
||||
Session::put('no_surat', $no_surat);
|
||||
Session::put('page_reload', true);
|
||||
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url') . '/api/wakil/' . $auth_user['cawangan'], [
|
||||
'nosiri' => $new_suratid,
|
||||
'no_surat' => $no_surat,
|
||||
'norujukan' => $norujukan,
|
||||
't_cetak' => $t_cetak,
|
||||
|
||||
]);
|
||||
|
||||
//get details gadai && detail customer
|
||||
|
||||
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/' . $norujukan)->json();
|
||||
$gadai_details = $gadai[0][0];
|
||||
|
||||
$noic = $gadai_details['nokp'];
|
||||
$customer_detail = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/' . $noic)->json();
|
||||
|
||||
$cawangan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/detail/' . $auth_user['cawangan'])->json();
|
||||
|
||||
$cawangan_detail = $cawangan[0];
|
||||
|
||||
$nosiri = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/nosiri/wakil/' . $auth_user['cawangan'] . '/' . $norujukan)->json();
|
||||
|
||||
|
||||
// $pdf=PDF::loadView('print.surat_wakil', compact('customer_detail','current','auth_user','api_url','cawangan_detail'))
|
||||
// ->setPaper('A4','potrait');
|
||||
// return $pdf->download('notislelong_'.'.pdf');
|
||||
|
||||
return view('print.surat_wakil', compact('customer_detail', 'current', 'auth_user', 'api_url', 'cawangan_detail', 'tarikh_cetak', 'gadai_details', 'noic', 'nosiri'));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -68,6 +68,7 @@ class Kernel extends HttpKernel
|
||||
'penilai' => 'App\Http\Middleware\Penilai',
|
||||
'khazanah' => 'App\Http\Middleware\Khazanah',
|
||||
'operasi' => 'App\Http\Middleware\Operasi',
|
||||
'callcenter' => 'App\Http\Middleware\callcenter',
|
||||
'admin' => 'App\Http\Middleware\Admin',
|
||||
'audit' => 'App\Http\Middleware\Audit',
|
||||
'masteradmin' => 'App\Http\Middleware\Masteradmin',
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Closure;
|
||||
|
||||
class CallCenter
|
||||
{
|
||||
/**
|
||||
* Handle an incoming request.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param \Closure $next
|
||||
* @return mixed
|
||||
*/
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
if(Auth::check() && (Auth::user()->roles == 'callcenter')){
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
return redirect('/login');
|
||||
}
|
||||
}
|
||||
Vendored
+57
File diff suppressed because one or more lines are too long
Binary file not shown.
|
After Width: | Height: | Size: 866 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 554 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 26 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 159 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 585 B |
@@ -0,0 +1,159 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" itemscope="" itemtype="http://schema.org/WebPage">
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<link rel="icon" href="{{ asset('img/icon_pkb.png') }}">
|
||||
|
||||
<title>arOS 2.0</title>
|
||||
|
||||
<style>
|
||||
@keyframes slide {
|
||||
from {
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
to {
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
}
|
||||
|
||||
.logos {
|
||||
overflow: hidden;
|
||||
padding: 25px 0;
|
||||
white-space: nowrap;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.logos-slide {
|
||||
display: inline-block;
|
||||
animation: 120s slide infinite linear;
|
||||
}
|
||||
|
||||
.logos-slide img {
|
||||
height: 75px;
|
||||
margin: 0 75px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script src="{{ asset('js/jquery.min.js') }}"></script>
|
||||
|
||||
<link id="pagestyle" href="{{ asset('css/login-v2.css') }}" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
|
||||
<body class="sign-in-cover">
|
||||
|
||||
<div class="container position-sticky z-index-sticky top-0">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<nav class="navbar navbar-expand-lg blur blur-rounded top-0 z-index-3 shadow position-absolute my-3 py-2 start-0 end-0 mx-4">
|
||||
<div class="container-fluid px-0">
|
||||
<a class="navbar-brand font-weight-bolder ms-sm-3" rel="tooltip" title="Designed and Coded by Creative Tim" data-placement="bottom">
|
||||
ar-rahn Online System
|
||||
</a>
|
||||
<div class="collapse navbar-collapse w-100 pt-3 pb-2 py-lg-0" id="navigation">
|
||||
<ul class="navbar-nav navbar-nav-hover" style="margin-left: auto">
|
||||
<li class="nav-item dropdown dropdown-hover mx-2">
|
||||
<a href="https://www.pkb.net.my/" target="_blank">pkb.net.my</a>
|
||||
</li>
|
||||
<li class="nav-item dropdown dropdown-hover mx-2">
|
||||
<a href="https://arrahn.com.my/" target="_blank">arrahn.com.my</a>
|
||||
</li>
|
||||
<li class="nav-item dropdown dropdown-hover mx-2">
|
||||
<a href="https://www.koppkb.com/" target="_blank">koppkb.com</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<section>
|
||||
<div class="page-header min-vh-75">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-xl-4 col-lg-5 col-md-6 d-flex flex-column mx-auto">
|
||||
<div class="card card-plain mt-8">
|
||||
<div class="card-header pb-0 text-left">
|
||||
<div style="display: flex; justify-content:space-between; align-items:center">
|
||||
<h1 class="font-weight-bolder text-info text-gradient">arOS 2.0</h1>
|
||||
<img src="{{ asset('img/icon_pkb.png') }}" alt="logo-arrahn" style="width: 85px">
|
||||
</div>
|
||||
<p class="mb-0">Adil . Telus . Mudah</p>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form method="POST" action="{{ route('login') }}">
|
||||
@csrf
|
||||
@if (Session::has('error'))
|
||||
<div class="text-danger" class="alert alert-warning" role="alert" style="white-space: nowrap; font-weight:bolder">Opps! Tidak berjaya
|
||||
disahkan. Sila semak semula e-mel/kata laluan.
|
||||
</div>
|
||||
@endif
|
||||
<label>E-mel</label>
|
||||
<div class="mb-3">
|
||||
<input type="email" class="form-control" placeholder="Sila isi e-mel anda ..." aria-label="Email" name="email" value="{{ old('email') }}" required autocomplete="email" autofocus>
|
||||
</div>
|
||||
<label>Kata Laluan</label>
|
||||
<div class="mb-3">
|
||||
<input type="password" class="form-control" placeholder="Sila isi kata laluan ..." aria-label="Password" name="password" id="password" value="{{ old('password') }}" required autocomplete="current-password">
|
||||
<div class="d-flex mt-2 align-items-center">
|
||||
<input type="checkbox" id="check">
|
||||
<label class="mb-0 text-muted" for="check" style="cursor: pointer;">Papar Kata Laluan</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-center">
|
||||
<button type="submit" class="btn bg-gradient-info w-100 mt-4 mb-0">Log
|
||||
Masuk</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="card-footer text-center pt-0 px-lg-2 px-1">
|
||||
<p class="mb-4 text-sm mx-auto">
|
||||
Masalah untuk log masuk?
|
||||
<a class="text-info text-gradient font-weight-bold">Hubungi
|
||||
iT</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="oblique position-absolute top-0 h-100 d-md-block d-none me-n8">
|
||||
<div class="oblique-image bg-cover position-absolute fixed-top ms-auto h-100 z-index-0 ms-n6" style="background-image:url({{ asset('img/dark-blue-monterey.jpg') }}); transform: rotate(180deg);">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="footer min-vh-25" style="display: flex; align-items:center">
|
||||
<div class="container-fluid" style="padding: 0 !important">
|
||||
<div class="logos">
|
||||
<div class="logos-slide">
|
||||
<img src="{{ asset('img/logo-pkb-grey.webp') }}" alt="logo">
|
||||
<img src="{{ asset('img/logo-kopkb-grey.webp') }}" alt="logo">
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
for (let i = 0; i < 20; i++) {
|
||||
var copy = document.querySelector(".logos-slide").cloneNode(true);
|
||||
document.querySelector(".logos").appendChild(copy);
|
||||
}
|
||||
|
||||
$('#check').click(function() {
|
||||
$(this).is(':checked') ? $('#password').attr('type', 'text') : $('#password').attr('type', 'password');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</footer>
|
||||
</section>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,255 @@
|
||||
@extends('layouts.app_operasi')
|
||||
<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('arcc.notisperingatan') }}">Notis Peringatan</a></li>
|
||||
<li class="breadcrumb-item"><a href="{{ route('arcc.rekodnotisperingatan') }}">Rekod Notis Peringatan</a></li>
|
||||
<li class="breadcrumb-item"><a href="{{ route('arcc.detailnotisperingatan',['notisid' =>$notisid]) }}">Mengikut Cawangan</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">{{$cawangan_info['details_caw']}}</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('arcc.blastpertama',['kodcaw' => $kodcaw, 'notisid' => $notisid])}}" target="_blank" method="POST">
|
||||
@csrf
|
||||
<input type="hidden" name="type" id="typedonwload" value="">
|
||||
<input type='hidden' name="radaktif" value="aktif">
|
||||
<input type='hidden' name="notisid" value="{{$notisid}}" >
|
||||
<input type='hidden' name="kodcaw" value="{{$kodcaw}}">
|
||||
<table class="table table-striped table-hover" id="details">
|
||||
<thead>
|
||||
<th>Bil</th>
|
||||
<th>No.Rujukan</th>
|
||||
<th>Nama</th>
|
||||
<th>No.KP</th>
|
||||
<th>No.Telefon</th>
|
||||
<th>Tempoh</th>
|
||||
<th>Baki Pembiayaan (RM)</th>
|
||||
<th>Tarikh Blast</th>
|
||||
|
||||
|
||||
</thead>
|
||||
@foreach ($bycawnotisperingatan as $index => $item)
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td style="white-space: nowrap;">{{$item['norujukan']}}</td>
|
||||
<td style="white-space: nowrap;">{{$item['namacust']['nama'] ?? ''}}</td>
|
||||
<td style="white-space: nowrap;">{{$item['nokp']}}</td>
|
||||
<td style="white-space: nowrap;">{{$item['namacust']['telefon'] ?? ''}}</td>
|
||||
<td align = 'right' style="white-space: nowrap;">{{$item['jbg']}}</td>
|
||||
<td align = 'right' style="white-space: nowrap;">{{number_format($item['pinjaman'], 2, '.', ',')}}</td>
|
||||
<td align = 'right' style="white-space: nowrap;"><b>
|
||||
@if($item['tarikhnotis1'] == null)
|
||||
|
||||
@else
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $item['tarikhnotis1']);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate);
|
||||
@endphp</b></td>
|
||||
@endif
|
||||
{{-- <td style="white-space: nowrap;"><a href="{{ route('arcc.bycawnotisperingatan', [ 'kodcaw' => $item['namacaw'][$index]['kodcaw'] ]) }}" class="btn btn-info text-white">Lihat</a></td> --}}
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</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,247 @@
|
||||
@extends('layouts.app_operasi')
|
||||
<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('arcc.notisperingatan') }}">Notis Peringatan</a></li>
|
||||
<li class="breadcrumb-item"><a href="{{ route('arcc.rekodnotisperingatan') }}">Rekod Notis Peringatan</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Mengikut Cawangan</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">
|
||||
<input type='hidden' name="notisid" value="{{$notisid}}" >
|
||||
<table class="table table-striped table-hover" id="myTable">
|
||||
<thead>
|
||||
<th>Bil</th>
|
||||
<th>Cawangan</th>
|
||||
<th>Bilangan Surat</th>
|
||||
<th>Baki Pembiayaan (RM)</th>
|
||||
<th>Maklumat Lanjut</th>
|
||||
|
||||
</thead>
|
||||
@foreach ($senarai[0]['getcawnotisbycaw'] as $index => $item)
|
||||
{{-- {{dd($item['namacaw'][$index]['status'])}} --}}
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td style="white-space: nowrap;"> @if($item['namacaw'][$index]['status'] == 2)
|
||||
<img src="{{ asset('img/success.png') }}" style="width:20px"></img>
|
||||
@endif{{$item['namacaw'][$index]['details_caw']}}</td>
|
||||
<td align="center" style="white-space: nowrap;">{{count($item['detailbycaw'])}}</td>
|
||||
<td style="white-space: nowrap;">{{number_format($item['totalbakipjm'],2)}}</td>
|
||||
<td style="white-space: nowrap;"><a href="{{ route('arcc.bycawnotisperingatan', [ 'kodcaw' => $item['namacaw'][$index]['kodcaw'], 'notisid' => $notisid ]) }}" class="btn btn-info text-white">Lihat</a>
|
||||
</td>
|
||||
</tr>
|
||||
@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,877 @@
|
||||
@extends('layouts.app_operasi')
|
||||
|
||||
@section('content')
|
||||
<style>
|
||||
.file {
|
||||
visibility: hidden;
|
||||
position: absolute;
|
||||
}
|
||||
</style>
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb pb-3">
|
||||
<li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Pengenalan Diri</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="text-center">
|
||||
<h5 class="text-uppercase">Pilih Cawangan Dan Masukkan nombor kad pengenalan</h5>
|
||||
<form name="frmsearch" onsubmit="verifynokp()" action="{{ route('arcc.searchpelanggan') }}" method="GET">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-9">
|
||||
<div class="input-group my-3">
|
||||
<div class='col-md-4'>
|
||||
@php
|
||||
$cawangan_all = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/arcc/cawangan')->json();
|
||||
@endphp
|
||||
<select class="form-control" name="cawangan" data-placeholder="Pilih Cawangan" id="cawangan">
|
||||
<option disabled selected value>--Cawangan--</option>
|
||||
@foreach($cawangan_all as $cawangan)
|
||||
<option value="{{ $cawangan['kodcaw'] }}">{{ $cawangan['details_caw'] }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<input type="text" class="form-control" id="noic" name="noic" placeholder="No.KP Pelanggan" aria-label="No Kad Pengenalan Pelanggan" autocomplete="off" value="{{$search == false ? '' : $noic ?? ''}}" aria-describedby="button-addon2">
|
||||
<div class="input-group-append">
|
||||
<select class="form-select" id="customerIDType" name="customerIDType" class="form-control">
|
||||
<option value="nokp" {{ $idtype == 'nokp' ? 'selected' : ''}}>No.KP</option>
|
||||
<option value="passport" {{ $idtype == 'passport' ? 'selected' : ''}}>Passport</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="input-group-append">
|
||||
<button class="btn btn-outline-primary" type="submit" id="button-addon2">Cari</button>
|
||||
</div>
|
||||
<br>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@if($search == true )
|
||||
<div class="text-center mt-3">
|
||||
<button type="button" style="margin:auto" class="btn btn-primary" onclick="newcustomer()">
|
||||
Daftar Pelanggan
|
||||
</button>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<!-- Modal No KP -->
|
||||
<div class="modal fade" id="daftar_pelanggan" tabindex="-1" data-backdrop="static" aria-labelledby="ModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="ModalLabel">Daftar Pelanggan</h5>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form action="{{ route('customer.store') }}" onsubmit="verifycustomer()" method="POST">
|
||||
@csrf
|
||||
<div class="row form-group">
|
||||
<div class="col-md-6">
|
||||
<div class="row form-group">
|
||||
<div class="col-md-4">Nama</div>
|
||||
<div class="col-md-8"><input class="form-control" type="text" name="name" id="name" autocomplete="off" placeholder="Nama"></div>
|
||||
<div class="col-md-4">No KP</div>
|
||||
<div class="col-md-8"><input class="form-control" type="text" name="noic" id="noic" value="{{$noic ?? ''}}" readonly></div>
|
||||
<div class="col-md-4">Tarikh Lahir</div>
|
||||
<div class="col-md-8"><input class="form-control" type="text" name="tarikh_lahir" id="tarikh_lahir" readonly></div>
|
||||
<div class="col-md-4">Negeri Lahir</div>
|
||||
<div class="col-md-8"><input class="form-control" type="text" name="negeri_lahir" id="negeri_lahir" readonly></div>
|
||||
<div class="col-md-4">Jantina</div>
|
||||
<div class="col-md-8"><input class="form-control" type="text" name="jantina" id="jantina" readonly></div>
|
||||
<div class="col-md-4">No Telefon 1</div>
|
||||
<div class="col-md-8"><input class="form-control" type="text" name="main_phone" id="main_phone" autocomplete="off" placeholder="No Telefon"></div>
|
||||
<div class="col-md-4">No Telefon 2</div>
|
||||
<div class="col-md-8"><input class="form-control" type="text" name="alternate_phone" id="alternate_phone" autocomplete="off" placeholder="No Telefon"></div>
|
||||
<div class="col-md-12 ml-4">
|
||||
<div class="form-group row">
|
||||
<div class="form-check form-check-inline">
|
||||
<input checked class="form-check-input" type="checkbox" id="warganegara" name="warganegara" value="warganegara">
|
||||
<label class="form-check-label" for="warganegara">Warganegara</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<input checked class="form-check-input" type="checkbox" id="bumiputera" name="bumiputera" value="bumiputera">
|
||||
<label class="form-check-label" for="bumiputera">Bumiputera</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">Agama</div>
|
||||
<div class="col-md-8">
|
||||
<select class="form-control" name="agama" id="agama">
|
||||
<option selected value="01">Islam</option>
|
||||
<option value="02">Hindu</option>
|
||||
<option value="03">Buddha</option>
|
||||
<option value="04">Kristian</option>
|
||||
<option value="05">Lain-lain</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4">Ahli</div>
|
||||
<div class="col-md-8">
|
||||
<select class="form-control" name="kumpulan_sahabat" id="kumpulan_sahabat">
|
||||
<option value="0">Tidak</option>
|
||||
<option value="1">Kumpulan PKINK</option>
|
||||
<option value="2">Sahabat</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="row form-group">
|
||||
<div class="col-md-4">Alamat</div>
|
||||
<div class="col-md-8"><textarea class="form-control" style="resize:none" name="alamat" id="alamat" cols="30" rows="3" placeholder="Alamat Pelanggan"></textarea></div>
|
||||
<div class="col-md-4">Poskod</div>
|
||||
<div class="col-md-8"><input class="form-control" type="text" name="poskod" id="poskod" autocomplete="off" placeholder="Poskod"></div>
|
||||
<div class="col-md-4">Daerah</div>
|
||||
<div class="col-md-8"><input class="form-control" type="text" name="daerah" id="daerah" readonly autocomplete="off"></div>
|
||||
<div class="col-md-4">Negeri</div>
|
||||
<div class="col-md-8"><input class="form-control" type="text" name="negeri" id="negeri" readonly autocomplete="off"></div>
|
||||
<div class="col-md-4">Umur</div>
|
||||
<div class="col-md-8"><input class="form-control" type="text" name="age" id="age" readonly></div>
|
||||
<div class="col-md-4">Bangsa</div>
|
||||
<div class="col-md-8">
|
||||
<select class="form-control" name="bangsa" id="bangsa">
|
||||
<option selected value="M">Melayu</option>
|
||||
<option value="C">Cina</option>
|
||||
<option value="I">India</option>
|
||||
<option value="L">Lain-lain</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4">Bank</div>
|
||||
<div class="col-md-8">
|
||||
<select class="form-control" name="bank_name" data-placeholder="Pilih Bank" id="bank_name">
|
||||
<option disabled selected value> -- Pilih Bank -- </option>
|
||||
@foreach($bank as $banks)
|
||||
<option value="{{ $banks['abbreviation'] }}">{{ $banks['name'] }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4">No Akaun</div>
|
||||
<div class="col-md-8"><input class="form-control" type="text" name="no_akaun" id="no_akaun" placeholder="No Akaun Bank"></div>
|
||||
<div class="col-md-4">Tujuan Gadai</div>
|
||||
@php
|
||||
$tujuangadai = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/tujuangadai')->json();
|
||||
@endphp
|
||||
<div class="col-md-8">
|
||||
<select class="form-control" name="tujuan_gadai" data-placeholder="Pilih Tujuan Gadai" id="tujuan_gadai">
|
||||
<option disabled selected value> -- Pilih Tujuan Gadai -- </option>
|
||||
@foreach($tujuangadai as $tujuan)
|
||||
<option value="{{ $tujuan['keterangan'] }}">{{ $tujuan['keterangan'] }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4">Pekerjaan</div>
|
||||
@php
|
||||
$pekerjaan = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/pekerjaan')->json();
|
||||
@endphp
|
||||
<div class="col-md-8">
|
||||
<select class="form-control" name="pekerjaan" data-placeholder="Pilih Pekerjaan" id="pekerjaan">
|
||||
<option disabled selected value> -- Pilih Pekerjaan -- </option>
|
||||
@foreach($pekerjaan as $kerja)
|
||||
<option value="{{ $kerja['kodkerja'] }}">{{ $kerja['keterangan'] }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4">Nota</div>
|
||||
<div class="col-md-8"><input class="form-control" type="text" name="nota" id="nota" placeholder="Nota"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<input type="text" hidden name="idtype" value="nokp">
|
||||
<button type="button" class="btn btn-danger" data-dismiss="modal">Batal</button>
|
||||
<input type="submit" name="submit" class="btn btn-primary" value="Terima">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Modal Passport -->
|
||||
<div class="modal fade" id="passport_pelanggan" tabindex="-1" data-backdrop="static" aria-labelledby="ModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="ModalLabel">Daftar Pelanggan</h5>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form action="{{ route('customer.store') }}" onsubmit="verifycustomerpassport()" method="POST">
|
||||
@csrf
|
||||
<div class="row form-group">
|
||||
<div class="col-md-6">
|
||||
<div class="row form-group">
|
||||
<div class="col-md-4">Nama</div>
|
||||
<div class="col-md-8"><input class="form-control" type="text" name="name" id="passport_name" autocomplete="off" placeholder="Nama"></div>
|
||||
<div class="col-md-4">No Passport</div>
|
||||
<div class="col-md-8"><input class="form-control" readonly type="text" name="noic" id="passport_noic" value="{{$noic ?? ''}}"></div>
|
||||
<div class="col-md-4">Tarikh Lahir</div>
|
||||
<div class="col-md-8"><input class="form-control" type="text" placeholder="Tarikh Lahir" onchange="calculatePassportAge()" name="tarikh_lahir" id="passport_tarikh_lahir"></div>
|
||||
<div class="col-md-4">Jantina</div>
|
||||
<div class="col-md-8">
|
||||
<select name="jantina" id="jantina_passport" class="form-control">
|
||||
<option value="Lelaki" selected>Lelaki</option>
|
||||
<option value="Perempuan">Perempuan</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4">No Telefon 1</div>
|
||||
<div class="col-md-8"><input class="form-control" type="text" name="main_phone" id="passport_main_phone" autocomplete="off" placeholder="No Telefon"></div>
|
||||
<div class="col-md-4">No Telefon 2</div>
|
||||
<div class="col-md-8"><input class="form-control" type="text" name="alternate_phone" id="passport_alternate_phone" autocomplete="off" placeholder="No Telefon"></div>
|
||||
<div class="col-md-4">Agama</div>
|
||||
<div class="col-md-8">
|
||||
<select class="form-control" name="agama" id="passport_agama">
|
||||
<option selected value="01">Islam</option>
|
||||
<option value="02">Hindu</option>
|
||||
<option value="03">Buddha</option>
|
||||
<option value="04">Kristian</option>
|
||||
<option value="05">Lain-lain</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4">Ahli</div>
|
||||
<div class="col-md-8">
|
||||
<select class="form-control" name="kumpulan_sahabat" id="passport_kumpulan_sahabat">
|
||||
<option value="0">Tidak</option>
|
||||
<option value="1">Kumpulan PKINK</option>
|
||||
<option value="2">Sahabat</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="row form-group">
|
||||
<div class="col-md-4">Alamat</div>
|
||||
<div class="col-md-8"><textarea class="form-control" style="resize:none" name="alamat" id="passport_alamat" cols="30" rows="3" placeholder="Alamat Pelanggan"></textarea></div>
|
||||
<div class="col-md-4">Poskod</div>
|
||||
<div class="col-md-8"><input class="form-control" type="text" name="poskod" id="passport_poskod" autocomplete="off" placeholder="Poskod"></div>
|
||||
<div class="col-md-4">Daerah</div>
|
||||
<div class="col-md-8"><input class="form-control" type="text" name="daerah" id="passport_daerah" readonly autocomplete="off"></div>
|
||||
<div class="col-md-4">Negeri</div>
|
||||
<div class="col-md-8"><input class="form-control" type="text" name="negeri" id="passport_negeri" readonly autocomplete="off"></div>
|
||||
<div class="col-md-4">Umur</div>
|
||||
<div class="col-md-8"><input class="form-control" type="text" name="age" id="passport_age" readonly></div>
|
||||
<div class="col-md-4">Bangsa</div>
|
||||
<div class="col-md-8">
|
||||
<select class="form-control" name="bangsa" id="passport_bangsa">
|
||||
<option selected value="M">Melayu</option>
|
||||
<option value="C">Cina</option>
|
||||
<option value="I">India</option>
|
||||
<option value="L">Lain-lain</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4">Bank</div>
|
||||
<div class="col-md-8">
|
||||
<select class="form-control" name="bank_name" data-placeholder="Pilih Bank" id="passport_bank_name">
|
||||
<option disabled selected value> -- Pilih Bank -- </option>
|
||||
@foreach($bank as $banks)
|
||||
<option value="{{ $banks['abbreviation'] }}">{{ $banks['name'] }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4">No Akaun</div>
|
||||
<div class="col-md-8"><input class="form-control" type="text" name="no_akaun" id="passport_no_akaun" placeholder="No Akaun Bank"></div>
|
||||
<div class="col-md-4">Tujuan Gadai</div>
|
||||
@php
|
||||
$tujuangadai = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/tujuangadai')->json();
|
||||
@endphp
|
||||
<div class="col-md-8">
|
||||
<select class="form-control" name="tujuan_gadai" data-placeholder="Pilih Tujuan Gadai" id="passport_tujuan_gadai">
|
||||
<option disabled selected value> -- Pilih Tujuan Gadai -- </option>
|
||||
@foreach($tujuangadai as $tujuan)
|
||||
<option value="{{ $tujuan['keterangan'] }}">{{ $tujuan['keterangan'] }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4">Pekerjaan</div>
|
||||
@php
|
||||
$pekerjaan = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/pekerjaan')->json();
|
||||
@endphp
|
||||
<div class="col-md-8">
|
||||
<select class="form-control" name="pekerjaan" data-placeholder="Pilih Pekerjaan" id="passport_pekerjaan">
|
||||
<option disabled selected value> -- Pilih Pekerjaan -- </option>
|
||||
@foreach($pekerjaan as $kerja)
|
||||
<option value="{{ $kerja['kodkerja'] }}">{{ $kerja['keterangan'] }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4">Nota</div>
|
||||
<div class="col-md-8"><input class="form-control" type="text" name="nota" id="passport_nota" placeholder="Nota"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<input type="text" hidden name="idtype" value="passport">
|
||||
<button type="button" class="btn btn-danger" data-dismiss="modal">Batal</button>
|
||||
<input type="submit" name="submit" class="btn btn-primary" value="Terima">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
var api_url = "<?php echo $api_url ?>";
|
||||
var search = "<?php echo $search ?>";
|
||||
var type_id = "<?php echo $idtype ?>";
|
||||
$(document).ready(function(){
|
||||
$('#passport_tarikh_lahir').datepicker({
|
||||
format: 'dd/mm/yyyy',
|
||||
endDate: new Date()
|
||||
});
|
||||
var noic = $('#noic').val();
|
||||
identifyIC(noic);
|
||||
|
||||
if(search == true){
|
||||
Swal.fire({
|
||||
icon: 'info',
|
||||
title: 'Pelanggan Tiada Dalam Rekod!',
|
||||
text: 'Sila Daftar Pelanggan'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
function calculatePassportAge(){
|
||||
var passport_lahir = $('#passport_tarikh_lahir').val();
|
||||
var split_date = passport_lahir.split('/');
|
||||
var count_leap_year = countLeapYears(split_date[2],split_date[1],split_date[0]) - 1;
|
||||
|
||||
var start = new Date(split_date[2] + '-' + split_date[1] + '-' + split_date[0]),
|
||||
end = new Date(),
|
||||
diff = new Date(end - start),
|
||||
days = ((diff/1000/60/60/24)- count_leap_year)/365;
|
||||
|
||||
var age = parseInt(days);
|
||||
$('#passport_age').val(age);
|
||||
}
|
||||
|
||||
function newcustomer(){
|
||||
var id_type = $('#customerIDType').val();
|
||||
if(id_type=='nokp'){
|
||||
$('#daftar_pelanggan').modal('show');
|
||||
}else if(id_type=='passport'){
|
||||
$('#passport_pelanggan').modal('show');
|
||||
}
|
||||
}
|
||||
|
||||
$('#warganegara').on('click',function(){
|
||||
if(this.checked == false) {
|
||||
$('#bumiputera').prop('checked',false);
|
||||
}
|
||||
});
|
||||
|
||||
$('#bumiputera').on('click',function(){
|
||||
if(this.checked) {
|
||||
$('#warganegara').prop('checked',true);
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on("click", ".browse", function() {
|
||||
var file = $(this).parents().find(".file");
|
||||
file.trigger("click");
|
||||
});
|
||||
$('input[type="file"]').change(function(e) {
|
||||
var fileName = e.target.files[0].name;
|
||||
$("#file").val(fileName);
|
||||
|
||||
var reader = new FileReader();
|
||||
reader.onload = function(e) {
|
||||
// get loaded data and render thumbnail.
|
||||
document.getElementById("preview").src = e.target.result;
|
||||
};
|
||||
// read the image file as a data URL.
|
||||
reader.readAsDataURL(this.files[0]);
|
||||
});
|
||||
|
||||
$('#poskod').change(function(){
|
||||
var poskod = this.value;
|
||||
|
||||
$.ajax({
|
||||
method:'GET',
|
||||
url:api_url+'/api/poskod/'+poskod,
|
||||
success:function(poskod_detail){
|
||||
var koddaerah = poskod_detail['koddaerah'];
|
||||
var kodnegeri = poskod_detail['kodnegeri'];
|
||||
$.ajax({
|
||||
url:api_url+'/api/negeri/'+kodnegeri,
|
||||
method:'GET',
|
||||
success:function(negeri){
|
||||
$('#negeri').val(negeri['negeri']);
|
||||
}
|
||||
});
|
||||
$.ajax({
|
||||
url:api_url+'/api/daerah/'+koddaerah,
|
||||
method:'GET',
|
||||
success:function(daerah){
|
||||
$('#daerah').val(daerah['namadaerah']);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('#passport_poskod').change(function(){
|
||||
var poskod = this.value;
|
||||
|
||||
$.ajax({
|
||||
method:'GET',
|
||||
url:api_url+'/api/poskod/'+poskod,
|
||||
success:function(poskod_detail){
|
||||
var koddaerah = poskod_detail['koddaerah'];
|
||||
var kodnegeri = poskod_detail['kodnegeri'];
|
||||
$.ajax({
|
||||
url:api_url+'/api/negeri/'+kodnegeri,
|
||||
method:'GET',
|
||||
success:function(negeri){
|
||||
$('#passport_negeri').val(negeri['negeri']);
|
||||
}
|
||||
});
|
||||
$.ajax({
|
||||
url:api_url+'/api/daerah/'+koddaerah,
|
||||
method:'GET',
|
||||
success:function(daerah){
|
||||
$('#passport_daerah').val(daerah['namadaerah']);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
function verifycustomer(){
|
||||
var customername = $('#name').val();
|
||||
var customeralamat = $('#alamat').val();
|
||||
var customerposkod = $('#poskod').val();
|
||||
var customerphone = $('#main_phone').val();
|
||||
var customerphone_alternate = $('#alternate_phone').val();
|
||||
var age = $('#age').val();
|
||||
if(age < 18){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Umur Pelanggan Tidak Mencukupi 18 Tahun'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
if(customername == ''){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Sila Masukkan Nama Pelanggan'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
if(customeralamat == ''){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Sila Masukkan Alamat Pelanggan'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
if(customerposkod == ''){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Sila Masukkan Poskod'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}else{
|
||||
if(customerposkod.length != 5){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Sila Periksa Poskod'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}else{
|
||||
if($.isNumeric(customerposkod) == false){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Sila Periksa Poskod'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(customerphone == ''){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Sila Masukkan No Telefon Pelanggan'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}else{
|
||||
if((customerphone.length < 9 || customerphone.length >= 12)){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Sila Periksa No Telefon Pelanggan'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}else{
|
||||
if($.isNumeric(customerphone) == false){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Sila Masukkan Nombor Sahaja Pada No Telefon Pelanggan'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(customerphone_alternate != ''){
|
||||
if(customerphone_alternate.length < 8 && customerphone_alternate.length > 12){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Sila Periksa No Telefon Pelanggan'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}else{
|
||||
if($.isNumeric(customerphone_alternate) == false){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Sila Masukkan Nombor Sahaja Pada No Telefon Pelanggan'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function verifycustomerpassport(){
|
||||
var customername = $('#passport_name').val();
|
||||
var customeralamat = $('#passport_alamat').val();
|
||||
var customerposkod = $('#passport_poskod').val();
|
||||
var customerphone = $('#passport_main_phone').val();
|
||||
var customerphone_alternate = $('#passport_alternate_phone').val();
|
||||
var tarikh_lahir = $('#passport_tarikh_lahir').val();
|
||||
var age = $('#passport_age').val();
|
||||
|
||||
if(age < 18){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Umur Pelanggan Tidak Mencukupi 18 Tahun'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
if(customername == ''){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Sila Masukkan Nama Pelanggan'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
if(tarikh_lahir == ''){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Sila Masukkan Tarikh Lahir Pelanggan'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
if(customeralamat == ''){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Sila Masukkan Alamat Pelanggan'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
if(customerposkod == ''){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Sila Masukkan Poskod'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}else{
|
||||
if(customerposkod.length != 5){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Sila Periksa Poskod'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}else{
|
||||
if($.isNumeric(customerposkod) == false){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Sila Periksa Poskod'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(customerphone == ''){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Sila Masukkan No Telefon Pelanggan'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}else{
|
||||
if(customerphone.length <= 9 || customerphone.length >= 12){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Sila Periksa No Telefon Pelanggan'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}else{
|
||||
if($.isNumeric(customerphone) == false){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Sila Masukkan Nombor Sahaja Pada No Telefon Pelanggan'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(customerphone_alternate != ''){
|
||||
if(customerphone_alternate.length <= 8 && customerphone_alternate.length >= 12){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Sila Periksa No Telefon Pelanggan'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}else{
|
||||
if($.isNumeric(customerphone_alternate) == false){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Sila Masukkan Nombor Sahaja Pada No Telefon Pelanggan'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function identifyIC(noic){
|
||||
if(noic.match(/^(\d{2})(\d{2})(\d{2})-?\d{2}-?\d{4}$/)) {
|
||||
var year = noic.slice(0,2);
|
||||
var month = noic.slice(2,4);
|
||||
var day = noic.slice(4,6);
|
||||
var nl = noic.slice(6,8);
|
||||
var last_ic = noic.slice(8,12);
|
||||
|
||||
var now = new Date().getFullYear().toString();
|
||||
|
||||
var decade = now.substr(0, 2);
|
||||
if (now.substr(2,2) > year) {
|
||||
year = parseInt(decade.concat(year.toString()), 10);
|
||||
}
|
||||
|
||||
if (parseInt(last_ic,10)%2 != 0){
|
||||
var jantina = 'Lelaki';
|
||||
}
|
||||
else{
|
||||
var jantina = 'Perempuan';
|
||||
}
|
||||
|
||||
var johor_ic = ['01','21','22','23','24'];
|
||||
var kedah_ic = ['02','25','26','27'];
|
||||
var kelantan_ic = ['03','28','29'];
|
||||
var melaka_ic = ['04','30'];
|
||||
var negeri_ic = ['05','31','59'];
|
||||
var pahang_ic = ['06','32','33'];
|
||||
var penang_ic = ['07','34','35'];
|
||||
var perak_ic = ['08','36','37','38','39'];
|
||||
var perlis_ic = ['09','40'];
|
||||
var selangor_ic = ['10','41','42','43','44'];
|
||||
var terengganu_ic = ['11','45','46'];
|
||||
var sabah_ic = ['12','47','48','49'];
|
||||
var sarawak_ic = ['13','50','51','52','53'];
|
||||
var kl_ic = ['14','54','55','56','57'];
|
||||
var labuan_ic = ['15','58'];
|
||||
var putrajaya_ic = ['16'];
|
||||
var unknown_ic = ['82'];
|
||||
|
||||
if(johor_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Johor';
|
||||
}else if(kedah_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Kedah';
|
||||
}else if(kelantan_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Kelantan';
|
||||
}else if(melaka_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Melaka';
|
||||
}else if(negeri_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Negeri Sembilan';
|
||||
}else if(pahang_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Pahang';
|
||||
}else if(penang_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Pulau Pinang';
|
||||
}else if(perak_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Perak';
|
||||
}else if(perlis_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Perlis';
|
||||
}else if(selangor_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Selangor';
|
||||
}else if(terengganu_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Terengganu';
|
||||
}else if(sabah_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Sabah';
|
||||
}else if(sarawak_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Sarawak';
|
||||
}else if(kl_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Kuala Lumpur';
|
||||
}else if(labuan_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Labuan';
|
||||
}else if(putrajaya_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Putrajaya';
|
||||
}else if(unknown_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Negeri Tidak Diketahui';
|
||||
}
|
||||
var date = new Date(year, (month - 1), day, 0, 0, 0, 0);
|
||||
var tarikh_lahir_test = date.getFullYear() + '-' + month + '-' + day;
|
||||
|
||||
var count_leap_year = countLeapYears(date.getFullYear(),month,day) - 1;
|
||||
|
||||
var start = new Date(tarikh_lahir_test),
|
||||
end = new Date(),
|
||||
diff = new Date(end - start),
|
||||
days = ((diff/1000/60/60/24)- count_leap_year)/365;
|
||||
|
||||
var age = parseInt(days);
|
||||
$('#age').val(age);
|
||||
var tarikh_lahir = day + '/' + month + '/' + date.getFullYear();
|
||||
$('#jantina').val(jantina);
|
||||
$('#tarikh_lahir').val(tarikh_lahir);
|
||||
$('#negeri_lahir').val(negeri_lahir);
|
||||
}
|
||||
}
|
||||
|
||||
var countLeapYears = function(y,m,d){
|
||||
var yearNow = new Date().getFullYear(),
|
||||
yearThen = y,
|
||||
beginYear = 0,
|
||||
endYear = 0,
|
||||
leapYearCount = 0;
|
||||
|
||||
var isLeapYear = function(year){
|
||||
return ((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0);
|
||||
}
|
||||
|
||||
if(yearNow < y){
|
||||
beginYear = yearNow;
|
||||
endYear = y;
|
||||
}else if(yearNow > y){
|
||||
beginYear = y;
|
||||
endYear = yearNow;
|
||||
}else if(yearNow == y){
|
||||
beginYear = y;
|
||||
endYear = y;
|
||||
}
|
||||
|
||||
for(i = beginYear; i <= endYear; i++){
|
||||
if(isLeapYear(i)){
|
||||
leapYearCount++;
|
||||
}
|
||||
}
|
||||
|
||||
return leapYearCount;
|
||||
}
|
||||
var regex = /^[a-zA-Z0-9]+$/g;
|
||||
|
||||
function verifynokp(){
|
||||
var id_type = $('#customerIDType').val();
|
||||
var nokp = $('#noic').val();
|
||||
if(id_type=='nokp'){
|
||||
if($.isNumeric(nokp) == false){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Sila Masukkan Nombor Sahaja Pada No KP Pelanggan'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
if(nokp.length != 12){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Sila Periksa No KP Pelanggan'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
}else if(id_type=='passport'){
|
||||
if(nokp.length < 5){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Sila Periksa Passport Pelanggan'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
if(nokp.indexOf(' ') > 0){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Sila Masukkan Passport Tanpa Ruang \'Kosong\' \n e.g(AP1111111)'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
if(regex.test(nokp) == false){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Sila Periksa Passport Pelanggan'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
@@ -0,0 +1,312 @@
|
||||
@extends('layouts.app_operasi')
|
||||
<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('arcc.notisperingatan') }}">Notis Peringatan</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Carian No.Rujukan</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
|
||||
<form action="{{route('arcc.janadatanotisperingatan')}}" method="POST" enctype="multipart/form-data">
|
||||
@csrf
|
||||
|
||||
<input type="hidden" class="form-control" id="daritempoh" name="daritempoh" value="{{$daritempoh}}">
|
||||
<input type="hidden" class="form-control" id="hinggatempoh" name="hinggatempoh" value="{{$hinggatempoh}}">
|
||||
<input type="hidden" class="form-control" id="kodcaw" name="kodcaw" value="{{$kodcaw}}">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
|
||||
|
||||
|
||||
|
||||
<table class="table text-left table-bordered" id="senaraitemp" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th><input type="checkbox" aria-label="Checkbox for following text input" id="checkall"></th>
|
||||
<th>Bil</th>
|
||||
<th align="center">Kod Cawangan</th>
|
||||
<th align="center">Cawangan</th>
|
||||
<th align="left">Bilangan SAG</th>
|
||||
<th align="left">Total Berat (RM)</th>
|
||||
<th align="left">Total Pembiayaan (RM)</th>
|
||||
<th align="left">Total Baki Pembiayaan (RM)</th>
|
||||
<th align="left">Total Tunggakan Keuntungan (RM)</th>
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php $count = 1; $totalsagall = 0; $totalberatall = 0; $totalpembiayaanall = 0; $totalbakipjmall = 0; $totaltunggakanall = 0; @endphp
|
||||
@foreach($senarai as $send)
|
||||
@if($send['datagadai']['totalsag'] > 0)
|
||||
<tr>
|
||||
<td><input type="checkbox" aria-label="Checkbox for following text input" name="caw[]" id="caw" value = "{{ $send['kodcaw'] }}" class="checkbox"></td>
|
||||
<td>{{ $count++ }}</td>
|
||||
<td align="center">{{ $send['kodcaw'] }}</td>
|
||||
<td align="left" style="white-space: nowrap;">{{ $send['caw_name'] }}<input type="hidden" class="form-control" id="caw_name" name="caw_name[]" value="{{$send['caw_name']}}"></td>
|
||||
<td align="right">{{$send['datagadai']['totalsag']}}</td>
|
||||
<td align="right">{{number_format($send['datagadai']['totalberat'], 2)}}</td>
|
||||
<td align="right">{{number_format($send['datagadai']['totalpembiayaan'], 2)}}</td>
|
||||
<td align="right">{{number_format($send['datagadai']['totalbakipjm'], 2)}}</td>
|
||||
<td align="right">{{number_format($send['datagadai']['totaltunggakan'], 2)}}</td>
|
||||
</tr>
|
||||
@php
|
||||
$totalsagall += $send['datagadai']['totalsag'];
|
||||
$totalberatall += $send['datagadai']['totalberat'];
|
||||
$totalpembiayaanall += $send['datagadai']['totalpembiayaan'];
|
||||
$totalbakipjmall += $send['datagadai']['totalbakipjm'];
|
||||
$totaltunggakanall += $send['datagadai']['totaltunggakan'];
|
||||
@endphp
|
||||
@endif
|
||||
@endforeach
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="4"><b>JUMLAH KESELURUHAN</b></td>
|
||||
<td align = 'right'><b>{{ number_format($totalsagall, 0, '.', ',') }}</b></td>
|
||||
<td align = 'right'><b>{{ number_format($totalberatall, 2, '.', ',') }}</b></td>
|
||||
<td align = 'right'><b>{{ number_format($totalpembiayaanall, 2, '.', ',') }}</b></td>
|
||||
<td align = 'right'><b>{{ number_format($totalbakipjmall, 2, '.', ',') }}</b></td>
|
||||
<td align = 'right'><b>{{ number_format($totaltunggakanall, 2, '.', ',') }}</b></td> {{-- <td align = 'right'></td> --}}
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="text-center">
|
||||
<a href="{{ route('arcc.notisperingatan') }}" class="btn btn-primary" style="width:8%;">Kembali</a>
|
||||
<button type="submit" class="btn btn-success">Jana Notis Peringatan</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type='text/javascript'>
|
||||
$(document).ready(function(){
|
||||
// Check or Uncheck All checkboxes
|
||||
$("#checkall").change(function(){
|
||||
var checked = $(this).is(':checked');
|
||||
if(checked){
|
||||
$(".checkbox").each(function(){
|
||||
$(this).prop("checked",true);
|
||||
});
|
||||
}else{
|
||||
$(".checkbox").each(function(){
|
||||
$(this).prop("checked",false);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
// Changing state of CheckAll checkbox
|
||||
$(".checkbox").click(function(){
|
||||
|
||||
if($(".checkbox").length == $(".checkbox:checked").length) {
|
||||
$("#checkall").prop("checked", true);
|
||||
} else {
|
||||
$("#checkall").prop("checked", false);
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<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,267 @@
|
||||
@extends('layouts.app_operasi')
|
||||
<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('arcc.notisperingatan') }}">Notis Peringatan</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Carian No.Rujukan</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('arcc.cariansag') }}" 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('arcc.rekodnotisperingatan') }}" class="btn btn-dark btn-lg btn-block mb-3">Rekod Notis Peringatan</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,256 @@
|
||||
@extends('layouts.app_operasi')
|
||||
<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('arcc.notisperingatan') }}">Notis Peringatan</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Rekod Notis Peringatan</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-striped table-hover" id="myTable">
|
||||
<thead>
|
||||
<th>Bil</th>
|
||||
<th>Tarikh Notis</th>
|
||||
<th>Cawangan</th>
|
||||
<th>Dari Tempoh</th>
|
||||
<th>Hingga Tempoh</th>
|
||||
<th>Maklumat Lanjut</th>
|
||||
|
||||
</thead>
|
||||
|
||||
@foreach ($arrayinfo as $index => $item)
|
||||
{{-- {{dd($item['cawnotis'])}} --}}
|
||||
<tr>
|
||||
<td style="white-space: nowrap;">{{ $item['info']['id'] ?? '-' }}</td>
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $item['info']['tarikh_notis']);
|
||||
$datez = $myDateTime->format('d-m-Y');
|
||||
@endphp
|
||||
<td style="white-space: nowrap;"> {{$datez}}</td>
|
||||
<td style="white-space: nowrap;">@foreach($item['cawnotis'] as $item1)
|
||||
@foreach($item1 as $item2)
|
||||
@if($item2['status'] == 2)
|
||||
<img src="{{ asset('img/success.png') }}" style="width:20px"></img>
|
||||
@endif
|
||||
{{ $item2['details_caw']}}<br>
|
||||
@endforeach
|
||||
@endforeach</td>
|
||||
<td style="white-space: nowrap;">{{ $item['info']['daritempoh'] ?? '-' }}</td>
|
||||
<td style="white-space: nowrap;">{{ $item['info']['hinggatempoh'] ?? '-' }}</td>
|
||||
<td style="white-space: nowrap;"><a href="{{ route('arcc.detailnotisperingatan', [ 'notisid' => $item['info']['id']] ) }}" class="btn btn-info text-white">Lihat</a></td>
|
||||
</tr>
|
||||
@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
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
+24
-75
@@ -1,4 +1,4 @@
|
||||
@extends('layouts.app')
|
||||
@extends('layouts.app_operasi')
|
||||
|
||||
<style>
|
||||
#daftar_gadai{
|
||||
@@ -17,7 +17,7 @@
|
||||
<ol class="breadcrumb pb-3">
|
||||
<li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
|
||||
<li class="breadcrumb-item"><a href="{{ url('/pelanggan') }}">Pengenalan Diri</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Pelanggan</li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Pelanggan : {{$cawangan_info['details_caw']}}</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
@@ -133,10 +133,10 @@
|
||||
</label>
|
||||
</div>
|
||||
<div class='col-md-3'>
|
||||
<button class='btn btn-primary' data-toggle="modal" data-target="#customer_detail">Maklumat Pelanggan</button>
|
||||
{{-- <button class='btn btn-primary' data-toggle="modal" data-target="#customer_detail">Maklumat Pelanggan</button> --}}
|
||||
</div>
|
||||
<div class="col-md-3 text-right">
|
||||
<a class="btn btn-primary" style="margin-right:-50px" id="daftar_gadai">Daftar Gadai</a>
|
||||
<button class='btn btn-primary' data-toggle="modal" data-target="#customer_detail">Maklumat Pelanggan</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -243,8 +243,8 @@
|
||||
</table>
|
||||
|
||||
<div class="text-center">
|
||||
<button class="btn btn-primary" onclick="ubahfunc(this)" id="button-edit-gadaian">Ubah</button>
|
||||
<button class="btn btn-primary" onclick="hapusfunc()">Hapus</button>
|
||||
{{-- <button class="btn btn-primary" onclick="ubahfunc(this)" id="button-edit-gadaian">Ubah</button> --}}
|
||||
{{-- <button class="btn btn-primary" onclick="hapusfunc()">Hapus</button> --}}
|
||||
<button class="btn btn-primary" onclick="histfunc()">Rekod Gadaian</button>
|
||||
</div>
|
||||
|
||||
@@ -392,7 +392,7 @@
|
||||
</div>
|
||||
</form>
|
||||
<div class="mr-5 form-group float-right">
|
||||
<button type="button" class="btn btn-primary" onclick="kemaskinifunc()" id="btnkemaskini">Ubah</button>
|
||||
{{-- <button type="button" class="btn btn-primary" onclick="kemaskinifunc()" id="btnkemaskini">Ubah</button> --}}
|
||||
<button type="button" class="btn btn-primary" onclick="kemaskinipelanggan()" id="btnsave">Terima</button>
|
||||
{{-- <button type="button" class="btn btn-primary" id="btnotp">Daftar Akaun Online</button> --}}
|
||||
</div>
|
||||
@@ -449,62 +449,7 @@
|
||||
var api_url = "<?php echo $api_url ?>";
|
||||
var kodcaw = "{{ $cawangan_info['kodcaw'] }}";
|
||||
var tagarrahnbid = "{{ $cawangan_info['tagarrahnbid'] }}";
|
||||
var min_komoditi = "{{ $min_komoditi }}";
|
||||
$('#daftar_gadai').on('click',function(){
|
||||
$("#daftar_gadai").prop('disabled', true);
|
||||
var noic = $('#noic').val();
|
||||
var iclama = "{{ $customer_info['kplama'] }}";
|
||||
var icbaru = "{{ $customer_info['kpbaru'] }}";
|
||||
var outstanding_semasa = "{{ $outstanding_semasa }}";
|
||||
event.preventDefault();
|
||||
if(outstanding_semasa >= 300000){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Had Pembiayaan',
|
||||
text: 'Outstanding Pembiayaan Pelanggan Telah Melebihi Had'
|
||||
});
|
||||
$("#daftar_gadai").prop('disabled', false);
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}else{
|
||||
$.ajax({
|
||||
method:'get',
|
||||
url: api_url + '/api/komuditi/check',
|
||||
success:function(data){
|
||||
var check_komuditi = Object.keys(data).length;
|
||||
if(check_komuditi == 0){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Unit Komoditi Berbaki Minima',
|
||||
text: 'Sila Hubungi Operasi Untuk Membuat Pembelian Komoditi'
|
||||
});
|
||||
$("#daftar_gadai").prop('disabled', false);
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}else{
|
||||
if(Number(data['unit_komuditi']) <= min_komoditi){
|
||||
$("#daftar_gadai").prop('disabled', false);
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Unit Komoditi Berbaki Minima',
|
||||
text: 'Sila Hubungi Operasi Untuk Membuat Pembelian Komoditi'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
else{
|
||||
if(icbaru.length > 0){
|
||||
window.location.href = "{{ route('gadaian',['noic'=>$customer_info['kpbaru'] ]) }}";
|
||||
}else{
|
||||
window.location.href = "{{ route('gadaian',['noic'=>$customer_info['kplama'] ]) }}";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
|
||||
// here is the new selected tab id
|
||||
@@ -587,7 +532,7 @@
|
||||
if(data == 0){
|
||||
$.ajax({
|
||||
method:'get',
|
||||
url: api_url + '/api/polis/get/',
|
||||
url: api_url + '/api/polis/get',
|
||||
datatype:'json',
|
||||
data:{
|
||||
'kodcaw': "{{ $cawangan_info['kodcaw'] }}",
|
||||
@@ -795,7 +740,10 @@
|
||||
let jeniskeuntungan = (gadai_detail['tagbaru'] == 1) ? 'onepercent' : 'asal';
|
||||
$.ajax({
|
||||
method:'get',
|
||||
url:api_url + '/api/upahtawarruq/'+ gadai_detail['kodcaw'] +'/' + gadai_detail['norujukan'] + '/' + jeniskeuntungan,
|
||||
url:api_url + '/api/upahtawarruq/'+ gadai_detail['kodcaw'] +'/' + gadai_detail['norujukan'],
|
||||
data: {
|
||||
'jeniskeuntungan' : jeniskeuntungan
|
||||
},
|
||||
success:function(upahsemasa){
|
||||
if(jenistebus == "belum_tebus"){
|
||||
var urlroute = '{{ route("penebusan", ":id") }}';
|
||||
@@ -818,9 +766,10 @@
|
||||
let table_norujukan = gadai_detail["norujukan"];
|
||||
let radio_action = "onclick=checkCanChangeGadaianDetail(" + "'" + table_norujukan + "'" + ")";
|
||||
|
||||
if(gadai_detail["percentpinj"] != 0)
|
||||
xtawarruq.row.add([
|
||||
'<input type="radio" value='+ gadai_detail["norujukan"] + ' ' + radio_action +' name="belum"/>',
|
||||
'<a href="#" onclick="checkserah(this)" data-pinjaman='+ gadai_detail['pinjaman'] +' data-hargajualan='+ gadai_detail['hargajualan'] +' data-norujukan='+ gadai_detail['norujukan'] +' data-url=' + urlroute +'>' + gadai_detail['norujukan'] + '</a>',
|
||||
'<a data-pinjaman='+ gadai_detail['pinjaman'] +' data-hargajualan='+ gadai_detail['hargajualan'] +' data-norujukan='+ gadai_detail['norujukan'] +' data-url=' + urlroute +'>' + gadai_detail['norujukan'] + '</a>',
|
||||
gadai_detail['t_gadai'],
|
||||
tarikh_matang,
|
||||
'RM '+ formatter.format(gadai_detail['bakihargajualan']),
|
||||
@@ -861,17 +810,16 @@
|
||||
|
||||
let table_norujukan = gadai_detail["norujukan"];
|
||||
let radio_action = "onclick=checkCanChangeGadaianDetail(" + "'" + table_norujukan + "'" + ")";
|
||||
|
||||
tablegadai.row.add([
|
||||
'<input type="radio" value='+ gadai_detail["norujukan"] + ' ' + radio_action +' name="belum"/>',
|
||||
'<a href="#" onclick="checkserah(this)" data-pinjaman='+ gadai_detail['pinjaman'] +' data-hargajualan='+ gadai_detail['hargajualan'] +' data-norujukan='+ gadai_detail['norujukan'] +' data-url=' + urlroute +'>' + gadai_detail['norujukan'] + '</a>',
|
||||
'<a data-pinjaman='+ gadai_detail['pinjaman'] +' data-hargajualan='+ gadai_detail['hargajualan'] +' data-norujukan='+ gadai_detail['norujukan'] +' data-url=' + urlroute +'>' + gadai_detail['norujukan'] + '</a>',
|
||||
gadai_detail['t_gadai'],
|
||||
tarikh_matang,
|
||||
'RM '+ formatter.format(gadai_detail['bakihargajualan']),
|
||||
'RM '+formatter.format(gadai_detail['bakipjm']),
|
||||
(((Number(gadai_detail['pinjaman'])/Number(gadai_detail['nilaimarhun']))*100).toFixed(2)).toLocaleString("en-GB") + '%',
|
||||
gadai_detail['tempoh'],
|
||||
'RM '+ upahsemasa,
|
||||
'RM '+ upahsemasa['pendapatan'],
|
||||
'<div style="white-space: nowrap; color:red; font-weight: bolder">' + taglel + '</div>',
|
||||
]).draw();
|
||||
}
|
||||
@@ -910,7 +858,7 @@
|
||||
if(gadai_detail['trkhtuntut'] == null){
|
||||
tablelelong.row.add([
|
||||
counter,
|
||||
'<a href="#" onclick="checktuntutbaki(this)" data-norujukan=' + gadai_detail['norujukan'] + ' data-tarikhtuntut=' + gadai_detail['trkhtuntut'] + '>' + gadai_detail['norujukan'] + '</a>',
|
||||
'<a data-norujukan=' + gadai_detail['norujukan'] + ' data-tarikhtuntut=' + gadai_detail['trkhtuntut'] + '>' + gadai_detail['norujukan'] + '</a>',
|
||||
gadai_detail['t_lelong'],
|
||||
gadai_detail['trkhtuntut'],
|
||||
'RM '+ formatter.format(gadai_detail['pinjaman']),
|
||||
@@ -1226,7 +1174,7 @@
|
||||
|
||||
$.ajax({
|
||||
method:'get',
|
||||
url:'{{ route("gadai.history") }}',
|
||||
url:'{{ route("arcc.history") }}',
|
||||
data:{ "norujukan" : histid},
|
||||
success:function(data)
|
||||
{
|
||||
@@ -1287,7 +1235,7 @@
|
||||
|
||||
$.ajax({
|
||||
method:'get',
|
||||
url:'{{ route("gadai.history") }}',
|
||||
url:'{{ route("arcc.history") }}',
|
||||
data:{ "norujukan" : histid},
|
||||
success:function(data){
|
||||
historytebustable(data);
|
||||
@@ -1330,6 +1278,7 @@
|
||||
$('#hargajualanmodal').text('RM ' + formatter.format(gadaian[0][0]['hargajualan']));
|
||||
$('#pembiayaanmodal').text('RM ' + formatter.format(gadaian[0][0]['pinjaman']));
|
||||
$('#nilaimarhunmodal').text('RM ' + formatter.format(gadaian[0][0]['nilaimarhun']));
|
||||
$('#marhunmodal').text(gadaian[0][0]['marhun']);
|
||||
}
|
||||
|
||||
function rekodansuran(data){
|
||||
@@ -1344,7 +1293,7 @@
|
||||
counter,
|
||||
bayaran['tarikh'],
|
||||
"RM " + bayaran['upahDibayar'],
|
||||
'<a class="btn btn-info" target="_blank" href='+ urlroute +'>Cetak</a>'
|
||||
''
|
||||
]).draw();
|
||||
counter = counter + 1;
|
||||
});
|
||||
@@ -1362,7 +1311,7 @@
|
||||
counter,
|
||||
bayaran['created_at'],
|
||||
"RM " + bayaran['duit_masuk'],
|
||||
'<a class="btn btn-info" target="_blank" href='+ urlroute +'>Cetak</a>'
|
||||
''
|
||||
]).draw();
|
||||
counter = counter + 1;
|
||||
});
|
||||
@@ -1414,7 +1363,7 @@
|
||||
tebusaz['pinjaman'],
|
||||
tebusaz['jbg'],
|
||||
tebusaz['t_tebus'],
|
||||
'<a class="btn btn-info" target="_blank" href='+ urlroute +'>Cetak</a>'
|
||||
''
|
||||
]).draw();
|
||||
counter = counter + 1;
|
||||
});
|
||||
@@ -2223,7 +2172,7 @@
|
||||
if(data != "Bukan-Tebus"){
|
||||
swalWithBootstrapButtons.fire(
|
||||
'Hapus!',
|
||||
'Maklumat gadaian telah dihapuskan.',
|
||||
'Maklumat tebus telah dihapuskan.',
|
||||
'success'
|
||||
).then(function () {
|
||||
location.reload();
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+35
-21
@@ -57,7 +57,7 @@
|
||||
{{-- <!-- <form action="{{ route('gadai.store') }}" method='post'> --> --}}
|
||||
@csrf
|
||||
<div class="col-12 form-group row">
|
||||
<div class="col-md-4">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group row">
|
||||
<div class="col-5">
|
||||
Pembiayaan Max
|
||||
@@ -84,8 +84,18 @@
|
||||
// $kadarupah = 1.7/100;
|
||||
// }
|
||||
|
||||
$keuntungan_sebulan = $gadaiannorujukan['pinjaman'] * $kadarupah;
|
||||
$keuntungan_6bln = $keuntungan_sebulan * 6;
|
||||
$array_keuntungan = Http::post(config('api.url'). '/api/onepercent',[
|
||||
'nilaimarhun' => $gadaiannorujukan['nilaimarhun'],
|
||||
'pembiayaan' => $gadaiannorujukan['pinjaman'],
|
||||
'kadarujrah' => $kadarupah,
|
||||
'margin' => $gadaiannorujukan['percentpinj'],
|
||||
'kodcaw' => $gadaiannorujukan['kodcaw']
|
||||
]);
|
||||
|
||||
$keuntungan_sebulan = $array_keuntungan['keuntungan'];
|
||||
$keuntungan_6bln = $keuntungan_sebulan * 6;
|
||||
$ujrah = $array_keuntungan['ujrah'];
|
||||
$onepercent = $array_keuntungan['onepercent'];
|
||||
|
||||
@endphp
|
||||
<div class="col-3">
|
||||
@@ -98,31 +108,21 @@
|
||||
</div>
|
||||
</diV>
|
||||
</div>
|
||||
<div class="col-5">
|
||||
{{-- <div class="col-5">
|
||||
<div class="form-group row">
|
||||
</diV>
|
||||
</div>
|
||||
<div class="col-3 d-none">
|
||||
</div> --}}
|
||||
<div class="col-3">
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
Ujrah
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="text" class="form-control" readonly name="ujrah" id="ujrah">
|
||||
<input type="text" class="form-control" readonly name="ujrah" id="ujrah" value="{{ number_format((float)$ujrah,2)}}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-3 d-none">
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
One Percent
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="text" class="form-control" readonly name="onepercent" id="onepercent">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group row">
|
||||
<div class="col-5">
|
||||
Pembiayaan
|
||||
@@ -145,12 +145,22 @@
|
||||
</div>
|
||||
</diV>
|
||||
</div>
|
||||
<div class="col-5">
|
||||
<div class="col-3">
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
One Percent
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="text" class="form-control" readonly name="onepercent" id="onepercent" value="{{ number_format((float)$onepercent,2)}}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<div class="form-group row">
|
||||
<div class="col-md-5">
|
||||
Pembiayaan Max Pelulus
|
||||
</div>
|
||||
<div class="col-md-6 input-group">
|
||||
<div class="col-md-7 input-group">
|
||||
<input type="text" class="form-control" readonly name="pembiyaan_max_pelulus" id="pembiyaan_max_pelulus">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text span-pinjaman-max-pelulus"></span>
|
||||
@@ -460,6 +470,7 @@
|
||||
'pembiayaan' : parseFloat($('#pinjaman').val()),
|
||||
'kadarujrah' : kadarupah,
|
||||
'margin' : perpinjam,
|
||||
'kodcaw' : "{{ $cawangan_info['kodcaw'] }}"
|
||||
},
|
||||
success:function(data){
|
||||
array_keuntungan = data;
|
||||
@@ -491,7 +502,7 @@
|
||||
var max_teller = total_nilai_marhun * (pinjaman_teller/100);
|
||||
var max_pelulus = total_nilai_marhun * (pinjaman_pelulus/100);
|
||||
$('#pembiayaan_max_teller').val(formatter.format(max_teller));
|
||||
$('#pembiyaan_max_pelulus').val(formatter.format(max_pelulus));
|
||||
$('#pembiyaan_max_pelulus').val(formatter.format(max_pelulus.toFixed(2)));
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -637,6 +648,7 @@
|
||||
'pembiayaan' : parseFloat($('#pinjaman').val()),
|
||||
'kadarujrah' : kadarupah,
|
||||
'margin' : perpinjam,
|
||||
'kodcaw' : "{{ $cawangan_info['kodcaw'] }}"
|
||||
},
|
||||
success:function(data){
|
||||
array_keuntungan = data;
|
||||
@@ -652,6 +664,8 @@
|
||||
$('.span-pinjaman').text(formatter.format(percent_pinjaman.toFixed(2)) + ' %');
|
||||
$('#keuntungan_sebulan').val(formatter.format(keuntungan_sebulan.toFixed(2)));
|
||||
$('#keuntungan_6bln').val(formatter.format(keuntungan_6bln.toFixed(2)));
|
||||
$('#ujrah').val(formatter.format(array_keuntungan['ujrah'].toFixed(2)));
|
||||
$('#onepercent').val(formatter.format(array_keuntungan['onepercent'].toFixed(2)));
|
||||
});
|
||||
|
||||
const formatter = new Intl.NumberFormat('en-US', {
|
||||
+57
-10
@@ -109,14 +109,14 @@
|
||||
<div class="col-4">
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
Keuntungan Sebulan
|
||||
Pendapatan Sebulan
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="text" class="form-control" readonly name="keuntungan_sebulan" id="keuntungan_sebulan">
|
||||
</div>
|
||||
</diV>
|
||||
</div>
|
||||
<div class="col-3 d-none">
|
||||
<div class="col-3">
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
Ujrah
|
||||
@@ -126,17 +126,17 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-1">
|
||||
{{-- <div class="col-1">
|
||||
<div class="form-group row">
|
||||
</div>
|
||||
</div>
|
||||
</div> --}}
|
||||
<div class="col-md-5">
|
||||
<div class="form-group row">
|
||||
<div class="col-5">
|
||||
Pembiayaan
|
||||
</div>
|
||||
<div class="col-7 input-group">
|
||||
<input type="text" class="form-control" name="pinjaman" id="pinjaman">
|
||||
<input type="text" class="form-control" onpaste="return false;" ondrop="return false;" onkeypress="return validateFloatKeyPress(this,event);" name="pinjaman" id="pinjaman">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text span-pinjaman">0 %</span>
|
||||
</div>
|
||||
@@ -146,17 +146,17 @@
|
||||
<div class="col-4">
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
Keuntungan 6 Bulan
|
||||
Pendapatan 6 Bulan
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="text" class="form-control" readonly name="keuntungan_6bln" id="keuntungan_6bln">
|
||||
</div>
|
||||
</diV>
|
||||
</div>
|
||||
<div class="col-3 d-none">
|
||||
<div class="col-3">
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
One Percent
|
||||
Keuntungan
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="text" class="form-control" readonly name="onepercent" id="onepercent">
|
||||
@@ -458,8 +458,8 @@
|
||||
$('.span-pinjaman-max').text(formatter.format(pinjaman_teller) + ' %');
|
||||
var max_teller = total_nilai_marhun * (pinjaman_teller/100);
|
||||
var max_pelulus = total_nilai_marhun * (pinjaman_pelulus/100);
|
||||
$('#pembiayaan_max_teller').val(formatter.format(max_teller));
|
||||
$('#pembiyaan_max_pelulus').val(formatter.format(max_pelulus));
|
||||
$('#pembiayaan_max_teller').val(formatter.format(max_teller.toFixed(2)));
|
||||
$('#pembiyaan_max_pelulus').val(formatter.format(max_pelulus.toFixed(2)));
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -484,6 +484,7 @@
|
||||
'pembiayaan' : pinjaman,
|
||||
'kadarujrah' : kadarupah,
|
||||
'margin' : percent_pinjaman,
|
||||
'kodcaw' : "{{ Auth::user()->cawangan }}"
|
||||
},
|
||||
success:function(data){
|
||||
array_keuntungan = data;
|
||||
@@ -1242,5 +1243,51 @@
|
||||
$('#nilaimarhun_edit').val(formatter.format(total));
|
||||
}
|
||||
|
||||
function validateFloatKeyPress(el, evt) {
|
||||
var charCode = (evt.which) ? evt.which : event.keyCode;
|
||||
var number = el.value;
|
||||
let keypress = evt.key;
|
||||
|
||||
// Split the current value by dot to check the number of decimal places
|
||||
var numberParts = number.split('.');
|
||||
|
||||
// Check if the pressed key is a valid character for a floating-point number
|
||||
if (charCode != 46 && charCode > 31 && (charCode < 48 || charCode > 57)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Check if there is already a dot, and the pressed key is another dot
|
||||
if (numberParts.length > 1 && charCode == 46) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Get the caret position in the input field
|
||||
var caratPos = getSelectionStart(el);
|
||||
|
||||
// Get the position of the existing dot
|
||||
var dotPos = el.value.indexOf(".");
|
||||
|
||||
// Check if the caret is after the existing dot, and there are more than 2 digits after the dot
|
||||
if (caratPos > dotPos && dotPos > -1 && (numberParts[1] && numberParts[1].length > 1)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// If the last digit is not 5 or 0, disallow the input
|
||||
if (numberParts[1] && numberParts[1].length === 1 && !['0', '5'].includes(keypress)) {
|
||||
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
|
||||
}
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
@@ -0,0 +1,27 @@
|
||||
@extends('layouts.app_operasi')
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row justify-content-center mt-5">
|
||||
<div class="col-md-8">
|
||||
<div class="card">
|
||||
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb pb-3">
|
||||
<li class="breadcrumb-item"><a href="#">Home</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Call Center</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<div class="card-body text-center">
|
||||
<a href="{{ route('arcc.pelanggan') }}" class="btn btn-info btn-lg">Pelanggan</a>
|
||||
<a href="{{ route('arcc.notisperingatan') }}" class="btn btn-info btn-lg">Notis Peringatan</a>
|
||||
{{-- <a href="{{ route('daftar.kakitangan') }}" class="btn btn-info btn-lg">Kakitangan</a>
|
||||
<a href="{{ route('parameter') }}" class="btn btn-info btn-lg">Parameter</a>
|
||||
<a href="{{ route('komuditi') }}" class="btn btn-info btn-lg">Komoditi</a> --}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -257,6 +257,10 @@
|
||||
<a href="{{ url('pendahuluanserahan') }}"
|
||||
class="btn btn-info btn-lg btn-block mb-3">Pendahuluan - Serahan</a>
|
||||
</div>
|
||||
<div class="row">
|
||||
<a href="{{ route('khazanah.indexwakil') }}"
|
||||
class="btn btn-info btn-lg btn-block mb-3">Surat Wakil</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-3 mx-1">
|
||||
{{-- <div class="row">
|
||||
|
||||
@@ -135,6 +135,8 @@
|
||||
<th>Pembiayaan (RM)</th>
|
||||
<th>Nilai Marhun (RM)</th>
|
||||
<th>Berat (g)</th>
|
||||
<th>Surat Wakil</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -143,14 +145,14 @@
|
||||
@foreach($gadaian_semasa as $index=>$gadaian)
|
||||
<tr>
|
||||
<td>{{ $count }}</td>
|
||||
<td>
|
||||
<td style="white-space: nowrap">
|
||||
@php
|
||||
$customer_info = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/customers/'. $gadaian['nokp'])->json();
|
||||
echo ($customer_info['nama']);
|
||||
@endphp
|
||||
</td>
|
||||
<td>{{ $gadaian['nokp'] }}</td>
|
||||
<td>
|
||||
<td style="white-space: nowrap">
|
||||
@php
|
||||
$marhun = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/marhun/' . $gadaian['norujukan'] )->json();
|
||||
@endphp
|
||||
@@ -159,6 +161,7 @@
|
||||
<td>{{ number_format($gadaian['pinjaman'],2) }}</td>
|
||||
<td>{{ number_format($gadaian['nilaimarhun'],2) }}</td>
|
||||
<td>{{ number_format($gadaian['berat'],2) }}</td>
|
||||
<td><a href="{{ route('penilai.print.suratwakil',$gadaian['norujukan']) }}" target='_blank' class="float-center btn btn-info mr-2"><i class='fas fa-print'></i></a></td>
|
||||
</tr>
|
||||
@php $count++; @endphp
|
||||
@endforeach
|
||||
@@ -182,6 +185,7 @@
|
||||
<th>Pembiayaan (RM)</th>
|
||||
<th>Nilai Marhun (RM)</th>
|
||||
<th>Berat (g)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -204,6 +208,7 @@
|
||||
<td>{{ number_format($gadaian['pinjaman'],2) }}</td>
|
||||
<td>{{ number_format($gadaian['nilaimarhun'],2) }}</td>
|
||||
<td>{{ number_format($gadaian['berat'],2) }}</td>
|
||||
|
||||
</tr>
|
||||
@php $count++; @endphp
|
||||
@endforeach
|
||||
|
||||
@@ -12,13 +12,22 @@
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
@php
|
||||
$auth_user = Auth::user();
|
||||
$cawangan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
$version = $cawangan['version'];
|
||||
@endphp
|
||||
|
||||
<div class="card-body text-center">
|
||||
|
||||
<div class="row form-group justify-content-center">
|
||||
<div class="col-3 mx-1" >
|
||||
<div class="row">
|
||||
{{-- <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>
|
||||
@if($version == 'v1')
|
||||
<a href="{{ route('laporan.gadaian') }}" class="btn btn-dark btn-lg btn-block mb-3">Gadaian</a>
|
||||
@else
|
||||
<a href="{{ route('laporan.gadaianujrah') }}" class="btn btn-dark btn-lg btn-block mb-3">Gadaian</a>
|
||||
@endif
|
||||
</div>
|
||||
<div class="row d-none">
|
||||
{{-- <a href="{{ route('laporan.lelongan') }}" class="btn btn-dark btn-lg btn-block mb-3">Lelongan</a> --}}
|
||||
@@ -54,8 +63,11 @@
|
||||
</div>
|
||||
<div class="col-3 mx-1">
|
||||
<div class="row">
|
||||
{{-- <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>
|
||||
@if($version == 'v1')
|
||||
<a href="{{ route('laporan.tebus') }}" class="btn btn-dark btn-lg btn-block mb-3">Penebusan</a>
|
||||
@else
|
||||
<a href="{{ route('laporan.tebusujrah') }}" class="btn btn-dark btn-lg btn-block mb-3">Penebusan</a>
|
||||
@endif
|
||||
</div>
|
||||
<div class="row">
|
||||
<a href="{{ route('laporan.kawalanstok') }}" class="btn btn-dark btn-lg btn-block mb-3">Kawalan Stok Produk</a>
|
||||
|
||||
@@ -0,0 +1,182 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
|
||||
|
||||
@section('content')
|
||||
@include('modal.historytebus')
|
||||
@include('modal.wakil')
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-12 col-lg-12">
|
||||
|
||||
<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="{{ url('/khazanah/indexwakil') }}">ID Pelanggan</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Senarai Surat Pelanggan</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<div class="form-group row col-md-12">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group row">
|
||||
<div class="col-md-4">
|
||||
<b>Nama</b>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<input type="text" class="form-control" name="name" id="name" readonly value="{{ $customer_info['nama'] }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group row">
|
||||
<div class="col-md-4">
|
||||
<b>No Kad Pengenalan</b>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
@php
|
||||
if($customer_info['kpbaru'] != null){
|
||||
$noic = $customer_info['kpbaru'];
|
||||
}else{
|
||||
$noic = $customer_info['kplama'];
|
||||
}
|
||||
@endphp
|
||||
<input type="text" class="form-control" name="noic" id="noic" readonly value="{{ $noic }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-4">
|
||||
<b>No Telefon</b>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<input type="text" class="form-control" name="cust_telefon" id="cust_telefon" readonly value="{{ $customer_info['telefon'] ? $customer_info['telefon'] : '' }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-4">
|
||||
<b>Alamat </b>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<input type="text" class="form-control" name="alamat" id="alamat" readonly value="{{$customer_info['alamat1'] }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
|
||||
<div class="tab-content" id="listsagpelanggan">
|
||||
|
||||
<div id="listsag" role="tabpanel" aria-labelledby="listsag-tab">
|
||||
<table id="xtawarruq" class="table table-striped table-hover">
|
||||
<thead class="thead-dark">
|
||||
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
<th>No Rujukan</th>
|
||||
<th>Tarikh Gadai</th>
|
||||
<th>Tempoh</th>
|
||||
<th>Surat Wakil</th>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
var api_arrahnbid = "<?php echo config('app.api_arrahnbid') ?>";
|
||||
var api_url = "<?php echo $api_url ?>";
|
||||
var kodcaw = "{{ $cawangan_info['kodcaw'] }}";
|
||||
var tagarrahnbid = "{{ $cawangan_info['tagarrahnbid'] }}";
|
||||
|
||||
|
||||
var tablegadai = $('#myTable').DataTable({
|
||||
"scrollX": false,
|
||||
order: [[1,'desc']]
|
||||
});
|
||||
|
||||
var xtawarruq = $('#xtawarruq').DataTable({
|
||||
"scrollX": false
|
||||
});
|
||||
|
||||
const formatter = new Intl.NumberFormat('en-US', {
|
||||
minimumFractionDigits: 2
|
||||
});
|
||||
|
||||
|
||||
function gadaiTable(data,jenistebus){
|
||||
|
||||
var counter = 1;
|
||||
tablegadai.clear().draw();
|
||||
xtawarruq.clear().draw();
|
||||
$.each(data,function(index,gadai_detail){
|
||||
|
||||
// console.log(gadai_detail);
|
||||
|
||||
// console.log(route_norujukan);
|
||||
$.ajax({
|
||||
method:'get',
|
||||
url:api_url + '/api/upahtawarruq/'+ gadai_detail['kodcaw'] +'/' + gadai_detail['norujukan'],
|
||||
|
||||
|
||||
success:function(sag){
|
||||
|
||||
var urlroute = '{{ route("khazanah.print.suratwakil", ":id") }}';
|
||||
urlroute = urlroute.replace(':id', gadai_detail["norujukan"]);
|
||||
|
||||
let table_norujukan = gadai_detail["norujukan"];
|
||||
xtawarruq.row.add([
|
||||
counter,
|
||||
gadai_detail['norujukan'],
|
||||
gadai_detail['t_gadai'],
|
||||
gadai_detail['tempoh'],
|
||||
"<a class='btn m-1 btn-info' data-toggle='tooltip' data-placement='top' target='_blank' href="+ urlroute +"><i class='fas fa-print'></i></a>",
|
||||
|
||||
]).draw();
|
||||
|
||||
counter = counter + 1;
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready( function () {
|
||||
|
||||
var noic = $("#noic").val();
|
||||
|
||||
$.ajax({
|
||||
method:"GET",
|
||||
url: api_url + "/api/customers/"+noic+"/gadai/belum_tebus/"+kodcaw,
|
||||
success: function(data){
|
||||
$('#myTable').parents('div.dataTables_wrapper').first().show();
|
||||
gadaiTable(data,"belum_tebus");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,256 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<style>
|
||||
.file {
|
||||
visibility: hidden;
|
||||
position: absolute;
|
||||
}
|
||||
</style>
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb pb-3">
|
||||
<li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Surat Wakil</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="text-center">
|
||||
<h5 class="text-uppercase">masukkan nombor kad pengenalan</h5>
|
||||
<form name="frmsearch" onsubmit="verifynokp()" action="{{ route('khazanah.suratwakil') }}" method="GET">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-9">
|
||||
<div class="input-group my-3">
|
||||
<input type="text" class="form-control" id="noic" name="noic" placeholder="No Kad Pengenalan Pelanggan" aria-label="No Kad Pengenalan Pelanggan" autocomplete="off" value="{{$search == false ? '' : $noic ?? ''}}" aria-describedby="button-addon2">
|
||||
<div class="input-group-append">
|
||||
<select class="form-select" id="customerIDType" name="customerIDType" class="form-control">
|
||||
<option value="nokp" {{ $idtype == 'nokp' ? 'selected' : ''}}>Kad Pengenalan</option>
|
||||
<option value="passport" {{ $idtype == 'passport' ? 'selected' : ''}}>Passport</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="input-group-append">
|
||||
<button class="btn btn-outline-primary" type="submit" id="button-addon2">Cari</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- Modal No KP -->
|
||||
|
||||
<!-- Modal Passport -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
var api_url = "<?php echo $api_url ?>";
|
||||
var search = "<?php echo $search ?>";
|
||||
var type_id = "<?php echo $idtype ?>";
|
||||
$(document).ready(function(){
|
||||
$('#passport_tarikh_lahir').datepicker({
|
||||
format: 'dd/mm/yyyy',
|
||||
endDate: new Date()
|
||||
});
|
||||
var noic = $('#noic').val();
|
||||
identifyIC(noic);
|
||||
|
||||
if(search == true){
|
||||
Swal.fire({
|
||||
icon: 'info',
|
||||
title: 'Pelanggan Tiada Dalam Rekod Cawangan',
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
function identifyIC(noic){
|
||||
if(noic.match(/^(\d{2})(\d{2})(\d{2})-?\d{2}-?\d{4}$/)) {
|
||||
var year = noic.slice(0,2);
|
||||
var month = noic.slice(2,4);
|
||||
var day = noic.slice(4,6);
|
||||
var nl = noic.slice(6,8);
|
||||
var last_ic = noic.slice(8,12);
|
||||
|
||||
var now = new Date().getFullYear().toString();
|
||||
|
||||
var decade = now.substr(0, 2);
|
||||
if (now.substr(2,2) > year) {
|
||||
year = parseInt(decade.concat(year.toString()), 10);
|
||||
}
|
||||
|
||||
if (parseInt(last_ic,10)%2 != 0){
|
||||
var jantina = 'Lelaki';
|
||||
}
|
||||
else{
|
||||
var jantina = 'Perempuan';
|
||||
}
|
||||
|
||||
var johor_ic = ['01','21','22','23','24'];
|
||||
var kedah_ic = ['02','25','26','27'];
|
||||
var kelantan_ic = ['03','28','29'];
|
||||
var melaka_ic = ['04','30'];
|
||||
var negeri_ic = ['05','31','59'];
|
||||
var pahang_ic = ['06','32','33'];
|
||||
var penang_ic = ['07','34','35'];
|
||||
var perak_ic = ['08','36','37','38','39'];
|
||||
var perlis_ic = ['09','40'];
|
||||
var selangor_ic = ['10','41','42','43','44'];
|
||||
var terengganu_ic = ['11','45','46'];
|
||||
var sabah_ic = ['12','47','48','49'];
|
||||
var sarawak_ic = ['13','50','51','52','53'];
|
||||
var kl_ic = ['14','54','55','56','57'];
|
||||
var labuan_ic = ['15','58'];
|
||||
var putrajaya_ic = ['16'];
|
||||
var unknown_ic = ['82'];
|
||||
|
||||
if(johor_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Johor';
|
||||
}else if(kedah_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Kedah';
|
||||
}else if(kelantan_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Kelantan';
|
||||
}else if(melaka_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Melaka';
|
||||
}else if(negeri_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Negeri Sembilan';
|
||||
}else if(pahang_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Pahang';
|
||||
}else if(penang_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Pulau Pinang';
|
||||
}else if(perak_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Perak';
|
||||
}else if(perlis_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Perlis';
|
||||
}else if(selangor_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Selangor';
|
||||
}else if(terengganu_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Terengganu';
|
||||
}else if(sabah_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Sabah';
|
||||
}else if(sarawak_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Sarawak';
|
||||
}else if(kl_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Kuala Lumpur';
|
||||
}else if(labuan_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Labuan';
|
||||
}else if(putrajaya_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Putrajaya';
|
||||
}else if(unknown_ic.indexOf(nl)>=0){
|
||||
var negeri_lahir = 'Negeri Tidak Diketahui';
|
||||
}
|
||||
var date = new Date(year, (month - 1), day, 0, 0, 0, 0);
|
||||
var tarikh_lahir_test = date.getFullYear() + '-' + month + '-' + day;
|
||||
|
||||
var count_leap_year = countLeapYears(date.getFullYear(),month,day) - 1;
|
||||
|
||||
var start = new Date(tarikh_lahir_test),
|
||||
end = new Date(),
|
||||
diff = new Date(end - start),
|
||||
days = ((diff/1000/60/60/24)- count_leap_year)/365;
|
||||
|
||||
var age = parseInt(days);
|
||||
$('#age').val(age);
|
||||
var tarikh_lahir = day + '/' + month + '/' + date.getFullYear();
|
||||
$('#jantina').val(jantina);
|
||||
$('#tarikh_lahir').val(tarikh_lahir);
|
||||
$('#negeri_lahir').val(negeri_lahir);
|
||||
}
|
||||
}
|
||||
|
||||
var countLeapYears = function(y,m,d){
|
||||
var yearNow = new Date().getFullYear(),
|
||||
yearThen = y,
|
||||
beginYear = 0,
|
||||
endYear = 0,
|
||||
leapYearCount = 0;
|
||||
|
||||
var isLeapYear = function(year){
|
||||
return ((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0);
|
||||
}
|
||||
|
||||
if(yearNow < y){
|
||||
beginYear = yearNow;
|
||||
endYear = y;
|
||||
}else if(yearNow > y){
|
||||
beginYear = y;
|
||||
endYear = yearNow;
|
||||
}else if(yearNow == y){
|
||||
beginYear = y;
|
||||
endYear = y;
|
||||
}
|
||||
|
||||
for(i = beginYear; i <= endYear; i++){
|
||||
if(isLeapYear(i)){
|
||||
leapYearCount++;
|
||||
}
|
||||
}
|
||||
|
||||
return leapYearCount;
|
||||
}
|
||||
var regex = /^[a-zA-Z0-9]+$/g;
|
||||
|
||||
function verifynokp(){
|
||||
var id_type = $('#customerIDType').val();
|
||||
var nokp = $('#noic').val();
|
||||
if(id_type=='nokp'){
|
||||
if($.isNumeric(nokp) == false){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Sila Masukkan Nombor Sahaja Pada No KP Pelanggan'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
if(nokp.length != 12){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Sila Periksa No KP Pelanggan'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
}else if(id_type=='passport'){
|
||||
if(nokp.length < 5){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Sila Periksa Passport Pelanggan'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
if(nokp.indexOf(' ') > 0){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Sila Masukkan Passport Tanpa Ruang \'Kosong\' \n e.g(AP1111111)'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
if(regex.test(nokp) == false){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
text: 'Sila Periksa Passport Pelanggan'
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
@@ -10,22 +10,25 @@
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
<div class="col-4">
|
||||
<div class="col-3">
|
||||
<div class="small-box bg-warning text-center"><div class="inner"><b>Harga Jualan : <span id="hargajualanmodal"></span></b></div></div>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<div class="col-3">
|
||||
<div class="small-box bg-warning text-center"><div class="inner"><b>Pembiayaan : <span id="pembiayaanmodal"></span></b></div></div>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<div class="col-3">
|
||||
<div class="small-box bg-warning text-center"><div class="inner"><b>Nilai Marhun : <span id="nilaimarhunmodal"></span></b></div></div>
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<div class="small-box bg-warning text-center"><div class="inner"><b>Marhun : <span id="marhunmodal"></span></b></div></div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="nav nav-tabs" id="custom-tabs-one-tab" role="tablist">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" id="custom-tabs-one-home-tab" data-toggle="pill" href="#custom-tabs-one-home" role="tab" aria-controls="custom-tabs-one-home" aria-selected="true">Bayaran</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="custom-tabs-upah-tab" data-toggle="pill" href="#custom-tabs-upah" role="tab" aria-controls="custom-tabs-upah" aria-selected="false">Upah</a>
|
||||
<a class="nav-link" id="custom-tabs-upah-tab" data-toggle="pill" href="#custom-tabs-upah" role="tab" aria-controls="custom-tabs-upah" aria-selected="false">Keuntungan</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="custom-tabs-one-profile-tab" data-toggle="pill" href="#custom-tabs-one-profile" role="tab" aria-controls="custom-tabs-one-profile" aria-selected="false">Rekod</a>
|
||||
@@ -54,7 +57,7 @@
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
<th>Tarikh</th>
|
||||
<th>Upah</th>
|
||||
<th>Keuntungan</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
<select class="form-control" name="cawangan" data-placeholder="Pilih Cawangan" id="cawangan">
|
||||
<option disabled selected value> -- Pilih Cawangan -- </option>
|
||||
<option value="operasi">Operasi</option>
|
||||
<option value="callcenter">Call Center</option>
|
||||
@foreach($cawangan_all as $cawangan)
|
||||
<option value="{{ $cawangan['kodcaw'] }}">{{ $cawangan['details_caw'] }}</option>
|
||||
@endforeach
|
||||
|
||||
+1
-1
@@ -1077,4 +1077,4 @@ function ubahwakil(e)
|
||||
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
@endsection
|
||||
File diff suppressed because it is too large
Load Diff
+108
-32
@@ -167,7 +167,7 @@
|
||||
<div class="card-body">
|
||||
<form action="">
|
||||
<div class="col-12 form-group row">
|
||||
<div class="col-6" id="divbakihargajualan">
|
||||
<div class="col-6 flex-column-reverse d-flex" id="divbakihargajualan">
|
||||
<div class="form-group row">
|
||||
<div class="col-4">
|
||||
BAKI HARGA JUALAN(RM)
|
||||
@@ -206,9 +206,31 @@
|
||||
</div>
|
||||
|
||||
<div class="col-6">
|
||||
@if($gadai['tagbaru'] == 1)
|
||||
<div class="form-group row">
|
||||
<div class="col-4">
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<span>UJRAH</span>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<span>KEUNTUNGAN</span>
|
||||
</div>
|
||||
|
||||
<div class="col-4">
|
||||
</div>
|
||||
|
||||
<div class="col-4">
|
||||
<input type="text" id="jumujrah" class="form-control" readonly/>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<input type="text" id="jumonepercent" class="form-control" readonly/>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
<div class="form-group row">
|
||||
<div class="col-4">
|
||||
JUMLAH KEUNTUNGAN
|
||||
JUMLAH PENDAPATAN
|
||||
</div>
|
||||
<div class="col-8">
|
||||
<input type="text" id="jumlahupah" class="form-control" readonly/>
|
||||
@@ -384,7 +406,7 @@
|
||||
@endif
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="col-6" id="divbayaranditerima">
|
||||
<div class="form-group row">
|
||||
@@ -421,7 +443,6 @@
|
||||
@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>
|
||||
@@ -564,16 +585,30 @@
|
||||
let jeniskeuntungan = (tagbaru == 1) ? 'onepercent' : 'asal';
|
||||
$.ajax({
|
||||
method:'GET',
|
||||
url: api + '/api/upahtawarruq/' + kodcaw + '/' + norujukan + '/' + jeniskeuntungan,
|
||||
url: api + '/api/upahtawarruq/' + kodcaw + '/' + norujukan,
|
||||
data: {
|
||||
'jeniskeuntungan' : jeniskeuntungan
|
||||
},
|
||||
dataType: 'json',
|
||||
success:function(data){
|
||||
$('#jumlahupah').val(data);
|
||||
if(jeniskeuntungan == 'asal')
|
||||
{
|
||||
$('#jumlahupah').val(data);
|
||||
}else{
|
||||
$('#jumlahupah').val(data['pendapatan']);
|
||||
$('#jumujrah').val(data['ujrah']);
|
||||
$('#jumonepercent').val(data['keuntungan']);
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
$.ajax({
|
||||
method:'GET',
|
||||
url: api + '/api/upahrebettawarruq/' + kodcaw + '/' + norujukan + '/' + jeniskeuntungan,
|
||||
url: api + '/api/upahrebettawarruq/' + kodcaw + '/' + norujukan,
|
||||
data: {
|
||||
'jeniskeuntungan' : jeniskeuntungan
|
||||
},
|
||||
dataType: 'json',
|
||||
success:function(data){
|
||||
$('#bayaranditerima').val(data);
|
||||
@@ -1176,6 +1211,7 @@
|
||||
{
|
||||
$("#terima_transaksi").prop('disabled', true);
|
||||
var jumupah = parseFloat($('#jumlahupah').val().replace(/[^0-9.-]+/g,""));
|
||||
|
||||
if($('#sltjenistebus').find(":selected").val() == 'T'){
|
||||
|
||||
var adadah = false;
|
||||
@@ -1257,7 +1293,16 @@
|
||||
var nowakil = nw;
|
||||
var duitpelanggan = $('#duitPelanggan').val().replace(/[^0-9.-]+/g,"");
|
||||
var bakipelanggan = $('#bakiPelanggan').val().replace(/[^0-9.-]+/g,"");
|
||||
console.log('test');
|
||||
|
||||
|
||||
if(Number(duitpelanggan) < Number(bakipinjaman)){
|
||||
Swal.fire('Amaran!','Duit Pelanggan haruslah diisi melebihi perlu dibayar!','error');
|
||||
$("#terima_transaksi").prop('disabled', false);
|
||||
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
method:'get',
|
||||
datatype: 'json',
|
||||
@@ -1376,6 +1421,15 @@
|
||||
var duitpelanggan = parseFloat($('#duitPelanggan').val().replace(/[^0-9.-]+/g,""));
|
||||
var bakipelanggan = parseFloat($('#bakiPelanggan').val().replace(/[^0-9.-]+/g,""));
|
||||
|
||||
if(isNaN(duitpelanggan)) duitpelanggan = 0;
|
||||
|
||||
if(Number(duitpelanggan) < Number(bayar)){
|
||||
Swal.fire('Amaran!','Duit Pelanggan haruslah diisi melebihi perlu dibayar!','error');
|
||||
$("#terima_transaksi").prop('disabled', false);
|
||||
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
|
||||
if(bayar < jumupah){
|
||||
$("#terima_transaksi").prop('disabled', false);
|
||||
@@ -1411,7 +1465,7 @@
|
||||
},
|
||||
success:function(success_data){
|
||||
|
||||
if(success_data != 'error'){
|
||||
if(success_data == 'success'){
|
||||
var urlroute = '{{ route("resit.ansurans", ":id") }}';
|
||||
urlroute = urlroute.replace(':id', norujukan);
|
||||
|
||||
@@ -1430,7 +1484,7 @@
|
||||
'error'
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
@@ -2177,20 +2231,31 @@
|
||||
var pinjaman_baru = parseFloat($('#pinjamanbaru').val().replace(/[^0-9.-]+/g,""));
|
||||
|
||||
let lebihanmargin = parseFloat((nilaimargin) ? nilaimargin : 0);
|
||||
total = keuntungan + lebihanmargin;
|
||||
total = (jenisAT != 'hargalama') ? (keuntungan + lebihanmargin) : keuntungan;
|
||||
|
||||
var marginsemasa = (jenisAT == 'hargalama') ? pinjaman_baru/nm * 100 : pinjaman_baru/nmsemasa * 100;
|
||||
|
||||
|
||||
let texting = (jenisAT != 'hargalama') ? 'Bayaran harus melebihi keuntungan dan jumlah lebihan margin' : 'Bayaran harus melebihi keuntungan';
|
||||
if(parseFloat($('#perludibayarAT').val()) < parseFloat(total.toFixed(2))){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Ralat Bayaran!',
|
||||
text: 'Bayaran harus melebihi keuntungan dan jumlah lebihan margin'
|
||||
text: texting
|
||||
});
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
|
||||
var duitpelanggan = parseFloat($('#duitPelanggan').val().replace(/[^0-9.-]+/g,""));
|
||||
|
||||
if(Number(duitpelanggan) < parseFloat($('#perludibayarAT').val())){
|
||||
Swal.fire('Amaran!','Duit Pelanggan haruslah diisi melebihi perlu dibayar!','error');
|
||||
$("#terima_transaksi").prop('disabled', false);
|
||||
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
method:'get',
|
||||
url: api + '/api/komuditi/check',
|
||||
@@ -2252,8 +2317,8 @@
|
||||
if (result.isConfirmed) {
|
||||
|
||||
let nm = nmsemasa;let ber = $('#berat_marhun_total').text();let marg = marginsemasa;
|
||||
// let komen = "Pembiayaan Melebihi Margin 70%|" + nmsemasa + "|" + ber + "|" + marg + "| Auto Tawarruq";
|
||||
let status = "[Auto Tawarruq] Pembiayaan Melebihi Margin " + pinjaman_teller + "%";
|
||||
// let komen = "Pembiayaan Melebihi Margin 70%|" + nmsemasa + "|" + ber + "|" + marg + "| Pembiayaan Semula";
|
||||
let status = "[Pembiayaan Semula] Pembiayaan Melebihi Margin " + pinjaman_teller + "%";
|
||||
let teller = "{{ Auth::user()->name }}";
|
||||
|
||||
Swal.fire({
|
||||
@@ -2375,7 +2440,7 @@
|
||||
let komen = '';
|
||||
if(pinjamanbaru >= 10000)
|
||||
{
|
||||
komen = "[Auto Tawarruq] Pembiayaan Melebihi RM 10,000";
|
||||
komen = "[Pembiayaan Semula] Pembiayaan Melebihi RM 10,000";
|
||||
}
|
||||
let status = komen;
|
||||
|
||||
@@ -2474,7 +2539,7 @@
|
||||
|
||||
}else if(marginsemasa > 80){
|
||||
|
||||
|
||||
|
||||
// $("#terima_transaksi").prop('disabled', false);
|
||||
// Swal.fire(
|
||||
// 'Amaran!',
|
||||
@@ -2501,6 +2566,7 @@
|
||||
function gadaiautotawarruq()
|
||||
{
|
||||
|
||||
let jeniskeuntungan = (tagbaru == 1) ? 'onepercent' : 'asal';
|
||||
var nopelanggan = "{{ $gadai['nopelanggan'] }}";
|
||||
var jenistebus = 'T';
|
||||
var jbg = "{{ $gadai['tempoh'] }}";
|
||||
@@ -2575,7 +2641,7 @@
|
||||
"nowakil" : nowakil,
|
||||
"jenisbayarantebus" : "nottawarruq",
|
||||
"teller" : teller,
|
||||
|
||||
"jeniskeuntungan" : jeniskeuntungan,
|
||||
|
||||
//yang baru
|
||||
"noic" : noic,
|
||||
@@ -2599,12 +2665,11 @@
|
||||
urlroute = urlroute.replace(':id', norujukan);
|
||||
Swal.fire(
|
||||
'Berjaya!',
|
||||
'Tebus Auto Tawarruq Berjaya',
|
||||
'Tebus Pembiayaan Semula Berjaya',
|
||||
'success'
|
||||
) .then(function() {
|
||||
window.open(urlroute, '_blank');
|
||||
//add query params to signal tebus auto tawarruq berjaya to controller
|
||||
window.location.replace("{{ route('customer_info') . '?tebus_auto_tawarruq_berjaya=true' }}");
|
||||
window.location.replace("{{ route('customer_info') }}");
|
||||
})
|
||||
},error: function (request, status, error) {
|
||||
console.log(request.responseText);
|
||||
@@ -3207,10 +3272,14 @@ function pembatalanbalik()
|
||||
|
||||
function funcexcuse(toggle){
|
||||
|
||||
if(toggle){
|
||||
|
||||
|
||||
if(toggle){
|
||||
let pembiayaan = parseFloat($('#hargapembiayaansemasa').val().replace(/[^0-9.-]+/g,""));
|
||||
var jumupah = parseFloat($('#jumlahupah').val().replace(/[^0-9.-]+/g,""));
|
||||
let percentasal = parseFloat('{{ number_format($percent_asal,2) }}');
|
||||
var nilai_marhun_lama = parseFloat("{{ $gadai['nilaimarhun'] }}");
|
||||
var bakipjm = parseFloat("{{ $gadai['bakipjm'] }}");
|
||||
|
||||
const swalWithBootstrapButtons = Swal.mixin({
|
||||
customClass: {
|
||||
@@ -3220,7 +3289,7 @@ function funcexcuse(toggle){
|
||||
buttonsStyling: false
|
||||
});
|
||||
|
||||
var errortext = "[Auto Tawarruq] Menggunakan Harga Lama & Margin Lama";
|
||||
var errortext = "[Pembiayaan Semula] Menggunakan Harga Lama & Margin Lama";
|
||||
|
||||
swalWithBootstrapButtons.fire({
|
||||
title: 'Dapatkan Pengesahan Operasi',
|
||||
@@ -3263,9 +3332,9 @@ function funcexcuse(toggle){
|
||||
"komen" : '',
|
||||
"margin" : marg,
|
||||
"berat" : ber,
|
||||
"nilaimarhun" : nm,
|
||||
"nilaimarhun" : nilai_marhun_lama,
|
||||
"status" : status,
|
||||
"jumpinjam" : jumpinjam,
|
||||
"jumpinjam" : bakipjm,
|
||||
"teller" : teller
|
||||
},
|
||||
success:function(data){
|
||||
@@ -3376,7 +3445,7 @@ function validateFloatKeyPress(el, evt) {
|
||||
|
||||
//total pembiayaan baru
|
||||
pembiayaanbaru = pembiayaan - parseFloat(tot);
|
||||
|
||||
|
||||
//get the carat position
|
||||
var caratPos = getSelectionStart(el);
|
||||
var dotPos = el.value.indexOf(".");
|
||||
@@ -3413,7 +3482,7 @@ function bayaranATfunc(e){
|
||||
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());
|
||||
@@ -3450,19 +3519,26 @@ function blockbayaranAT(event){
|
||||
let value = $(event).val();
|
||||
let upah = parseFloat($('#jumlahupah').val());
|
||||
let pembiayaan = parseFloat("{{ $pembiayaanbaru }}");
|
||||
let pembiayaanlama = parseFloat("{{ $bakipjm }}");
|
||||
let hargamarhun = parseFloat("{{ $nilaihargasemasa }}");
|
||||
let percentlama = parseFloat(" {{ $percent_asal }} ");
|
||||
|
||||
totalpercent = (pembiayaan / hargamarhun) * 100;
|
||||
|
||||
let nilaimargin = $('#txtlebihanmargin').val();
|
||||
let lebihanmargin = parseFloat((nilaimargin) ? nilaimargin : 0);
|
||||
total = upah + lebihanmargin;
|
||||
total = (jenisAT != 'hargalama') ? (upah + lebihanmargin) : upah;
|
||||
|
||||
if(value == '' || value <= 0 || value < total){
|
||||
$('#perludibayarAT').val(formatter.format(total));
|
||||
$('#pinjamanbaru').val(formatter.format(pembiayaan));
|
||||
$('#basic-addon2').text(formatter.format(totalpercent.toFixed(2)));
|
||||
|
||||
if(jenisAT != 'hargalama'){
|
||||
$('#perludibayarAT').val(formatter.format(total));
|
||||
$('#pinjamanbaru').val(formatter.format(pembiayaan));
|
||||
$('#basic-addon2').text(formatter.format(totalpercent.toFixed(2)));
|
||||
}else{
|
||||
$('#perludibayarAT').val(formatter.format(total));
|
||||
$('#pinjamanbaru').val(formatter.format(pembiayaanlama));
|
||||
$('#basic-addon2').text(formatter.format(percentlama.toFixed(2)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,265 @@
|
||||
<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 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>
|
||||
<tr>
|
||||
<td style="width:10px"> <b>TARIKH</b></td>
|
||||
<td>@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $tebus_date);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate)
|
||||
@endphp</td>
|
||||
<td style="width:50px">
|
||||
</td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
<table id="details">
|
||||
<thead>
|
||||
<th>Bil</th>
|
||||
<th>Norujukan</th>
|
||||
<th>JBG</th>
|
||||
<th>No. KP</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
|
||||
@foreach($stokaudit['rekod'] as $index=>$item)
|
||||
@php if($item['hargajualan'] == null) $totalpinjaman += $item['pinjaman']; else $totalpinjaman += $item['bakipjm']; @endphp
|
||||
<tr>
|
||||
<td>{{ $counter }}</td>
|
||||
<td>{{$item['norujukan']}}</td>
|
||||
<td>{{ $item['tempoh'] }}</td>
|
||||
<td>{{$item['nokp']}}</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['bakipjm'],2) }}</td>
|
||||
<td>{{ number_format($item['kadarupah'],2) }}</td>
|
||||
<td>{{ number_format($item['tempoh'] - $item['tempohbayar'],2) }}</td>
|
||||
<td>{{ number_format($item['tunggakan'],2) }}</td>
|
||||
{{-- <td>{{ number_format($item['pinjaman'],2) }}</td> --}}
|
||||
<td>{{$item['lelong_tawarruq']}}</td>
|
||||
</tr>
|
||||
@php $counter++; @endphp
|
||||
@endforeach
|
||||
<tfoot>
|
||||
<th colspan='4'>Jumlah</th>
|
||||
<th>{{ number_format($stokaudit['totalberat'],2) }}</th>
|
||||
<th>{{ number_format($stokaudit['totalnilaimarhun'],2) }}</th>
|
||||
<th>{{ number_format($stokaudit['totalpinjaman'],2) }}</th>
|
||||
<th>{{ number_format($stokaudit['totalbakipjm'],2) }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th>{{ number_format($stokaudit['totaltunggakan'],2) }}</th>
|
||||
<th></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>
|
||||
@@ -210,6 +210,8 @@
|
||||
<th>Kadar Upah</th>
|
||||
<th>Tempoh Belum Bayar</th>
|
||||
<th>Keuntungan Belum Bayar (RM)</th>
|
||||
<th>Ujrah (RM)</th>
|
||||
<th>Keuntungan 1% (RM)</th>
|
||||
<th>Lanjutan</th>
|
||||
</thead>
|
||||
@php $counter = 1;$totalpinjaman = 0; @endphp
|
||||
@@ -227,6 +229,9 @@
|
||||
<td>{{ number_format($item['kadarupah'],2) }}</td>
|
||||
<td>{{ number_format($item['tempoh'] - $item['tempohbayar'],2) }}</td>
|
||||
<td>{{ number_format($item['tunggakan'],2) }}</td>
|
||||
<td>{{ number_format($item['tunggakanujrah'],2) }}</td>
|
||||
<td>{{ number_format($item['tunggakanonepercent'],2) }}</td>
|
||||
|
||||
{{-- <td>{{ number_format($item['pinjaman'],2) }}</td> --}}
|
||||
<td>{{$item['lelong_tawarruq']}}</td>
|
||||
</tr>
|
||||
|
||||
@@ -210,6 +210,30 @@
|
||||
<th>Ujrah(RM)</th>
|
||||
<th>Lanjutan</th>
|
||||
</thead>
|
||||
|
||||
|
||||
|
||||
@if ($stokaudit == "failed")
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
|
||||
@else
|
||||
@php $counter = 1;$totalpinjaman = 0; @endphp
|
||||
{{-- {{dd($stokaudit['rekod'])}} --}}
|
||||
@foreach($stokaudit['rekod'] as $index=>$item)
|
||||
@@ -226,8 +250,11 @@
|
||||
<td>{{ number_format($item['tempohblmbyar'],2) }}</td>
|
||||
<td>{{ number_format($item['upahblmbyar'],2) }}</td>
|
||||
<td>{{ number_format($item['pinjaman']* 0.01,2) }}</td>
|
||||
@if($item['ujrah'] ='')
|
||||
|
||||
@if($item['ujrah'] ='0.00')
|
||||
|
||||
<td> {{ number_format($item['ujrah'],2) }} </td>
|
||||
|
||||
@endif
|
||||
|
||||
<td>{{$item['lanjutan']}}</td>
|
||||
@@ -241,10 +268,16 @@
|
||||
<th>{{ number_format($stokaudit['totalpinjaman'],2) }}</th>
|
||||
<th>{{ number_format($stokaudit['totalbakipjm'],2) }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
|
||||
<th>{{ number_format($stokaudit['totaltunggakan'],2) }}</th>
|
||||
<th></th>
|
||||
|
||||
</tfoot>
|
||||
|
||||
|
||||
@endif
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
@@ -418,7 +418,10 @@
|
||||
}
|
||||
</style>
|
||||
<div class="header-style">
|
||||
<img src="{{ asset('img/ARRAHN1.png') }}" style="width:50px" alt="User Image" class="center">
|
||||
<div style="display: flex; align-items:center">
|
||||
<img src="{{ asset('img/kopkb.png') }}" style="width:80px; margin-right: 10px" alt="User Image" class="center" >
|
||||
<img src="{{ asset('img/ARRAHN1.png') }}" style="width:50px" alt="User Image" class="center" >
|
||||
</div>
|
||||
<div>
|
||||
<span><strong>Salinan Pelanggan</strong></span>
|
||||
</div>
|
||||
@@ -454,15 +457,6 @@
|
||||
echo $date;
|
||||
@endphp</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="7"> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td>Tempoh Simpan</td>
|
||||
<td>: {{ $transaction['beza_tempoh'] }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="7"> </td>
|
||||
<td> </td>
|
||||
@@ -502,7 +496,7 @@
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 17px"><strong>Jumlah Perlu Dibayar</strong></td>
|
||||
<td style="font-size: 17px"><strong>Jumlah Bayaran</strong></td>
|
||||
@php
|
||||
$jumlah_perlu_dibayar = $transaction['bayaran_pembiayaan'] + $transaction['bayaran_keuntungan'] + $transaction['ujrah'];
|
||||
@endphp
|
||||
@@ -521,6 +515,12 @@
|
||||
<td colspan="9"></td>
|
||||
<td colspan="3">.................................................... </td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<td colspan="3">Pelanggan</td>
|
||||
<td colspan="9"></td>
|
||||
<td colspan="3">Ar-Rahn</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<td colspan="3">{{ $customers_info['nama'] }}</td>
|
||||
@@ -528,14 +528,14 @@
|
||||
<td colspan="3">{{ Auth::user()->name }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<br>
|
||||
<hr class="new2">
|
||||
</hr>
|
||||
<br>
|
||||
</table>
|
||||
<div class="header-style">
|
||||
<img src="{{ asset('img/ARRAHN1.png') }}" style="width:50px" alt="User Image" class="center">
|
||||
<div style="display: flex; align-items:center">
|
||||
<img src="{{ asset('img/kopkb.png') }}" style="width:80px; margin-right: 10px" alt="User Image" class="center" >
|
||||
<img src="{{ asset('img/ARRAHN1.png') }}" style="width:50px" alt="User Image" class="center" >
|
||||
</div>
|
||||
<div>
|
||||
<span><strong>Salinan Pejabat</strong></span>
|
||||
</div>
|
||||
@@ -572,14 +572,6 @@
|
||||
@endphp</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="7"> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td>Tempoh Simpan</td>
|
||||
<td>: {{ $transaction['beza_tempoh'] }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="7"> </td>
|
||||
<td> </td>
|
||||
@@ -619,7 +611,7 @@
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 17px"><strong>Jumlah Perlu Dibayar</strong></td>
|
||||
<td style="font-size: 17px"><strong>Jumlah Bayaran</strong></td>
|
||||
@php
|
||||
$jumlah_perlu_dibayar = $transaction['bayaran_pembiayaan'] + $transaction['bayaran_keuntungan'] + $transaction['ujrah'];
|
||||
@endphp
|
||||
@@ -638,6 +630,12 @@
|
||||
<td colspan="9"></td>
|
||||
<td colspan="3">.................................................... </td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<td colspan="3">Pelanggan</td>
|
||||
<td colspan="9"></td>
|
||||
<td colspan="3">Ar-Rahn</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<td colspan="3">{{ $customers_info['nama'] }}</td>
|
||||
|
||||
@@ -389,7 +389,10 @@ hr.new5 {
|
||||
|
||||
|
||||
<div class="header-style">
|
||||
<img src="{{ asset('img/ARRAHN1.png') }}" style="width:50px" alt="User Image" class="center" >
|
||||
<div style="display: flex; align-items:center">
|
||||
<img src="{{ asset('img/kopkb.png') }}" style="width:80px; margin-right: 10px" alt="User Image" class="center" >
|
||||
<img src="{{ asset('img/ARRAHN1.png') }}" style="width:50px" alt="User Image" class="center" >
|
||||
</div>
|
||||
<div>
|
||||
<span><strong>Salinan Pelanggan</strong></span>
|
||||
</div>
|
||||
@@ -407,11 +410,11 @@ hr.new5 {
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">Nama Wakil </td> <td>: @php if(sizeof($wakil) != 0){ echo $wakil['nama'];} else echo ''; @endphp </td> <td colspan="3"> </td> <td> </td><td> </td><td>Tempoh Simpan</td><td>: {{ $gadai['tempoh'] }}</td>
|
||||
<td colspan="7"> </td> <td> </td><td> </td><td>Tempoh Simpan</td><td>: {{ $gadai['tempoh'] }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">No K/P Wakil </td> <td>: @php if(sizeof($wakil) != 0) echo $wakil['nokp']; else echo ''; @endphp </td> <td colspan="3"> </td> <td> </td><td> </td><td>Masa Bayaran </td>
|
||||
<td colspan="7"> </td> <td> </td><td> </td><td>Masa Bayaran </td>
|
||||
@php
|
||||
$masa_bayaran = strtotime($transaction_tebus['tarikh_bayaran']);
|
||||
$masa = date('H:i:s', $masa_bayaran);
|
||||
@@ -423,7 +426,35 @@ hr.new5 {
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<h1 style="float:left;position:absolute;margin-left:100px;">T</h1>
|
||||
<div style="display: flex; justify-content:center">
|
||||
<h1 style="{{ sizeof($wakil) != 0 ? '' : 'position:absolute; margin-left:-550px' }}">T</h1>
|
||||
@if (sizeof($wakil) != 0)
|
||||
<table id="payment">
|
||||
<tr>
|
||||
<td colspan="2">Maklumat Wakil</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:7px">Nama</td>
|
||||
<td style="width:10px">: {{ $wakil['nama'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:7px">No K/P</td>
|
||||
<td style="width:10px">: {{ $wakil['nokp'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:7px">No Telefon</td>
|
||||
<td style="width:10px">: {{ $wakil['telefon'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:7px">Alamat</td>
|
||||
<td style="width:10px;">: {{ $wakil['alamat1'] }}</td>
|
||||
</tr>
|
||||
{{-- <tr>
|
||||
<td style="width:7px">No Siri Wakil</td>
|
||||
<td style="width:10px">: S9090232-001</td>
|
||||
</tr> --}}
|
||||
</table>
|
||||
@endif
|
||||
|
||||
<table id="payment">
|
||||
<tr>
|
||||
@@ -456,12 +487,13 @@ hr.new5 {
|
||||
<td style="width:10px; font-size:17px">:<b> RM {{ number_format(($gadai['bakihargajualan'] - $penebusan['rebate']),2) }} </b></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<table id="payment" style="border: none; margin-top:20px; width:60%">
|
||||
<tr>
|
||||
<td>Marhun: {{ $gadai['marhun'] }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
|
||||
|
||||
@@ -475,6 +507,13 @@ hr.new5 {
|
||||
<td></td>
|
||||
<td colspan="3">.................................................... </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">Khazanah</td>
|
||||
<td></td>
|
||||
<td colspan="3">Pelanggan</td>
|
||||
<td></td>
|
||||
<td colspan="3">Ar-Rahn</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"> {{ $khazanah_user->name }}</td>
|
||||
<td></td>
|
||||
@@ -485,16 +524,15 @@ hr.new5 {
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<br>
|
||||
<hr class="new2"></hr>
|
||||
|
||||
<br>
|
||||
|
||||
</table>
|
||||
|
||||
<div class="header-style">
|
||||
<img src="{{ asset('img/ARRAHN1.png') }}" style="width:50px" alt="User Image" class="center" >
|
||||
<div style="display: flex; align-items:center">
|
||||
<img src="{{ asset('img/kopkb.png') }}" style="width:80px; margin-right: 10px" alt="User Image" class="center" >
|
||||
<img src="{{ asset('img/ARRAHN1.png') }}" style="width:50px" alt="User Image" class="center" >
|
||||
</div>
|
||||
<div>
|
||||
<span><strong>Salinan Pejabat</strong></span>
|
||||
</div>
|
||||
@@ -511,11 +549,11 @@ hr.new5 {
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">Nama Wakil </td> <td>: @php if(sizeof($wakil) != 0){ echo $wakil['nama'];} else echo ''; @endphp </td> <td colspan="3"> </td> <td> </td><td> </td><td>Tempoh Simpan</td><td>: {{ $gadai['tempoh'] }}</td>
|
||||
<td colspan="7"> </td> <td> </td><td> </td><td>Tempoh Simpan</td><td>: {{ $gadai['tempoh'] }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">No K/P Wakil </td> <td>: @php if(sizeof($wakil) != 0) echo $wakil['nokp']; else echo ''; @endphp </td> <td colspan="3"> </td> <td> </td><td> </td><td>Masa Bayaran </td>
|
||||
<td colspan="7"> </td> <td> </td><td> </td><td>Masa Bayaran </td>
|
||||
@php
|
||||
$masa_bayaran = strtotime($transaction_tebus['tarikh_bayaran']);
|
||||
$masa = date('H:i:s', $masa_bayaran);
|
||||
@@ -525,7 +563,35 @@ hr.new5 {
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<h1 style="float:left;position:absolute;margin-left:100px;">T</h1>
|
||||
<div style="display: flex; justify-content:center">
|
||||
<h1 style="{{ sizeof($wakil) != 0 ? '' : 'position:absolute; margin-left:-550px' }}">T</h1>
|
||||
@if (sizeof($wakil) != 0)
|
||||
<table id="payment">
|
||||
<tr>
|
||||
<td colspan="2">Maklumat Wakil</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:7px">Nama</td>
|
||||
<td style="width:10px">: {{ $wakil['nama'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:7px">No K/P</td>
|
||||
<td style="width:10px">: {{ $wakil['nokp'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:7px">No Telefon</td>
|
||||
<td style="width:10px">: {{ $wakil['telefon'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:7px">Alamat</td>
|
||||
<td style="width:10px;">: {{ $wakil['alamat1'] }}</td>
|
||||
</tr>
|
||||
{{-- <tr>
|
||||
<td style="width:7px">No Siri Wakil</td>
|
||||
<td style="width:10px">: S9090232-001</td>
|
||||
</tr> --}}
|
||||
</table>
|
||||
@endif
|
||||
|
||||
<table id="payment">
|
||||
<tr>
|
||||
@@ -558,7 +624,7 @@ hr.new5 {
|
||||
<td style="width:10px; font-size:17px">:<b> RM {{ number_format(($gadai['bakihargajualan'] - $penebusan['rebate']),2) }} </b></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
<table id="payment" style="border: none; margin-top:20px; width:60%">
|
||||
<tr>
|
||||
@@ -566,9 +632,6 @@ hr.new5 {
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
|
||||
<table id="semakan">
|
||||
<tr>
|
||||
<td colspan="3">.................................................... </td>
|
||||
@@ -577,18 +640,40 @@ hr.new5 {
|
||||
<td></td>
|
||||
<td colspan="3">.................................................... </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">Khazanah</td>
|
||||
<td></td>
|
||||
<td colspan="3">Pelanggan</td>
|
||||
<td></td>
|
||||
<td colspan="3">Ar-Rahn</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<td colspan="3"> {{ $khazanah_user->name }}</td>
|
||||
<td></td>
|
||||
<td colspan="3">{{ $khazanah_user->name }}</td>
|
||||
<td colspan="3">{{ $customers_info['nama'] }}</td>
|
||||
<td></td>
|
||||
<td colspan="3">{{ Auth::user()->name }}</td>
|
||||
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
<table id="semakan">
|
||||
<table id="inside" style="width: 45%; margin-top:20px">
|
||||
<tr>
|
||||
<td>Duit Pelanggan</td>
|
||||
<td>: RM {{ number_format($transaction_tebus['duitpelanggan'], 2) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Jumlah Perlu Dibayar</td>
|
||||
<td>: RM {{ number_format($transaction_tebus['duit_masuk'], 2) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Baki</td>
|
||||
<td>: RM {{ number_format($transaction_tebus['bakipelanggan'], 2) }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table id="semakan" style="margin-top: 0">
|
||||
<tr style="visibility: hidden">
|
||||
<td colspan="3">.................................................... </td>
|
||||
<td></td>
|
||||
|
||||
@@ -428,7 +428,10 @@
|
||||
}
|
||||
</style>
|
||||
<div class="header-style">
|
||||
<img src="{{ asset('img/ARRAHN1.png') }}" style="width:50px" alt="User Image" class="center">
|
||||
<div style="display: flex; align-items:center">
|
||||
<img src="{{ asset('img/kopkb.png') }}" style="width:80px; margin-right: 10px" alt="User Image" class="center" >
|
||||
<img src="{{ asset('img/ARRAHN1.png') }}" style="width:50px" alt="User Image" class="center" >
|
||||
</div>
|
||||
<div>
|
||||
<span><strong>Salinan Pelanggan</strong></span>
|
||||
</div>
|
||||
@@ -467,15 +470,7 @@
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">Nama Wakil </td>
|
||||
<td>: @php
|
||||
if (sizeof($wakil) != 0) {
|
||||
echo $wakil['nama'];
|
||||
} else {
|
||||
echo '';
|
||||
}
|
||||
@endphp </td>
|
||||
<td colspan="3"> </td>
|
||||
<td colspan="7"></td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td>Tempoh Simpan</td>
|
||||
@@ -483,15 +478,7 @@
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">No K/P Wakil </td>
|
||||
<td>: @php
|
||||
if (sizeof($wakil) != 0) {
|
||||
echo $wakil['nokp'];
|
||||
} else {
|
||||
echo '';
|
||||
}
|
||||
@endphp </td>
|
||||
<td colspan="3"> </td>
|
||||
<td colspan="7"></td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td>Masa Bayaran</td>
|
||||
@@ -502,47 +489,76 @@
|
||||
<td>: {{ $masa }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<h1 style="float:left;position:absolute;margin-left:100px;">T</h1>
|
||||
<table id="payment">
|
||||
<tr>
|
||||
<td style="width:10px">Baki Pembiayaan</td>
|
||||
<td style="width:10px">: RM {{ number_format($gadai['bakipjm'], 2) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">Keuntungan</td>
|
||||
<td style="width:10px">: RM {{ number_format($penebusan['onepercent'], 2) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">(-) Rebat Untung</td>
|
||||
<td style="width:10px">: RM
|
||||
{{ number_format($totalrebate['onepercent'], 2) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">Ujrah</td>
|
||||
<td style="width:10px">: RM {{ number_format($penebusan['ujrah'], 2) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">(-) Rebat Ujrah</td>
|
||||
<td style="width:10px">: RM
|
||||
{{ number_format($totalrebate['ujrah'], 2) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size:17px"><strong>Jumlah Perlu Dibayar</strong></td>
|
||||
<td style="font-size: 17px"><strong>: RM {{ number_format($transaction_tebus['duit_masuk'], 2) }}</strong></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div style="display: flex; justify-content:center">
|
||||
<h1 style="{{ sizeof($wakil) != 0 ? '' : 'position:absolute; margin-left:-550px' }}">T</h1>
|
||||
@if (sizeof($wakil) != 0)
|
||||
<table id="payment">
|
||||
<tr>
|
||||
<td colspan="2">Maklumat Wakil</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:7px">Nama</td>
|
||||
<td style="width:10px">: {{ $wakil['nama'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:7px">No K/P</td>
|
||||
<td style="width:10px">: {{ $wakil['nokp'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:7px">No Telefon</td>
|
||||
<td style="width:10px">: {{ $wakil['telefon'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:7px">Alamat</td>
|
||||
<td style="width:10px;">: {{ $wakil['alamat1'] }}</td>
|
||||
</tr>
|
||||
{{-- <tr>
|
||||
<td style="width:7px">No Siri Wakil</td>
|
||||
<td style="width:10px">: S9090232-001</td>
|
||||
</tr> --}}
|
||||
</table>
|
||||
@endif
|
||||
<table id="payment">
|
||||
<tr>
|
||||
<td style="width:10px">Baki Pembiayaan</td>
|
||||
<td style="width:10px">: RM {{ number_format($gadai['bakipjm'], 2) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">Keuntungan</td>
|
||||
<td style="width:10px">: RM {{ number_format($penebusan['onepercent'], 2) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">(-) Rebat Untung</td>
|
||||
<td style="width:10px">: RM
|
||||
{{ number_format($totalrebate['onepercent'], 2) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">Ujrah</td>
|
||||
<td style="width:10px">: RM {{ number_format($penebusan['ujrah'], 2) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">(-) Rebat Ujrah</td>
|
||||
<td style="width:10px">: RM
|
||||
{{ number_format($totalrebate['ujrah'], 2) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size:17px"><strong>Jumlah Bayaran</strong></td>
|
||||
<td style="font-size: 17px"><strong>: RM
|
||||
{{ number_format($transaction_tebus['duit_masuk'], 2) }}</strong></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<table id="payment" style="border: none; margin-top:20px; width: 60%">
|
||||
<tr>
|
||||
<td>Marhun: {{ $gadai['marhun'] }}</td>
|
||||
@@ -556,6 +572,13 @@
|
||||
<td></td>
|
||||
<td colspan="3">.................................................... </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">Khazanah</td>
|
||||
<td></td>
|
||||
<td colspan="3">Pelanggan</td>
|
||||
<td></td>
|
||||
<td colspan="3">Ar-Rahn</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"> {{ $khazanah_user->name }}</td>
|
||||
<td></td>
|
||||
@@ -566,13 +589,15 @@
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<hr class="new2">
|
||||
|
||||
</table>
|
||||
|
||||
<div class="header-style">
|
||||
<img src="{{ asset('img/ARRAHN1.png') }}" style="width:50px" alt="User Image" class="center">
|
||||
<div style="display: flex; align-items:center">
|
||||
<img src="{{ asset('img/kopkb.png') }}" style="width:80px; margin-right: 10px" alt="User Image" class="center" >
|
||||
<img src="{{ asset('img/ARRAHN1.png') }}" style="width:50px" alt="User Image" class="center" >
|
||||
</div>
|
||||
<div>
|
||||
<span><strong>Salinan Pejabat</strong></span>
|
||||
</div>
|
||||
@@ -610,15 +635,7 @@
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">Nama Wakil </td>
|
||||
<td>: @php
|
||||
if (sizeof($wakil) != 0) {
|
||||
echo $wakil['nama'];
|
||||
} else {
|
||||
echo '';
|
||||
}
|
||||
@endphp </td>
|
||||
<td colspan="3"> </td>
|
||||
<td colspan="7"> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td>Tempoh Simpan</td>
|
||||
@@ -626,15 +643,7 @@
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">No K/P Wakil </td>
|
||||
<td>: @php
|
||||
if (sizeof($wakil) != 0) {
|
||||
echo $wakil['nokp'];
|
||||
} else {
|
||||
echo '';
|
||||
}
|
||||
@endphp </td>
|
||||
<td colspan="3"> </td>
|
||||
<td colspan="7"> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td>Masa Bayaran</td>
|
||||
@@ -645,48 +654,75 @@
|
||||
<td>: {{ $masa }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<h1 style="float:left;position:absolute;margin-left:100px;">T</h1>
|
||||
|
||||
<table id="payment">
|
||||
<tr>
|
||||
<td style="width:10px">Baki Pembiayaan</td>
|
||||
<td style="width:10px">: RM {{ number_format($gadai['bakipjm'], 2) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">Keuntungan</td>
|
||||
<td style="width:10px">: RM {{ number_format($penebusan['onepercent'], 2) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">(-) Rebat Untung</td>
|
||||
<td style="width:10px">: RM
|
||||
{{ number_format($totalrebate['onepercent'], 2) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">Ujrah</td>
|
||||
<td style="width:10px">: RM {{ number_format($penebusan['ujrah'], 2) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">(-) Rebat Ujrah</td>
|
||||
<td style="width:10px">: RM
|
||||
{{ number_format($totalrebate['ujrah'], 2) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size:17px"><strong>Jumlah Perlu Dibayar</strong></td>
|
||||
<td style="font-size: 17px"><strong>: RM {{ number_format($transaction_tebus['duit_masuk'], 2) }}</strong></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div style="display: flex; justify-content:center">
|
||||
<h1 style="{{ sizeof($wakil) != 0 ? '' : 'position:absolute; margin-left:-550px' }}">T</h1>
|
||||
@if (sizeof($wakil) != 0)
|
||||
<table id="payment">
|
||||
<tr>
|
||||
<td colspan="2">Maklumat Wakil</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:7px">Nama</td>
|
||||
<td style="width:10px">: {{ $wakil['nama'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:7px">No K/P</td>
|
||||
<td style="width:10px">: {{ $wakil['nokp'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:7px">No Telefon</td>
|
||||
<td style="width:10px">: {{ $wakil['telefon'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:7px">Alamat</td>
|
||||
<td style="width:10px;">: {{ $wakil['alamat1'] }}</td>
|
||||
</tr>
|
||||
{{-- <tr>
|
||||
<td style="width:7px">No Siri Wakil</td>
|
||||
<td style="width:10px">: S9090232-001</td>
|
||||
</tr> --}}
|
||||
</table>
|
||||
@endif
|
||||
<table id="payment">
|
||||
<tr>
|
||||
<td style="width:10px">Baki Pembiayaan</td>
|
||||
<td style="width:10px">: RM {{ number_format($gadai['bakipjm'], 2) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">Keuntungan</td>
|
||||
<td style="width:10px">: RM {{ number_format($penebusan['onepercent'], 2) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">(-) Rebat Untung</td>
|
||||
<td style="width:10px">: RM
|
||||
{{ number_format($totalrebate['onepercent'], 2) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">Ujrah</td>
|
||||
<td style="width:10px">: RM {{ number_format($penebusan['ujrah'], 2) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">(-) Rebat Ujrah</td>
|
||||
<td style="width:10px">: RM
|
||||
{{ number_format($totalrebate['ujrah'], 2) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size:17px"><strong>Jumlah Bayaran</strong></td>
|
||||
<td style="font-size: 17px"><strong>: RM
|
||||
{{ number_format($transaction_tebus['duit_masuk'], 2) }}</strong></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<table id="payment" style="border: none; margin-top:20px; width: 60%">
|
||||
<tr>
|
||||
@@ -701,6 +737,13 @@
|
||||
<td></td>
|
||||
<td colspan="3">.................................................... </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">Khazanah</td>
|
||||
<td></td>
|
||||
<td colspan="3">Pelanggan</td>
|
||||
<td></td>
|
||||
<td colspan="3">Ar-Rahn</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">{{ $khazanah_user->name }}</td>
|
||||
<td></td>
|
||||
@@ -725,7 +768,7 @@
|
||||
<td>: RM {{ number_format($transaction_tebus['bakipelanggan'], 2) }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table id="semakan">
|
||||
<table id="semakan" style="margin-top: 0">
|
||||
<tr style="visibility: hidden">
|
||||
<td colspan="3">.................................................... </td>
|
||||
<td></td>
|
||||
|
||||
@@ -364,7 +364,10 @@ hr.new5 {
|
||||
|
||||
|
||||
<div class="header-style">
|
||||
<img src="{{ asset('img/ARRAHN1.png') }}" style="width:50px" alt="User Image" class="center" >
|
||||
<div style="display: flex; align-items:center">
|
||||
<img src="{{ asset('img/kopkb.png') }}" style="width:80px; margin-right: 10px" alt="User Image" class="center" >
|
||||
<img src="{{ asset('img/ARRAHN1.png') }}" style="width:50px" alt="User Image" class="center" >
|
||||
</div>
|
||||
<div>
|
||||
<span><strong>Salinan Pelanggan</strong></span>
|
||||
</div>
|
||||
@@ -382,11 +385,11 @@ hr.new5 {
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">Nama Wakil </td> <td>: @php if(sizeof($wakil) != 0){ echo $wakil['nama'];} else echo ''; @endphp </td> <td colspan="3"> </td> <td> </td><td> </td><td>Tempoh Simpan</td><td>: {{ $gadai['tempoh'] }}</td>
|
||||
<td colspan="3"></td> <td></td> <td colspan="3"> </td> <td> </td><td> </td><td>Tempoh Simpan</td><td>: {{ $gadai['tempoh'] }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">No K/P Wakil </td> <td>: @php if(sizeof($wakil) != 0) echo $wakil['nokp']; else echo ''; @endphp </td> <td colspan="3"> </td> <td></td><td> </td><td>Masa Bayaran </td>
|
||||
<td colspan="3"></td> <td></td> <td colspan="3"> </td> <td></td><td> </td><td>Masa Bayaran </td>
|
||||
@php
|
||||
$masa_bayaran = strtotime($transaction_keuntungan['tarikh_bayaran']);
|
||||
$masa = date('H:i:s', $masa_bayaran);
|
||||
@@ -413,7 +416,7 @@ hr.new5 {
|
||||
<td style="width:10px">: RM {{ number_format($transaction_keuntungan['bayaran_pembiayaan'],2) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">Bayaran Upah</td>
|
||||
<td style="width:10px">Keuntungan</td>
|
||||
<td style="width:5px"> </td>
|
||||
<td style="width:10px">: RM {{ number_format($transaction_keuntungan['bayaran_keuntungan'],2) }} </td>
|
||||
</tr>
|
||||
@@ -442,7 +445,6 @@ hr.new5 {
|
||||
<td>Marhun: {{ $gadai['marhun'] }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
|
||||
<table id="semakan">
|
||||
@@ -453,6 +455,13 @@ hr.new5 {
|
||||
<td></td>
|
||||
<td colspan="3">.................................................... </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">Khazanah</td>
|
||||
<td></td>
|
||||
<td colspan="3">Pelanggan</td>
|
||||
<td></td>
|
||||
<td colspan="3">Ar-Rahn</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"> {{ $khazanah_user->name }}</td>
|
||||
<td></td>
|
||||
@@ -463,14 +472,15 @@ hr.new5 {
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<br>
|
||||
<hr class="new2"></hr>
|
||||
|
||||
</table>
|
||||
|
||||
<div class="header-style">
|
||||
<img src="{{ asset('img/ARRAHN1.png') }}" style="width:50px" alt="User Image" class="center" >
|
||||
<div style="display: flex; align-items:center">
|
||||
<img src="{{ asset('img/kopkb.png') }}" style="width:80px; margin-right: 10px" alt="User Image" class="center" >
|
||||
<img src="{{ asset('img/ARRAHN1.png') }}" style="width:50px" alt="User Image" class="center" >
|
||||
</div>
|
||||
<div>
|
||||
<span><strong>Salinan Pejabat</strong></span>
|
||||
</div>
|
||||
@@ -487,11 +497,11 @@ hr.new5 {
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">Nama Wakil </td> <td>: @php if(sizeof($wakil) != 0){ echo $wakil['nama'];} else echo ''; @endphp </td> <td colspan="3"> </td> <td> </td><td> </td><td>Tempoh Simpan</td><td>: {{ $gadai['tempoh'] }}</td>
|
||||
<td colspan="3"></td> <td></td> <td colspan="3"> </td> <td> </td><td> </td><td>Tempoh Simpan</td><td>: {{ $gadai['tempoh'] }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">No K/P Wakil </td> <td>: @php if(sizeof($wakil) != 0) echo $wakil['nokp']; else echo ''; @endphp </td> <td colspan="3"> </td> <td></td><td> </td><td>Masa Bayaran </td>
|
||||
<td colspan="3"></td> <td></td> <td colspan="3"> </td> <td></td><td> </td><td>Masa Bayaran </td>
|
||||
@php
|
||||
$masa_bayaran = strtotime($transaction_keuntungan['tarikh_bayaran']);
|
||||
$masa = date('H:i:s', $masa_bayaran);
|
||||
@@ -516,7 +526,7 @@ hr.new5 {
|
||||
<td style="width:10px">: RM {{ number_format($transaction_keuntungan['bayaran_pembiayaan'],2) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">Bayaran Upah</td>
|
||||
<td style="width:10px">Keuntungan</td>
|
||||
<td style="width:5px"> </td>
|
||||
<td style="width:10px">: RM {{ number_format($transaction_keuntungan['bayaran_keuntungan'],2) }} </td>
|
||||
</tr>
|
||||
@@ -545,9 +555,6 @@ hr.new5 {
|
||||
<td>Marhun: {{ $gadai['marhun'] }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
|
||||
<table id="semakan">
|
||||
<tr>
|
||||
<td colspan="3">.................................................... </td>
|
||||
@@ -556,6 +563,13 @@ hr.new5 {
|
||||
<td></td>
|
||||
<td colspan="3">.................................................... </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">Khazanah</td>
|
||||
<td></td>
|
||||
<td colspan="3">Pelanggan</td>
|
||||
<td></td>
|
||||
<td colspan="3">Ar-Rahn</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<td colspan="3"> {{ $khazanah_user->name }}</td>
|
||||
@@ -567,6 +581,20 @@ hr.new5 {
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
<table id="inside" style="width: 45%; margin-top:10px">
|
||||
<tr>
|
||||
<td>Duit Pelanggan</td>
|
||||
<td>: RM {{ number_format($transaction_tebus['duitpelanggan'], 2) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Jumlah Perlu Dibayar</td>
|
||||
<td>: RM {{ number_format($transaction_tebus['duit_masuk'], 2) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Baki</td>
|
||||
<td>: RM {{ number_format($transaction_tebus['bakipelanggan'], 2) }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table id="semakan">
|
||||
<tr style="visibility: hidden">
|
||||
<td colspan="3">.................................................... </td>
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
.khazanah {
|
||||
border: 1px solid black;
|
||||
padding: 10px;
|
||||
width: 175px;
|
||||
width: 190px;
|
||||
transform: rotate(-90deg);
|
||||
font-size: 11px;
|
||||
margin-left: 175px;
|
||||
margin-left: 250px;
|
||||
}
|
||||
|
||||
@media print {
|
||||
@@ -597,7 +597,7 @@
|
||||
<td colspan="3"> {{ $customer_detail['nama'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> NO MYKAD</td>
|
||||
<td> NO MYKAD / PASSPORT</td>
|
||||
<td colspan="3">{{ $gadai_detail['nokp'] }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -634,6 +634,17 @@
|
||||
<tr>
|
||||
<td>NO TELEFON</td>
|
||||
<td colspan="3">{{ $customer_detail['telefon'] }} </td>
|
||||
{{-- <td style="width: 90px">NO TELEFON 2</td>
|
||||
<td>
|
||||
@php
|
||||
if ($customer_detail['telefon2'] == '' || $customer_detail['telefon2'] == null) {
|
||||
$no_telefon_kedua_cust = '-';
|
||||
} else {
|
||||
$no_telefon_kedua_cust = $customer_detail['telefon2'];
|
||||
}
|
||||
@endphp
|
||||
{{ $no_telefon_kedua_cust }}
|
||||
</td> --}}
|
||||
</tr>
|
||||
<tr>
|
||||
<td>TARIKH PEMBIAYAAN</td>
|
||||
@@ -721,7 +732,7 @@
|
||||
<td>{{ $komuditi['no_sijil'] }}</td>
|
||||
<td>4</td>
|
||||
<td>Kuantiti</td>
|
||||
<td>{{ $kuantiti }}</td>
|
||||
<td>{{ number_format($kuantiti,2) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>2</td>
|
||||
@@ -742,12 +753,12 @@
|
||||
<th colspan="4">MAKLUMAT PEMBIAYAAN </th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 325px">NILAI PEMBIAYAAN</td>
|
||||
<td>RM {{ number_format($gadai_detail['pinjaman'], 2) }}</td>
|
||||
<td style="width: 325px"><b>NILAI PEMBIAYAAN</b></td>
|
||||
<td><b>RM {{ number_format($gadai_detail['pinjaman'], 2) }}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>HARGA JUALAN</td>
|
||||
<td>RM {{ number_format($gadai_detail['hargajualan'], 2) }}</td>
|
||||
<td><b>HARGA JUALAN</b></td>
|
||||
<td><b>RM {{ number_format($gadai_detail['hargajualan'], 2) }}</b></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table id="keuntungan" style="text-align: center">
|
||||
@@ -763,8 +774,20 @@
|
||||
<tr>
|
||||
<td class="text-left" style="width: 325px">TARIKH AKHIR BAYARAN</td>
|
||||
<td>-</td>
|
||||
<td>Sebelum/pada</td>
|
||||
<td>Sebelum/pada</td>
|
||||
<td>
|
||||
@php
|
||||
$t_matang_0 = DateTime::createFromFormat('Y-m-d', $gadai_detail['t_matang']);
|
||||
$formatted_t_matang = $t_matang_0->format('d-m-Y');
|
||||
echo $formatted_t_matang;
|
||||
@endphp
|
||||
</td>
|
||||
<td>
|
||||
@php
|
||||
$t_matang_1 = DateTime::createFromFormat('Y-m-d', $gadai_detail['t_matang1']);
|
||||
$formatted_t_matang_1 = $t_matang_1->format('d-m-Y');
|
||||
echo $formatted_t_matang_1;
|
||||
@endphp
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="text-left">JUMLAH KEUNTUNGAN DAN UJRAH YANG PERLU DIBAYAR</td>
|
||||
@@ -843,9 +866,10 @@
|
||||
<td colspan="4"><b><u>AKAD UJRAH (PENYIMPANAN MARHUN)</u></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4"><b>[ <span style="margin-right:10px"></span> ] Akad Ujrah:</b> Saya bersetuju
|
||||
KoPKB untuk menyimpan marhun dan mengenakan ujrah dengan membayar caj upah simpan
|
||||
sebagaimana dibawah:
|
||||
<td colspan="4"><b>[ <span style="margin-right:10px"></span> ] Akad Ujrah / Upah Simpan:</b>
|
||||
Saya bersetuju marhun disimpan oleh KoPKB dan bersetuju membayar caj ujrah/upah simpan di
|
||||
cawangan ar-rahn dengan bayaran ujrah/upah simpan sebagaimana jadual di bawah bagi setiap
|
||||
RM100.00 nilai marhun:
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -875,10 +899,10 @@
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table style="margin-top:20px;" id="keuntungan">
|
||||
<table style="margin-top:5px;" id="keuntungan">
|
||||
<tr>
|
||||
<th colspan="2">TANDATANGAN PELANGGAN</th>
|
||||
<th colspan="2">TANDATANGAN PIHAK KOPERASI</th>
|
||||
<th colspan="2">TANDATANGAN PELANGGAN</th>
|
||||
<th colspan="2">TANDATANGAN SAKSI</th>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -889,8 +913,6 @@
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr>
|
||||
<td>NAMA</td>
|
||||
<td>{{ $customer_detail['nama'] }}</td>
|
||||
<td>NAMA</td>
|
||||
<td>
|
||||
@if ($gadai_detail['penilai'] == '')
|
||||
@@ -900,6 +922,8 @@
|
||||
@endif
|
||||
</td>
|
||||
<td>NAMA</td>
|
||||
<td>{{ $customer_detail['nama'] }}</td>
|
||||
<td>NAMA</td>
|
||||
<td>{{ $gadai_detail['teller'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -1113,11 +1137,6 @@
|
||||
tuntutan terhadap KoPKB;
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="vertical-align: top">
|
||||
<!-- column 2 -->
|
||||
<table id="akad_pembiayaan">
|
||||
<tr>
|
||||
<td colspan="1"></td>
|
||||
<td colspan="1">q.</td>
|
||||
@@ -1137,6 +1156,11 @@
|
||||
menguatkuasakan atau dalam usahanya menguatkuasakan bayaran-bayaran dan dalam
|
||||
menguatkuasakan Terma dan Syarat SAG ini;</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="vertical-align: top">
|
||||
<!-- column 2 -->
|
||||
<table id="akad_pembiayaan">
|
||||
<tr>
|
||||
<td colspan="1"></td>
|
||||
<td colspan="1">s.</td>
|
||||
@@ -1242,39 +1266,45 @@
|
||||
<td colspan="2">Pelanggan melanggar mana-mana syarat dalam SAG ini dan
|
||||
apa-apa arahan KoPKB yang berkaitan dengannya dari masa ke masa.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="1"></td>
|
||||
<td colspan="1">d.</td>
|
||||
<td colspan="2">Sekiranya Pelanggan mempunyai sebarang pertanyaa atau
|
||||
aduan, anda boleh menghubungi kami sebagaimana berikut:</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table id="akad_pembiayaan" style="margin: 20px auto; width: 65%">
|
||||
<tr>
|
||||
<td colspan="1">Koperasi Permodalan Kelantan Berhad</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="1">Lot PT 448, Tingkat 1, Jalan Kuala Krai, Batu 3,</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="1">Wakaf Che Yeh, 15150 Kota Bharu, Kelantan.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="1" style="display: flex"><span style="width: 50px">No. Tel</span>:
|
||||
09-7414331/4334</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="1" style="display: flex"><span style="width: 50px">Fax</span>: 09-7414330
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="1" style="display: flex"><span
|
||||
style="width: 50px; padding-bottom:100px">Email</span>:
|
||||
customercare@koppkb.com</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="1" style="border-top: 1px black dotted; text-align:center;">Tandatangan
|
||||
Pelanggan</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table id="akad_pembiayaan" style="text-transform: uppercase; margin-top: 50px">
|
||||
<tr>
|
||||
<td colspan="4">Sekiranya Pelanggan mempunyai sebarang pandangan, pertanyaan atau aduan, anda boleh
|
||||
menghubungi kami sebagaimana berikut:</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="1">KOPERASI PERMODALAN KELANTAN BERHAD</td>
|
||||
<td colspan="1">EMAIL : info@koppkb.com</td>
|
||||
<td colspan="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="1">LOT PT 448, TINGKAT 1, JALAN KUALA KRAI, BATU 3,</td>
|
||||
<td colspan="1">FAX :09-7414330</td>
|
||||
<td colspan="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="1">WAKAF CHE YEH, 15150 KOTA BHARU, KELANTAN.</td>
|
||||
<td colspan="1">EMAIL : customercare@koppkb.com</td>
|
||||
<td colspan="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="1"></td>
|
||||
<td colspan="1"></td>
|
||||
<td colspan="1" style="border-top: 1px black dotted; text-align:center;">TANDATANGAN PELANGGAN</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class='page-break'></div>
|
||||
|
||||
<div class="grid-container" style="margin-bottom: 10px">
|
||||
@@ -1322,7 +1352,7 @@
|
||||
<td colspan="3"> {{ $customer_detail['nama'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> NO MYKAD</td>
|
||||
<td> NO MYKAD / PASSPORT</td>
|
||||
<td colspan="3">{{ $gadai_detail['nokp'] }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -1359,6 +1389,8 @@
|
||||
<tr>
|
||||
<td>NO TELEFON</td>
|
||||
<td colspan="3">{{ $customer_detail['telefon'] }} </td>
|
||||
{{-- <td style="width: 90px">NO TELEFON 2</td>
|
||||
<td>{{ $no_telefon_kedua_cust }}</td> --}}
|
||||
</tr>
|
||||
<tr>
|
||||
<td>TARIKH PEMBIAYAAN</td>
|
||||
@@ -1489,12 +1521,12 @@
|
||||
<th colspan="4">MAKLUMAT PEMBIAYAAN </th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 325px">NILAI PEMBIAYAAN</td>
|
||||
<td>RM {{ number_format($gadai_detail['pinjaman'], 2) }}</td>
|
||||
<td style="width: 325px"><b>NILAI PEMBIAYAAN</b></td>
|
||||
<td><b>RM {{ number_format($gadai_detail['pinjaman'], 2) }}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>HARGA JUALAN</td>
|
||||
<td>RM {{ number_format($gadai_detail['hargajualan'], 2) }}</td>
|
||||
<td><b>HARGA JUALAN</b></td>
|
||||
<td><b>RM {{ number_format($gadai_detail['hargajualan'], 2) }}</b></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table id="keuntungan" style="text-align: center">
|
||||
@@ -1510,8 +1542,8 @@
|
||||
<tr>
|
||||
<td class="text-left" style="width: 325px">TARIKH AKHIR BAYARAN</td>
|
||||
<td>-</td>
|
||||
<td>Sebelum/pada</td>
|
||||
<td>Sebelum/pada</td>
|
||||
<td>{{ $formatted_t_matang }}</td>
|
||||
<td>{{ $formatted_t_matang_1 }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="text-left">JUMLAH KEUNTUNGAN DAN UJRAH YANG PERLU DIBAYAR</td>
|
||||
@@ -1529,8 +1561,8 @@
|
||||
<table>
|
||||
<table style="margin-bottom:10px;" id="keuntungan">
|
||||
<tr>
|
||||
<th colspan="2"> TANDATANGAN PELANGGAN</th>
|
||||
<th colspan="2">TANDATANGAN PIHAK PKB </th>
|
||||
<th colspan="2"> TANDATANGAN PIHAK KOPERASI</th>
|
||||
<th colspan="2">TANDATANGAN PELANGGAN</th>
|
||||
<th colspan="2">TANDATANGAN SAKSI </th>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -1541,8 +1573,6 @@
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr>
|
||||
<td>NAMA</td>
|
||||
<td>{{ $customer_detail['nama'] }}</td>
|
||||
<td>NAMA</td>
|
||||
<td>
|
||||
@if ($gadai_detail['penilai'] == '')
|
||||
@@ -1551,6 +1581,8 @@
|
||||
{{ $gadai_detail['penilai'] }}
|
||||
@endif
|
||||
</td>
|
||||
<td>NAMA</td>
|
||||
<td>{{ $customer_detail['nama'] }}</td>
|
||||
<td>NAMA</td>
|
||||
<td>{{ $gadai_detail['teller'] }}</td>
|
||||
</tr>
|
||||
@@ -1668,7 +1700,8 @@
|
||||
<td class="table_td" style="width:50px"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="table_td" colspan="2">Saya sahkan telah menyemak fizikal saiz, berat dengan
|
||||
<td class="table_td" colspan="2">Saya sahkan telah menyemak fizikal saiz, berat
|
||||
dengan
|
||||
teliti mengikut SOP penilai</td>
|
||||
<td class="table_td" style="width:50px"></td>
|
||||
</tr>
|
||||
@@ -1696,6 +1729,7 @@
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</table>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,271 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
window.print
|
||||
// window.onfocus=function(){ window.close();}
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
.grid-container {
|
||||
display: grid;
|
||||
grid: 75px / 33% 33% 33%;
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
#header_surat1 {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
#header_surat1 p {
|
||||
margin: 2px;
|
||||
}
|
||||
|
||||
#header_surat2 {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
text-align: center;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
#header_surat2 p {
|
||||
margin: 2px;
|
||||
}
|
||||
|
||||
.flex-justify-center-items-center {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
#nosiri {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
#title p {
|
||||
height: 40px;
|
||||
width: 700px;
|
||||
font-size: 13px;
|
||||
vertical-align: text-top;
|
||||
text-align: center;
|
||||
border: 1px solid black;
|
||||
}
|
||||
|
||||
#details {
|
||||
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
font-size: 12px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#details th td {
|
||||
|
||||
text-wrap: nowrap;
|
||||
|
||||
}
|
||||
|
||||
#note {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
#note p {
|
||||
margin: 2px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="grid-container" style="margin-bottom: 10px">
|
||||
<div id="header_surat1">
|
||||
<p style="text-wrap:nowrap">KOPERASI PERMODALAN KELANTAN BERHAD (D-5-0228)</p>
|
||||
<p>{{ $cawangan_detail['namacaw'] }}</p>
|
||||
<p style="text-wrap:nowrap">{{ $cawangan_detail['alamat1'] }}</p>
|
||||
<p>{{ $cawangan_detail['alamat2'] }}</p>
|
||||
<p>{{ $cawangan_detail['notel'] }}</p>
|
||||
</div>
|
||||
<div id="header_surat2" style="margin-left:20px">
|
||||
<div class="flex-justify-center-items-center" style="height: 60px">
|
||||
<img src="{{ asset('img/ARRAHN1.png') }}" style="width:50px; margin:0 5px" alt="User Image" class="center">
|
||||
</div>
|
||||
</div>
|
||||
<div id="nosiri" style="text-align:right">
|
||||
<b><div class="arial-sans-serif f-10">Tarikh Cetak: {{$tarikh_cetak}}</div>
|
||||
<br>
|
||||
<div class="arial-sans-serif f-10">No Siri: {{$nosiri}}</div></b>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="title">
|
||||
<p><b>SURAT PERLANTIKAN WAKIL<BR>TUJUAN PENYELESAIAN PEMBIAYAAN DI AR-RAHN</b></p>
|
||||
</div>
|
||||
|
||||
<table id="details">
|
||||
<tr>
|
||||
<th>Nama Pelanggan</th>
|
||||
<td colspan="3">: {{$customer_detail['nama']}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>No Surat Akuan Gadai</th>
|
||||
<td>: {{$gadai_details['norujukan']}}</td>
|
||||
<th>Nilai Marhun</th>
|
||||
<td>: RM{{number_format($gadai_details['nilaimarhun'],2) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>No MyKad / Passport</th>
|
||||
<td>: {{$noic}}</td>
|
||||
<th>Nilai Pembiayaan</th>
|
||||
<td>: RM{{number_format($gadai_details['pinjaman'],2)}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>No Telefon</th>
|
||||
<td>: {{$customer_detail['telefon']}}</td>
|
||||
<th>Baki Pembiayaan</th>
|
||||
<td>: RM{{number_format($gadai_details['bakipjm'],2)}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th></th>
|
||||
<td></td>
|
||||
<th>Harga Jualan</th>
|
||||
<td>: RM{{number_format($gadai_details['hargajualan'],2)}}</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<table id="details" style="margin-top:20px;">
|
||||
<tr>
|
||||
<td colspan="2">Saya seperti nama di atas, ingin memaklumkan kepada Ar-Rahn Koperasi Permodalan Kelantan Berhad
|
||||
bagi Cawangan Kota Bharu 2, bahawa saya tidak dapat hadir untuk menyelesaikan pembiayaan saya.
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table id="details" style="margin-top:20px;">
|
||||
<tr>
|
||||
<td colspan="2">1. Saya melantik wakil bagi pihak diri saya untuk menyelesaikan pembiayaan saya. Maklumat wakil
|
||||
adalah seperti berikut:</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table id="details" style="margin-top:20px;">
|
||||
<tr>
|
||||
<th style="width: 180px">Nama</td>
|
||||
<td>:</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="width: 180px">No. Kad Pengenalan</td>
|
||||
<td>:</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="width: 180px">No. Telefon</td>
|
||||
<td>:</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="width: 180px">Hubungan</td>
|
||||
<td>:</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table id="details" style="margin-top:20px;">
|
||||
<tr>
|
||||
<td colspan="2">2. Saya mengaku tidak akan membuat apa-apa <b>TUNTUTAN @ GANTI RUGI</b> atas kebarangkalian @
|
||||
kerugian yang berlaku disebabkan perlantikan wakil bagi menyelesaikan pembiayaan saya.</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<table id="details" style="margin-top:20px;" id="keuntungan">
|
||||
<tr>
|
||||
<th colspan="2">Tandatangan Pelanggan</th>
|
||||
<th colspan="2">Tandatangan Wakil</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td rowspan="2" colspan="2" style="padding:4px; width:33%; height:50px;">_________________________________</td>
|
||||
<td rowspan="2" colspan="2" style="padding:4px; width:33%; height:50px;">_________________________________</td>
|
||||
</tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr>
|
||||
<td style="width: 40px">Nama</td>
|
||||
<td>: {{$customer_detail['nama']}}</td>
|
||||
<td>Nama</td>
|
||||
<td>: </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 40px">Tarikh</td>
|
||||
<td>:</td>
|
||||
<td style="width: 30px">Tarikh</td>
|
||||
<td>:</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<table id="details" style="margin-top:20px;" id="keuntungan">
|
||||
<tr>
|
||||
<th colspan="2">Tandatangan Pengurus Cawangan</th>
|
||||
<th colspan="2"></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td rowspan="2" colspan="2" style="padding:4px; width:33%; height:50px;">_________________________________</td>
|
||||
<td rowspan="2" colspan="2" style="padding:4px; width:33%; height:50px;"></td>
|
||||
</tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr>
|
||||
<td style="width: 40px">Nama</td>
|
||||
<td>:</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 40px">Tarikh</td>
|
||||
<td>:</td>
|
||||
<td style="width: 30px"></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<div id="note"><b>
|
||||
<p>*Penting:</p>
|
||||
<p> a) Sila lampirkan bersama:</p>
|
||||
<p> i. Salinan kad pengenalan diri pelanggan dan kad pengenalan diri wakil yang dilantik.
|
||||
</p>
|
||||
<p> ii. SAG asal pelanggan</p>
|
||||
<p> b) Pastikan tandatangan pelanggan adalah sama dengan tandatangan di Surat Akuan Gadaian.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -397,6 +397,30 @@ Route::post('laporan/tebusujrah/cetak',['as'=>'tebusujrah.laporancetak','uses'=>
|
||||
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');
|
||||
|
||||
//ROLE CALLCENTER
|
||||
Route::get('/notisperingatan',['as'=>'arcc.notisperingatan','uses'=>'CallCenterController@notisperingatan'])->middleware('auth','callcenter');
|
||||
Route::get('/cariansag',['as'=>'arcc.cariansag','uses'=>'CallCenterController@cariansag'])->middleware('auth','callcenter');
|
||||
Route::post('/janadatanotisperingatan',['as'=>'arcc.janadatanotisperingatan','uses'=>'CallCenterController@janadatanotisperingatan'])->middleware('auth','callcenter');
|
||||
Route::get('/rekodnotisperingatan',['as'=>'arcc.rekodnotisperingatan','uses'=>'CallCenterController@rekodnotisperingatan'])->middleware('auth','callcenter');
|
||||
Route::get('/detailnotisperingatan/{notisid}',['as'=>'arcc.detailnotisperingatan','uses'=>'CallCenterController@detailnotisperingatan'])->middleware('auth','callcenter');
|
||||
Route::get('/bycawnotisperingatan/{kodcaw}/{notisid}',['as'=>'arcc.bycawnotisperingatan','uses'=>'CallCenterController@bycawnotisperingatan'])->middleware('auth','callcenter');
|
||||
Route::post('/blastpertama/{kodcaw}/{notisid}',['as'=>'arcc.blastpertama','uses'=>'CallCenterController@blastpertama'])->middleware('auth','callcenter');
|
||||
Route::get('/arcc/pelanggan',['as'=>'arcc.pelanggan','uses'=>'CallCenterController@pelanggan'])->middleware('auth','callcenter');
|
||||
Route::get('/arcc/searchpelanggan',['as'=>'arcc.searchpelanggan','uses'=>'CallCenterController@search'])->middleware('auth','callcenter');
|
||||
Route::get('/arcc/customer_info',['as'=>'arcc.customer_info','uses'=>'CallCenterController@info'])->middleware('auth','callcenter');
|
||||
Route::get('/arcc/history',['as'=>'arcc.history','uses'=>'GadaianController@history'])->middleware('auth','callcenter');
|
||||
|
||||
|
||||
|
||||
//surat wakil
|
||||
Route::get('/khazanah/indexwakil',['as'=>'khazanah.indexwakil','uses'=>'WakilController@indexwakil'])->middleware('auth','khazanah');
|
||||
Route::get('/khazanah/suratwakil',['as'=>'khazanah.suratwakil','uses'=>'WakilController@suratwakil'])->middleware('auth','khazanah');
|
||||
Route::get('/khazanah/sag_info',['as'=>'khazanah.sag_info','uses'=>'WakilController@sagInfo'])->middleware('auth','khazanah');
|
||||
Route::get('/khazanah/print.suratwakil/{norujukan}',['as'=>'khazanah.print.suratwakil','uses'=>'WakilController@printSuratWakil'])->middleware('auth','khazanah');
|
||||
Route::get('/penilai/print.suratwakil/{norujukan}',['as'=>'penilai.print.suratwakil','uses'=>'WakilController@printSuratWakilPenilai'])->middleware('auth','penilai');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Route::get('supports/driver/mykad-reader',['as'=>'mykadreader.driver', function(){
|
||||
|
||||
Reference in New Issue
Block a user