Merge branch 'new-super' of https://gitlab.com/online-sistem1/kaunter into fixkaunter
This commit is contained in:
@@ -38,7 +38,7 @@ class checkLelongTawarruq extends Command
|
|||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
$updategadai = Http::get(config('api.url') . '/api/check/lelong/tawarruq')->json();
|
$updategadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/check/lelong/tawarruq')->json();
|
||||||
$this->info('sucess');
|
$this->info('sucess');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ class initiateTunai extends Command
|
|||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
$updateOnline = Http::get(config('api.url') . '/api/initiate/tunai')->json();
|
$updateOnline = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/initiate/tunai')->json();
|
||||||
if($updateOnline == 'successful'){
|
if($updateOnline == 'successful'){
|
||||||
return 0;
|
return 0;
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -38,7 +38,8 @@ class keluarLelong extends Command
|
|||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
$updateOnline = Http::get(config('api.url') . '/api/keluar/lelong')->json();
|
$updateOnline = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/keluar/lelong')->json();
|
||||||
|
$updateOnline = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/keluar/lelong/tawarruq')->json();
|
||||||
if($updateOnline == 'successful'){
|
if($updateOnline == 'successful'){
|
||||||
return 0;
|
return 0;
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ class updateGadai extends Command
|
|||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
$updategadai = Http::get(config('api.url') . '/api/update/sttebus/gadaian')->json();
|
$updategadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/update/sttebus/gadaian')->json();
|
||||||
$this->info('sucess');
|
$this->info('sucess');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,9 +38,9 @@ class updateJbg extends Command
|
|||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
$updatejbg = Http::get(config('api.url') . '/api/updatejbgsemasa')->json();
|
$updatejbg = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/updatejbgsemasa')->json();
|
||||||
$updatejbgLelong = Http::get(config('api.url') . '/api/updatejbglelong')->json();
|
$updatejbgLelong = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/updatejbglelong')->json();
|
||||||
$hapusGadaiNull = Http::get(config('api.url') . '/api/hapus/gadai/null')->json();
|
$hapusGadaiNull = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/hapus/gadai/null')->json();
|
||||||
if($updatejbg == 'successful'){
|
if($updatejbg == 'successful'){
|
||||||
return 0;
|
return 0;
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ class updateOnline extends Command
|
|||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
$updateOnline = Http::get(config('api.url') . '/api/transaction/online/update')->json();
|
$updateOnline = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/transaction/online/update')->json();
|
||||||
if($updateOnline == 'successful'){
|
if($updateOnline == 'successful'){
|
||||||
return 0;
|
return 0;
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -22,13 +22,13 @@ class AliranTunaiController extends Controller
|
|||||||
$harini = new Carbon;
|
$harini = new Carbon;
|
||||||
|
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
$alirantunai = Http::get(config('api.url') . '/api/GetCurrentTunai/' . $auth_user['cawangan'],['kodlaluan' => $auth_user['name']])->json();
|
$alirantunai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/GetCurrentTunai/' . $auth_user['cawangan'],['kodlaluan' => $auth_user['name']])->json();
|
||||||
|
|
||||||
if(sizeof($alirantunai) == 0)
|
if(sizeof($alirantunai) == 0)
|
||||||
{
|
{
|
||||||
|
|
||||||
$latesttunai = Http::get(config('api.url') . '/api/GetLatestTunai/'. $auth_user['cawangan'], ['kodlaluan' => $auth_user['name']])->json();
|
$latesttunai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/GetLatestTunai/'. $auth_user['cawangan'], ['kodlaluan' => $auth_user['name']])->json();
|
||||||
|
|
||||||
|
|
||||||
if(sizeof($latesttunai) > 0)
|
if(sizeof($latesttunai) > 0)
|
||||||
@@ -36,7 +36,7 @@ class AliranTunaiController extends Controller
|
|||||||
|
|
||||||
if($latesttunai[0]['baki'] != 0)
|
if($latesttunai[0]['baki'] != 0)
|
||||||
{
|
{
|
||||||
$alirantunai = Http::post(config('api.url') . '/api/tunai/daftarTunai/' . $auth_user['cawangan'], [
|
$alirantunai = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url') . '/api/tunai/daftarTunai/' . $auth_user['cawangan'], [
|
||||||
'kodcaw' => $auth_user['cawangan'],
|
'kodcaw' => $auth_user['cawangan'],
|
||||||
'teller' => $auth_user['name'],
|
'teller' => $auth_user['name'],
|
||||||
'bakiawal' => $latesttunai[0]['baki'],
|
'bakiawal' => $latesttunai[0]['baki'],
|
||||||
@@ -50,7 +50,7 @@ class AliranTunaiController extends Controller
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$alirantunai = Http::post(config('api.url') . '/api/tunai/daftarTunai/' . $auth_user['cawangan'], [
|
$alirantunai = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url') . '/api/tunai/daftarTunai/' . $auth_user['cawangan'], [
|
||||||
'kodcaw' => $auth_user['cawangan'],
|
'kodcaw' => $auth_user['cawangan'],
|
||||||
'teller' => $auth_user['name'],
|
'teller' => $auth_user['name'],
|
||||||
'bakiawal' => 0.00,
|
'bakiawal' => 0.00,
|
||||||
@@ -66,7 +66,7 @@ class AliranTunaiController extends Controller
|
|||||||
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$alirantunai = Http::post(config('api.url') . '/api/tunai/daftarTunai/' . $auth_user['cawangan'], [
|
$alirantunai = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url') . '/api/tunai/daftarTunai/' . $auth_user['cawangan'], [
|
||||||
'kodcaw' => $auth_user['cawangan'],
|
'kodcaw' => $auth_user['cawangan'],
|
||||||
'teller' => $auth_user['name'],
|
'teller' => $auth_user['name'],
|
||||||
'bakiawal' => 0.00,
|
'bakiawal' => 0.00,
|
||||||
@@ -80,18 +80,18 @@ class AliranTunaiController extends Controller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$denominasi=Http::get(config('api.url').'/api/DenominasiController/'.$auth_user['cawangan'])->json();
|
$denominasi=Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/DenominasiController/'.$auth_user['cawangan'])->json();
|
||||||
|
|
||||||
if(sizeof($denominasi) == 0)
|
if(sizeof($denominasi) == 0)
|
||||||
{
|
{
|
||||||
$denominasi=Http::post(config('api.url').'/api/DenominasiCreate/'.$auth_user['cawangan'])->json();
|
$denominasi=Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url').'/api/DenominasiCreate/'.$auth_user['cawangan'])->json();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$denominasi=$denominasi[0];
|
$denominasi=$denominasi[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
$GT = Http::get(config('api.url') . '/api/countGT/' . $auth_user['cawangan'])->json();
|
$GT = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/countGT/' . $auth_user['cawangan'])->json();
|
||||||
|
|
||||||
if(sizeof($GT) > 0);
|
if(sizeof($GT) > 0);
|
||||||
{
|
{
|
||||||
@@ -101,16 +101,16 @@ class AliranTunaiController extends Controller
|
|||||||
|
|
||||||
$api_url = config('api.url');
|
$api_url = config('api.url');
|
||||||
|
|
||||||
$gadai_tebus = Http::get(config('api.url').'/api/gadaitebus/listharini/'.$auth_user['cawangan'],['tarikh' => $harini->toDateString()])->json();
|
$gadai_tebus = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/gadaitebus/listharini/'.$auth_user['cawangan'],['tarikh' => $harini->toDateString()])->json();
|
||||||
|
|
||||||
$addtunai = Http::get(config('api.url') . '/api/getAddTunai/' . $auth_user['cawangan'] . '/kodlaluan/',['kodlaluan' => $auth_user['name']])->json();
|
$addtunai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/getAddTunai/' . $auth_user['cawangan'] . '/kodlaluan/',['kodlaluan' => $auth_user['name']])->json();
|
||||||
|
|
||||||
$tuntutbaki = Http::get(config('api.url').'/api/TuntutBaki/'.$auth_user['cawangan'])->json();
|
$tuntutbaki = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/TuntutBaki/'.$auth_user['cawangan'])->json();
|
||||||
|
|
||||||
$requestkodlaluan = Http::get(config('api.url').'/api/get/pengguna/'.$auth_user['cawangan'],["namateller" => Auth::user()->name ])->json();
|
$requestkodlaluan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/get/pengguna/'.$auth_user['cawangan'],["namateller" => Auth::user()->name ])->json();
|
||||||
$advansur = Http::get(config('api.url').'/api/AnsuranByTarikh/'.$auth_user['cawangan'],['kodlaluan' => Auth::user()->name])->json();
|
$advansur = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/AnsuranByTarikh/'.$auth_user['cawangan'],['kodlaluan' => Auth::user()->name])->json();
|
||||||
|
|
||||||
$tunaipast = Http::get( config('api.url') .'/api/getPastTunai/'. $auth_user['cawangan'],['kodlaluan' => Auth::user()->name])->json();
|
$tunaipast = Http::withOptions(['verify' => config('app.api_verify')])->get( config('api.url') .'/api/getPastTunai/'. $auth_user['cawangan'],['kodlaluan' => Auth::user()->name])->json();
|
||||||
|
|
||||||
return view('aliran_tunai.index',compact('cawangan_info','alirantunai','api_url','GT','denominasi','gadai_tebus','tuntutbaki','advansur','addtunai','tunaipast'));
|
return view('aliran_tunai.index',compact('cawangan_info','alirantunai','api_url','GT','denominasi','gadai_tebus','tuntutbaki','advansur','addtunai','tunaipast'));
|
||||||
}
|
}
|
||||||
@@ -119,10 +119,10 @@ class AliranTunaiController extends Controller
|
|||||||
|
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
|
|
||||||
$gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $auth_user['cawangan'] .'/' .$request->norujukan_gadai)->json();
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $auth_user['cawangan'] .'/' .$request->norujukan_gadai)->json();
|
||||||
$gadai_detail = $gadai[0];
|
$gadai_detail = $gadai[0];
|
||||||
|
|
||||||
$getTunai2=Http::get(config('api.url').'/api/GetCurrentTunai/'.$auth_user['cawangan'],['kodlaluan' => $teller])->json();
|
$getTunai2=Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/GetCurrentTunai/'.$auth_user['cawangan'],['kodlaluan' => $teller])->json();
|
||||||
|
|
||||||
$keluar = $getTunai2['keluar'];
|
$keluar = $getTunai2['keluar'];
|
||||||
$baki = $getTunai2['baki'];
|
$baki = $getTunai2['baki'];
|
||||||
@@ -140,7 +140,7 @@ class AliranTunaiController extends Controller
|
|||||||
|
|
||||||
|
|
||||||
//masuk dalam tunai aliran
|
//masuk dalam tunai aliran
|
||||||
$updateTunai = Http::put( config('api.url').'/api/updateTunaiGT/'.$auth_user['cawangan'], [
|
$updateTunai = Http::withOptions(['verify' => config('app.api_verify')])->put( config('api.url').'/api/updateTunaiGT/'.$auth_user['cawangan'], [
|
||||||
'kodlaluan' => $teller,
|
'kodlaluan' => $teller,
|
||||||
'keluar' => $keluar,
|
'keluar' => $keluar,
|
||||||
'masuk' => $masuk,
|
'masuk' => $masuk,
|
||||||
@@ -155,13 +155,13 @@ class AliranTunaiController extends Controller
|
|||||||
|
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
|
|
||||||
$gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $auth_user['cawangan'] .'/' .$request->norujukan)->json();
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $auth_user['cawangan'] .'/' .$request->norujukan)->json();
|
||||||
$gadai_detail = $gadai[0];
|
$gadai_detail = $gadai[0];
|
||||||
|
|
||||||
$tebus = Http::get(config('api.url') . '/api/listpenebusanhistory/'. $auth_user['cawangan'],['norujukan' => $request->norujukan])->json();
|
$tebus = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/listpenebusanhistory/'. $auth_user['cawangan'],['norujukan' => $request->norujukan])->json();
|
||||||
$tebus_detail = $tebus[0];
|
$tebus_detail = $tebus[0];
|
||||||
|
|
||||||
$getTunai2=Http::get(config('api.url').'/api/GetCurrentTunai/'.$auth_user['cawangan'],['kodlaluan' => $tebus_detail['teller']])->json();
|
$getTunai2=Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/GetCurrentTunai/'.$auth_user['cawangan'],['kodlaluan' => $tebus_detail['teller']])->json();
|
||||||
|
|
||||||
$keluar=$getTunai2['keluar'];
|
$keluar=$getTunai2['keluar'];
|
||||||
$baki=$getTunai2['baki'];
|
$baki=$getTunai2['baki'];
|
||||||
@@ -183,7 +183,7 @@ class AliranTunaiController extends Controller
|
|||||||
$bakiakhir = $bakiakhir + $tebus_detail['bakiupah'] - $tebus_detail['addpinjaman'];
|
$bakiakhir = $bakiakhir + $tebus_detail['bakiupah'] - $tebus_detail['addpinjaman'];
|
||||||
|
|
||||||
|
|
||||||
$updateTunai=Http::put( config('api.url').'/api/updateTunaiGT/'.$auth_user['cawangan'], [
|
$updateTunai=Http::withOptions(['verify' => config('app.api_verify')])->put( config('api.url').'/api/updateTunaiGT/'.$auth_user['cawangan'], [
|
||||||
'kodlaluan' => $tebus_detail['teller'],
|
'kodlaluan' => $tebus_detail['teller'],
|
||||||
'keluar'=>$keluar,
|
'keluar'=>$keluar,
|
||||||
'masuk'=>$masuk,
|
'masuk'=>$masuk,
|
||||||
@@ -205,7 +205,7 @@ class AliranTunaiController extends Controller
|
|||||||
// $bakiakhir = $bakiawal-$keluar+$totalmasuk+$pendahuluan-$serahan;
|
// $bakiakhir = $bakiawal-$keluar+$totalmasuk+$pendahuluan-$serahan;
|
||||||
|
|
||||||
|
|
||||||
$updateTunai=Http::put( config('api.url').'/api/updateTunaiGT/'.$auth_user['cawangan'], [
|
$updateTunai=Http::withOptions(['verify' => config('app.api_verify')])->put( config('api.url').'/api/updateTunaiGT/'.$auth_user['cawangan'], [
|
||||||
'kodlaluan' => $tebus_detail['teller'],
|
'kodlaluan' => $tebus_detail['teller'],
|
||||||
'keluar'=>$keluar,
|
'keluar'=>$keluar,
|
||||||
'masuk'=>$masuk,
|
'masuk'=>$masuk,
|
||||||
@@ -219,13 +219,13 @@ class AliranTunaiController extends Controller
|
|||||||
|
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
|
|
||||||
$gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $auth_user['cawangan'] .'/' .$request->norujukan)->json();
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $auth_user['cawangan'] .'/' .$request->norujukan)->json();
|
||||||
$gadai_detail = $gadai[0];
|
$gadai_detail = $gadai[0];
|
||||||
|
|
||||||
$tebus = Http::get(config('api.url') . '/api/listpenebusanhistory/'. $auth_user['cawangan'],['norujukan' => $request->norujukan])->json();
|
$tebus = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/listpenebusanhistory/'. $auth_user['cawangan'],['norujukan' => $request->norujukan])->json();
|
||||||
$tebus_detail = $tebus[0];
|
$tebus_detail = $tebus[0];
|
||||||
|
|
||||||
$getTunai2=Http::get(config('api.url').'/api/GetCurrentTunai/'.$auth_user['cawangan'],['kodlaluan' => $tebus_detail['teller']])->json();
|
$getTunai2=Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/GetCurrentTunai/'.$auth_user['cawangan'],['kodlaluan' => $tebus_detail['teller']])->json();
|
||||||
|
|
||||||
$keluar=$getTunai2['keluar'];
|
$keluar=$getTunai2['keluar'];
|
||||||
$baki=$getTunai2['baki'];
|
$baki=$getTunai2['baki'];
|
||||||
@@ -239,7 +239,7 @@ class AliranTunaiController extends Controller
|
|||||||
|
|
||||||
$bakiakhir = $bakiakhir + $request->totalbayaran;
|
$bakiakhir = $bakiakhir + $request->totalbayaran;
|
||||||
|
|
||||||
$updateTunai=Http::put( config('api.url').'/api/updateTunaiGT/'.$auth_user['cawangan'], [
|
$updateTunai=Http::withOptions(['verify' => config('app.api_verify')])->put( config('api.url').'/api/updateTunaiGT/'.$auth_user['cawangan'], [
|
||||||
'kodlaluan' => $tebus_detail['teller'],
|
'kodlaluan' => $tebus_detail['teller'],
|
||||||
'keluar'=>$keluar,
|
'keluar'=>$keluar,
|
||||||
'masuk'=>$masuk,
|
'masuk'=>$masuk,
|
||||||
@@ -251,12 +251,12 @@ class AliranTunaiController extends Controller
|
|||||||
|
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
|
|
||||||
$gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $auth_user['cawangan'] .'/' .$request->norujukan)->json();
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $auth_user['cawangan'] .'/' .$request->norujukan)->json();
|
||||||
$gadai_detail = $gadai[0];
|
$gadai_detail = $gadai[0];
|
||||||
|
|
||||||
$advansur = Http::get(config('api.url') . '/api/advansur/'. $auth_user['cawangan'] . '/'. $request->norujukan)->json();
|
$advansur = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/advansur/'. $auth_user['cawangan'] . '/'. $request->norujukan)->json();
|
||||||
|
|
||||||
$getTunai2=Http::get(config('api.url').'/api/GetCurrentTunai/'.$auth_user['cawangan'],['kodlaluan' => $advansur['teller']])->json();
|
$getTunai2=Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/GetCurrentTunai/'.$auth_user['cawangan'],['kodlaluan' => $advansur['teller']])->json();
|
||||||
|
|
||||||
$keluar=$getTunai2['keluar'];
|
$keluar=$getTunai2['keluar'];
|
||||||
$baki=$getTunai2['baki'];
|
$baki=$getTunai2['baki'];
|
||||||
@@ -271,7 +271,7 @@ class AliranTunaiController extends Controller
|
|||||||
$totalmasuk = $advansur['upahDibayar'] + $masuk;
|
$totalmasuk = $advansur['upahDibayar'] + $masuk;
|
||||||
$bakiakhir = $bakiakhir + $advansur['upahDibayar'];
|
$bakiakhir = $bakiakhir + $advansur['upahDibayar'];
|
||||||
|
|
||||||
$updateTunai=Http::put( config('api.url').'/api/updateTunaiGT/'.$auth_user['cawangan'], [
|
$updateTunai=Http::withOptions(['verify' => config('app.api_verify')])->put( config('api.url').'/api/updateTunaiGT/'.$auth_user['cawangan'], [
|
||||||
'kodlaluan' => $advansur['teller'],
|
'kodlaluan' => $advansur['teller'],
|
||||||
'keluar'=>$keluar,
|
'keluar'=>$keluar,
|
||||||
'masuk'=>$totalmasuk,
|
'masuk'=>$totalmasuk,
|
||||||
@@ -288,8 +288,8 @@ class AliranTunaiController extends Controller
|
|||||||
$current = Carbon::now();
|
$current = Carbon::now();
|
||||||
$current = new Carbon();
|
$current = new Carbon();
|
||||||
|
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
$cawangan=Http::get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
|
$cawangan=Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
|
||||||
$cawangan_detail=$cawangan[0];
|
$cawangan_detail=$cawangan[0];
|
||||||
|
|
||||||
$tarikh_cetak = $current->toDateString();
|
$tarikh_cetak = $current->toDateString();
|
||||||
@@ -303,7 +303,7 @@ class AliranTunaiController extends Controller
|
|||||||
$rekodring1 = 0; $rekodring5 = 0; $rekodring10 = 0;
|
$rekodring1 = 0; $rekodring5 = 0; $rekodring10 = 0;
|
||||||
$rekodring20 = 0; $rekodring50 = 0; $rekodring100 = 0;
|
$rekodring20 = 0; $rekodring50 = 0; $rekodring100 = 0;
|
||||||
|
|
||||||
$requestteller = Http::get(config('api.url').'/api/requestTeller/getlaporan/'.$auth_user['cawangan'],["teller" => Auth::user()->name ])->json();
|
$requestteller = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/requestTeller/getlaporan/'.$auth_user['cawangan'],["teller" => Auth::user()->name ])->json();
|
||||||
|
|
||||||
foreach($requestteller as $index => $reqtel)
|
foreach($requestteller as $index => $reqtel)
|
||||||
{
|
{
|
||||||
@@ -350,7 +350,7 @@ class AliranTunaiController extends Controller
|
|||||||
$rekodring1 = 0; $rekodring5 = 0; $rekodring10 = 0;
|
$rekodring1 = 0; $rekodring5 = 0; $rekodring10 = 0;
|
||||||
$rekodring20 = 0; $rekodring50 = 0; $rekodring100 = 0;
|
$rekodring20 = 0; $rekodring50 = 0; $rekodring100 = 0;
|
||||||
|
|
||||||
$requestteller = Http::get(config('api.url').'/api/requestTeller/getlaporan/'.$auth_user['cawangan'],["teller" => Auth::user()->name ])->json();
|
$requestteller = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/requestTeller/getlaporan/'.$auth_user['cawangan'],["teller" => Auth::user()->name ])->json();
|
||||||
|
|
||||||
if(sizeof($requestteller) > 0)
|
if(sizeof($requestteller) > 0)
|
||||||
{
|
{
|
||||||
@@ -368,7 +368,7 @@ class AliranTunaiController extends Controller
|
|||||||
$current = Carbon::now();
|
$current = Carbon::now();
|
||||||
$current = new Carbon();
|
$current = new Carbon();
|
||||||
|
|
||||||
$alirantunai = Http::get(config('api.url') . '/api/GetCurrentTunai/' . $auth_user['cawangan'],['kodlaluan' => $auth_user['name']])->json();
|
$alirantunai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/GetCurrentTunai/' . $auth_user['cawangan'],['kodlaluan' => $auth_user['name']])->json();
|
||||||
|
|
||||||
$keluar = $alirantunai['keluar'];
|
$keluar = $alirantunai['keluar'];
|
||||||
$baki = $alirantunai['baki'];
|
$baki = $alirantunai['baki'];
|
||||||
@@ -377,15 +377,15 @@ class AliranTunaiController extends Controller
|
|||||||
$pendahuluan = $alirantunai['tambah'];
|
$pendahuluan = $alirantunai['tambah'];
|
||||||
$serahan = $alirantunai['kurang'];
|
$serahan = $alirantunai['kurang'];
|
||||||
|
|
||||||
$addtunai = Http::get(config('api.url') . '/api/getAddTunai/' . $auth_user['cawangan'] . '/kodlaluan/',['kodlaluan' => $auth_user['name']])->json();
|
$addtunai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/getAddTunai/' . $auth_user['cawangan'] . '/kodlaluan/',['kodlaluan' => $auth_user['name']])->json();
|
||||||
|
|
||||||
$gadai = Http::get(config('api.url'). '/api/gadai/laporan/'. $auth_user['cawangan'] .'/'. $current->toDateString())->json();
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/gadai/laporan/'. $auth_user['cawangan'] .'/'. $current->toDateString())->json();
|
||||||
$tebus = Http::get(config('api.url'). '/api/tebus/laporan/'. $auth_user['cawangan'] .'/'. $current->toDateString())->json();
|
$tebus = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/tebus/laporan/'. $auth_user['cawangan'] .'/'. $current->toDateString())->json();
|
||||||
$ansuran = Http::get(config('api.url'). '/api/ansuran/laporan/'. $auth_user['cawangan'],['tarikh' => $current->toDateString()])->json();
|
$ansuran = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/ansuran/laporan/'. $auth_user['cawangan'],['tarikh' => $current->toDateString()])->json();
|
||||||
$tuntutbaki = Http::get(config('api.url'). '/api/TuntutBaki/'. $auth_user['cawangan'] . '/teller/',['teller' => Auth::user()->name])->json();
|
$tuntutbaki = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/TuntutBaki/'. $auth_user['cawangan'] . '/teller/',['teller' => Auth::user()->name])->json();
|
||||||
$advansur = Http::get(config('api.url').'/api/AnsuranByTarikh/'.$auth_user['cawangan'],['kodlaluan' => Auth::user()->name ])->json();
|
$advansur = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/AnsuranByTarikh/'.$auth_user['cawangan'],['kodlaluan' => Auth::user()->name ])->json();
|
||||||
|
|
||||||
$lelong = Http::get(config('api.url').'/api/lelong/harini/'.$auth_user['cawangan'])->json();
|
$lelong = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/lelong/harini/'.$auth_user['cawangan'])->json();
|
||||||
|
|
||||||
$lelongan = 0;
|
$lelongan = 0;
|
||||||
if(strtoupper(Auth::user()->name) === 'LELONG')
|
if(strtoupper(Auth::user()->name) === 'LELONG')
|
||||||
@@ -519,7 +519,7 @@ class AliranTunaiController extends Controller
|
|||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
|
|
||||||
|
|
||||||
$alirantunai = Http::get(config('api.url') . '/api/GetCurrentTunai/' . $auth_user['cawangan'],['kodlaluan' => $auth_user['name']])->json();
|
$alirantunai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/GetCurrentTunai/' . $auth_user['cawangan'],['kodlaluan' => $auth_user['name']])->json();
|
||||||
|
|
||||||
$keluar = $alirantunai['keluar'];
|
$keluar = $alirantunai['keluar'];
|
||||||
$baki = $alirantunai['baki'];
|
$baki = $alirantunai['baki'];
|
||||||
@@ -528,7 +528,7 @@ class AliranTunaiController extends Controller
|
|||||||
$pendahuluan = $alirantunai['tambah'];
|
$pendahuluan = $alirantunai['tambah'];
|
||||||
$serahan = $alirantunai['kurang'];
|
$serahan = $alirantunai['kurang'];
|
||||||
|
|
||||||
$updateTunai = Http::put( config('api.url').'/api/updateTunaiGT/'.$auth_user['cawangan'], [
|
$updateTunai = Http::withOptions(['verify' => config('app.api_verify')])->put( config('api.url').'/api/updateTunaiGT/'.$auth_user['cawangan'], [
|
||||||
'kodlaluan' => $auth_user['name'],
|
'kodlaluan' => $auth_user['name'],
|
||||||
'keluar'=> $request->gadaian,
|
'keluar'=> $request->gadaian,
|
||||||
'masuk'=> $request->penebusan,
|
'masuk'=> $request->penebusan,
|
||||||
@@ -547,7 +547,7 @@ class AliranTunaiController extends Controller
|
|||||||
{
|
{
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
|
|
||||||
$requestkodlaluan = Http::get(config('api.url').'/api/get/pengguna/'.$auth_user['cawangan'],["namateller" => Auth::user()->name ])->json();
|
$requestkodlaluan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/get/pengguna/'.$auth_user['cawangan'],["namateller" => Auth::user()->name ])->json();
|
||||||
|
|
||||||
$perbezaan = 0;
|
$perbezaan = 0;
|
||||||
|
|
||||||
@@ -555,7 +555,7 @@ class AliranTunaiController extends Controller
|
|||||||
{
|
{
|
||||||
$upah = Session::get('upahsemasa');
|
$upah = Session::get('upahsemasa');
|
||||||
|
|
||||||
$requestupah = Http::get(config('api.url') . '/api/ansuranupah/' . $auth_user['cawangan'],['kodlaluan' => $requestkodlaluan[0]['kodlaluan']])->json();
|
$requestupah = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/ansuranupah/' . $auth_user['cawangan'],['kodlaluan' => $requestkodlaluan[0]['kodlaluan']])->json();
|
||||||
|
|
||||||
|
|
||||||
if($upah !== $requestupah)
|
if($upah !== $requestupah)
|
||||||
@@ -564,7 +564,7 @@ class AliranTunaiController extends Controller
|
|||||||
|
|
||||||
Session::put('upahsemasa', $requestupah);
|
Session::put('upahsemasa', $requestupah);
|
||||||
|
|
||||||
$requestalirantunai = Http::get(config('api.url') . '/api/GetCurrentTunai/' . $auth_user['cawangan'],['kodlaluan' => Auth::user()->name])->json();
|
$requestalirantunai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/GetCurrentTunai/' . $auth_user['cawangan'],['kodlaluan' => Auth::user()->name])->json();
|
||||||
|
|
||||||
$masuk = $requestalirantunai['masuk'];
|
$masuk = $requestalirantunai['masuk'];
|
||||||
$keluar = $requestalirantunai['keluar'];
|
$keluar = $requestalirantunai['keluar'];
|
||||||
@@ -573,7 +573,7 @@ class AliranTunaiController extends Controller
|
|||||||
$total = floatval($baki) + $perbezaan;
|
$total = floatval($baki) + $perbezaan;
|
||||||
|
|
||||||
// masuk dalam tunai aliran
|
// masuk dalam tunai aliran
|
||||||
$updateTunai=Http::put( config('api.url').'/api/updateTunaiGT/'.$auth_user['cawangan'], [
|
$updateTunai=Http::withOptions(['verify' => config('app.api_verify')])->put( config('api.url').'/api/updateTunaiGT/'.$auth_user['cawangan'], [
|
||||||
'kodlaluan' => Auth::user()->name,
|
'kodlaluan' => Auth::user()->name,
|
||||||
'keluar' => $keluar,
|
'keluar' => $keluar,
|
||||||
'masuk' => $masuk,
|
'masuk' => $masuk,
|
||||||
@@ -586,13 +586,13 @@ class AliranTunaiController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
$requestupah = Http::get(config('api.url') . '/api/ansuranupah/' . $auth_user['cawangan'],['kodlaluan' => $requestkodlaluan[0]['kodlaluan']])->json();
|
$requestupah = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/ansuranupah/' . $auth_user['cawangan'],['kodlaluan' => $requestkodlaluan[0]['kodlaluan']])->json();
|
||||||
|
|
||||||
if($requestupah !== 0)
|
if($requestupah !== 0)
|
||||||
{
|
{
|
||||||
Session::put('upahsemasa', $requestupah);
|
Session::put('upahsemasa', $requestupah);
|
||||||
|
|
||||||
$requestalirantunai = Http::get(config('api.url') . '/api/GetCurrentTunai/' . $auth_user['cawangan'],['kodlaluan' => Auth::user()->name])->json();
|
$requestalirantunai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/GetCurrentTunai/' . $auth_user['cawangan'],['kodlaluan' => Auth::user()->name])->json();
|
||||||
$masuk = $requestalirantunai['masuk'];
|
$masuk = $requestalirantunai['masuk'];
|
||||||
$keluar = $requestalirantunai['keluar'];
|
$keluar = $requestalirantunai['keluar'];
|
||||||
|
|
||||||
@@ -601,7 +601,7 @@ class AliranTunaiController extends Controller
|
|||||||
$total = floatval($baki) + floatval($requestupah);
|
$total = floatval($baki) + floatval($requestupah);
|
||||||
|
|
||||||
// masuk dalam tunai aliran
|
// masuk dalam tunai aliran
|
||||||
$updateTunai=Http::put( config('api.url').'/api/updateTunaiGT/'.$auth_user['cawangan'], [
|
$updateTunai=Http::withOptions(['verify' => config('app.api_verify')])->put( config('api.url').'/api/updateTunaiGT/'.$auth_user['cawangan'], [
|
||||||
'kodlaluan' => Auth::user()->name,
|
'kodlaluan' => Auth::user()->name,
|
||||||
'keluar' => $keluar,
|
'keluar' => $keluar,
|
||||||
'masuk' => $masuk,
|
'masuk' => $masuk,
|
||||||
@@ -625,17 +625,17 @@ class AliranTunaiController extends Controller
|
|||||||
$current = Carbon::now();
|
$current = Carbon::now();
|
||||||
$current = new Carbon();
|
$current = new Carbon();
|
||||||
|
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
$cawangan=Http::get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
|
$cawangan=Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
|
||||||
$cawangan_detail=$cawangan[0];
|
$cawangan_detail=$cawangan[0];
|
||||||
|
|
||||||
$tarikh_cetak = $current->toDateString();
|
$tarikh_cetak = $current->toDateString();
|
||||||
|
|
||||||
$cawangan=Http::get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
|
$cawangan=Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
|
||||||
|
|
||||||
$alirantunai = Http::get(config('api.url') . '/api/GetCurrentTunai/' . $auth_user['cawangan'],['kodlaluan' => $auth_user['name']])->json();
|
$alirantunai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/GetCurrentTunai/' . $auth_user['cawangan'],['kodlaluan' => $auth_user['name']])->json();
|
||||||
|
|
||||||
$addtunai = Http::get(config('api.url') . '/api/getAddTunai/' . $auth_user['cawangan'] . '/kodlaluan/',['kodlaluan' => $auth_user['name']])->json();
|
$addtunai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/getAddTunai/' . $auth_user['cawangan'] . '/kodlaluan/',['kodlaluan' => $auth_user['name']])->json();
|
||||||
|
|
||||||
$teller = $auth_user['name'];
|
$teller = $auth_user['name'];
|
||||||
|
|
||||||
|
|||||||
@@ -64,13 +64,13 @@ class LoginController extends Controller
|
|||||||
$api_url = config('api.url');
|
$api_url = config('api.url');
|
||||||
if($auth_user['roles'] == 'teller'){
|
if($auth_user['roles'] == 'teller'){
|
||||||
if($auth_user['role_harian'] == 'teller'){
|
if($auth_user['role_harian'] == 'teller'){
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
// return view('homepage.'.$auth_user['role_harian'].'.home',compact('cawangan_info','api_url'));
|
// return view('homepage.'.$auth_user['role_harian'].'.home',compact('cawangan_info','api_url'));
|
||||||
return redirect()->route('home');
|
return redirect()->route('home');
|
||||||
}elseif($auth_user['role_harian'] == 'penilai' || $auth_user['role_harian'] == 'penilai2'){
|
}elseif($auth_user['role_harian'] == 'penilai' || $auth_user['role_harian'] == 'penilai2'){
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
$gadaian_semasa = Http::get(config('api.url') . '/api/gadaiansemasa/'. $auth_user['cawangan'])->json();
|
$gadaian_semasa = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadaiansemasa/'. $auth_user['cawangan'])->json();
|
||||||
$gadaian_belumserah = Http::get(config('api.url') . '/api/gadaiansemasa/belum_serah/'. $auth_user['cawangan'])->json();
|
$gadaian_belumserah = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadaiansemasa/belum_serah/'. $auth_user['cawangan'])->json();
|
||||||
// return view('homepage.'.$auth_user['role_harian'].'.home',compact('cawangan_info','gadaian_semasa','gadaian_belumserah','api_url'));
|
// return view('homepage.'.$auth_user['role_harian'].'.home',compact('cawangan_info','gadaian_semasa','gadaian_belumserah','api_url'));
|
||||||
return redirect()->route('home');
|
return redirect()->route('home');
|
||||||
}else{
|
}else{
|
||||||
@@ -78,12 +78,12 @@ class LoginController extends Controller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
elseif($auth_user['roles'] == 'pc' || $auth_user['roles'] == 'ppc'){
|
elseif($auth_user['roles'] == 'pc' || $auth_user['roles'] == 'ppc'){
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
// return view('homepage.khazanah.home',compact('cawangan_info','api_url'));
|
// return view('homepage.khazanah.home',compact('cawangan_info','api_url'));
|
||||||
return redirect()->route('home');
|
return redirect()->route('home');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
// return view('homepage.'.$auth_user['roles'].'.home',compact('cawangan_info','api_url'));
|
// return view('homepage.'.$auth_user['roles'].'.home',compact('cawangan_info','api_url'));
|
||||||
return redirect()->route('home');
|
return redirect()->route('home');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ class ChangePasswordController extends Controller
|
|||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
return view('user.update_password',compact('cawangan_info'));
|
return view('user.update_password',compact('cawangan_info'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,8 +37,8 @@ class CustomersController extends Controller
|
|||||||
$api_url = config('api.url');
|
$api_url = config('api.url');
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
$idtype = 'nokp';
|
$idtype = 'nokp';
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
$bank = Http::get(config('api.url') . '/api/bank')->json();
|
$bank = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/bank')->json();
|
||||||
$blacklist_search = false;
|
$blacklist_search = false;
|
||||||
return view('customers.index',compact('search','blacklist_search','cawangan_info','bank','api_url','idtype'));
|
return view('customers.index',compact('search','blacklist_search','cawangan_info','bank','api_url','idtype'));
|
||||||
}
|
}
|
||||||
@@ -46,8 +46,8 @@ class CustomersController extends Controller
|
|||||||
public function info(Request $request){
|
public function info(Request $request){
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
$api_url = config('api.url');
|
$api_url = config('api.url');
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
$customer_info = Http::get(config('api.url') . '/api/customers/'. Session::get('noic'))->json();
|
$customer_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/'. Session::get('noic'))->json();
|
||||||
// if($customers_info){
|
// if($customers_info){
|
||||||
// $customer_info = $customers_info[0];
|
// $customer_info = $customers_info[0];
|
||||||
// }else{
|
// }else{
|
||||||
@@ -57,8 +57,8 @@ class CustomersController extends Controller
|
|||||||
$komoditi = Komoditi::first();
|
$komoditi = Komoditi::first();
|
||||||
$min_komoditi = $komoditi['min_komoditi'];
|
$min_komoditi = $komoditi['min_komoditi'];
|
||||||
|
|
||||||
$bakilelong = Http::get(config('api.url') . '/api/bakilelong/cawangan/' . $auth_user['cawangan'] . '/' . Session::get('noic') . '/baki')->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::get(config('api.url') . '/api/bakilelong/cawangan/' . $auth_user['cawangan'] . '/' . Session::get('noic') . '/rugi')->json();
|
$rugilelong = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/bakilelong/cawangan/' . $auth_user['cawangan'] . '/' . Session::get('noic') . '/rugi')->json();
|
||||||
|
|
||||||
$request->session()->forget('page_reload');
|
$request->session()->forget('page_reload');
|
||||||
$request->session()->forget('norujukan');
|
$request->session()->forget('norujukan');
|
||||||
@@ -72,11 +72,11 @@ class CustomersController extends Controller
|
|||||||
Session::put('noic', $noic);
|
Session::put('noic', $noic);
|
||||||
$api_url = config('api.url');
|
$api_url = config('api.url');
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
$bank = Http::get(config('api.url') . '/api/bank')->json();
|
$bank = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/bank')->json();
|
||||||
$customer_info = Http::get(config('api.url') . '/api/customers/'. $noic)->json();
|
$customer_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/'. $noic)->json();
|
||||||
|
|
||||||
$blacklist = Http::get(config('api.url') . '/api/customer/blacklist',[
|
$blacklist = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customer/blacklist',[
|
||||||
'nokp' => $noic
|
'nokp' => $noic
|
||||||
])->json();
|
])->json();
|
||||||
// if($customers_info){
|
// if($customers_info){
|
||||||
@@ -110,7 +110,7 @@ class CustomersController extends Controller
|
|||||||
public function cari(Request $request)
|
public function cari(Request $request)
|
||||||
{
|
{
|
||||||
$api_url = config('api.url');
|
$api_url = config('api.url');
|
||||||
$customers_info = Http::get(config('api.url') . '/api/customers/'. $request->icno)->json();
|
$customers_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/'. $request->icno)->json();
|
||||||
|
|
||||||
if(sizeof($customers_info) > 0)
|
if(sizeof($customers_info) > 0)
|
||||||
return $customers_info;
|
return $customers_info;
|
||||||
@@ -163,7 +163,7 @@ class CustomersController extends Controller
|
|||||||
$tarikh_lahir = $split_date[2].'-'.$split_date[1].'-'.$split_date[0];
|
$tarikh_lahir = $split_date[2].'-'.$split_date[1].'-'.$split_date[0];
|
||||||
$tarikhlahir = Carbon::parse($tarikh_lahir);
|
$tarikhlahir = Carbon::parse($tarikh_lahir);
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
$latest_customer = Http::get(config('api.url') . '/api/customers/latest/' . $auth_user['cawangan'])->json();
|
$latest_customer = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/latest/' . $auth_user['cawangan'])->json();
|
||||||
|
|
||||||
if($latest_customer == null){
|
if($latest_customer == null){
|
||||||
$nosiri_latest = 1;
|
$nosiri_latest = 1;
|
||||||
@@ -175,9 +175,9 @@ class CustomersController extends Controller
|
|||||||
$count = sprintf("%08d", $nosiri_latest);
|
$count = sprintf("%08d", $nosiri_latest);
|
||||||
|
|
||||||
$no_pelanggan = $request->bangsa . substr($request->noic,6,2).'-'.$count;
|
$no_pelanggan = $request->bangsa . substr($request->noic,6,2).'-'.$count;
|
||||||
$detail_poskod = Http::get(config('api.url') . '/api/poskod/' . $request->poskod)->json();
|
$detail_poskod = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/poskod/' . $request->poskod)->json();
|
||||||
|
|
||||||
$customer_info = Http::post(config('api.url') . '/api/customers/create/'. $auth_user['cawangan'],[
|
$customer_info = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url') . '/api/customers/create/'. $auth_user['cawangan'],[
|
||||||
'kodcaw' => $auth_user['cawangan'],
|
'kodcaw' => $auth_user['cawangan'],
|
||||||
'nopelanggan' => $no_pelanggan,
|
'nopelanggan' => $no_pelanggan,
|
||||||
'nokpbaru' => $nokpbaru,
|
'nokpbaru' => $nokpbaru,
|
||||||
@@ -216,11 +216,11 @@ class CustomersController extends Controller
|
|||||||
$expired = $expired->addHours(24);
|
$expired = $expired->addHours(24);
|
||||||
$currentDateTime = Carbon::now();
|
$currentDateTime = Carbon::now();
|
||||||
|
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
$nama_cawangan = $cawangan_info["details_caw"];
|
$nama_cawangan = $cawangan_info["details_caw"];
|
||||||
|
|
||||||
$nokp = $request->noic_otp;
|
$nokp = $request->noic_otp;
|
||||||
$customer = Http::get(config('api.url'). '/api/customers/'.$nokp)->json();
|
$customer = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/customers/'.$nokp)->json();
|
||||||
$recipient = '6'.$customer['telefon'];
|
$recipient = '6'.$customer['telefon'];
|
||||||
// $recipient = '60189025461';
|
// $recipient = '60189025461';
|
||||||
//pembinaan token
|
//pembinaan token
|
||||||
@@ -236,8 +236,8 @@ class CustomersController extends Controller
|
|||||||
return implode("", array_slice($characters, 0, $length));
|
return implode("", array_slice($characters, 0, $length));
|
||||||
}
|
}
|
||||||
|
|
||||||
$otp_token = Http::get(config('api.url') . '/api/otp/' . $nokp) ->json();
|
$otp_token = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/otp/' . $nokp) ->json();
|
||||||
$otp_token_used = Http::get(config('api.url') . '/api/otp/used/' . $nokp) ->json();
|
$otp_token_used = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/otp/used/' . $nokp) ->json();
|
||||||
|
|
||||||
if (is_array($otp_token) || is_object($otp_token)){
|
if (is_array($otp_token) || is_object($otp_token)){
|
||||||
if($otp_token){
|
if($otp_token){
|
||||||
@@ -249,7 +249,7 @@ class CustomersController extends Controller
|
|||||||
}else{
|
}else{
|
||||||
$random = token(6);
|
$random = token(6);
|
||||||
|
|
||||||
$otp_baru = Http::post(config('api.url'). '/api/otp/generateotp/' . $nokp,[
|
$otp_baru = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url'). '/api/otp/generateotp/' . $nokp,[
|
||||||
'otptoken' => $random,
|
'otptoken' => $random,
|
||||||
'expired' => $expired,
|
'expired' => $expired,
|
||||||
'kodcaw' => $auth_user['cawangan']
|
'kodcaw' => $auth_user['cawangan']
|
||||||
@@ -262,7 +262,7 @@ class CustomersController extends Controller
|
|||||||
}else{
|
}else{
|
||||||
$random = token(6);
|
$random = token(6);
|
||||||
|
|
||||||
$otp_baru = Http::post(config('api.url'). '/api/otp/generateotp/' . $nokp,[
|
$otp_baru = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url'). '/api/otp/generateotp/' . $nokp,[
|
||||||
'otptoken' => $random,
|
'otptoken' => $random,
|
||||||
'expired' => $expired,
|
'expired' => $expired,
|
||||||
'kodcaw' => $auth_user['cawangan']
|
'kodcaw' => $auth_user['cawangan']
|
||||||
@@ -280,7 +280,7 @@ class CustomersController extends Controller
|
|||||||
}else{
|
}else{
|
||||||
$random = token(6);
|
$random = token(6);
|
||||||
|
|
||||||
$otp_baru = Http::post(config('api.url'). '/api/otp/generateotp/' . $nokp,[
|
$otp_baru = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url'). '/api/otp/generateotp/' . $nokp,[
|
||||||
'otptoken' => $random,
|
'otptoken' => $random,
|
||||||
'expired' => $expired,
|
'expired' => $expired,
|
||||||
'kodcaw' => $auth_user['cawangan']
|
'kodcaw' => $auth_user['cawangan']
|
||||||
@@ -293,7 +293,7 @@ class CustomersController extends Controller
|
|||||||
}else{
|
}else{
|
||||||
$random = token(6);
|
$random = token(6);
|
||||||
|
|
||||||
$otp_baru = Http::post(config('api.url'). '/api/otp/generateotp/' . $nokp,[
|
$otp_baru = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url'). '/api/otp/generateotp/' . $nokp,[
|
||||||
'otptoken' => $random,
|
'otptoken' => $random,
|
||||||
'expired' => $expired,
|
'expired' => $expired,
|
||||||
'kodcaw' => $auth_user['cawangan']
|
'kodcaw' => $auth_user['cawangan']
|
||||||
@@ -308,7 +308,7 @@ class CustomersController extends Controller
|
|||||||
|
|
||||||
public function sendWhatsAppMessage(string $message, string $recipient)
|
public function sendWhatsAppMessage(string $message, string $recipient)
|
||||||
{
|
{
|
||||||
$status = Http::get('http://gateway.onewaysms.com.my:10001/api.aspx',[
|
$status = Http::withOptions(['verify' => config('app.api_verify')])->get('http://gateway.onewaysms.com.my:10001/api.aspx',[
|
||||||
'apiusername' => 'APIUK330HDAFO',
|
'apiusername' => 'APIUK330HDAFO',
|
||||||
'apipassword' => 'APIUK330HDAFOUK330',
|
'apipassword' => 'APIUK330HDAFOUK330',
|
||||||
'senderid' => 'INFO',
|
'senderid' => 'INFO',
|
||||||
|
|||||||
@@ -35,12 +35,12 @@ class GadaianController extends Controller
|
|||||||
$curent_month = sprintf("%02d", $current->month);
|
$curent_month = sprintf("%02d", $current->month);
|
||||||
$current_day = sprintf("%02d", $current->day);
|
$current_day = sprintf("%02d", $current->day);
|
||||||
$noic = $request->noic;
|
$noic = $request->noic;
|
||||||
$customers_info = Http::get(config('api.url') . '/api/customers/'. $noic)->json();
|
$customers_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/'. $noic)->json();
|
||||||
$customer_info = $customers_info;
|
$customer_info = $customers_info;
|
||||||
$limit_pinjaman_semasa = 0;
|
$limit_pinjaman_semasa = 0;
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
if($request->session()->get('page_reload') == null){
|
if($request->session()->get('page_reload') == null){
|
||||||
$gadai_transaction = Http::get(config('api.url') . '/api/gadai/'. $auth_user['cawangan'] . '/' . $current->toDateString())->json();
|
$gadai_transaction = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/'. $auth_user['cawangan'] . '/' . $current->toDateString())->json();
|
||||||
if($gadai_transaction){
|
if($gadai_transaction){
|
||||||
$new_sirig = $gadai_transaction['sirig'] + 1;
|
$new_sirig = $gadai_transaction['sirig'] + 1;
|
||||||
}else{
|
}else{
|
||||||
@@ -52,7 +52,7 @@ class GadaianController extends Controller
|
|||||||
Session::put('nokp',$noic);
|
Session::put('nokp',$noic);
|
||||||
Session::put('nopelanggan',$customer_info['nopelanggan']);
|
Session::put('nopelanggan',$customer_info['nopelanggan']);
|
||||||
Session::put('page_reload',true);
|
Session::put('page_reload',true);
|
||||||
$gadai = Http::post(config('api.url').'/api/gadai/'.$auth_user['cawangan'],[
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url').'/api/gadai/'.$auth_user['cawangan'],[
|
||||||
'norujukan' => $norujukan,
|
'norujukan' => $norujukan,
|
||||||
'nopelanggan' => $customer_info['nopelanggan'],
|
'nopelanggan' => $customer_info['nopelanggan'],
|
||||||
'nokp' => $noic,
|
'nokp' => $noic,
|
||||||
@@ -62,9 +62,9 @@ class GadaianController extends Controller
|
|||||||
$norujukan = Session::get('norujukan');
|
$norujukan = Session::get('norujukan');
|
||||||
$nokp = Session::get('nokp');
|
$nokp = Session::get('nokp');
|
||||||
$nopelanggan = Session::get('nopelanggan');
|
$nopelanggan = Session::get('nopelanggan');
|
||||||
$gadai_session = Http::get(config('api.url') . '/api/check/sag',['kodcaw'=>$auth_user['cawangan'],'norujukan'=>$norujukan,'nokp'=>$nokp])->json();
|
$gadai_session = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/check/sag',['kodcaw'=>$auth_user['cawangan'],'norujukan'=>$norujukan,'nokp'=>$nokp])->json();
|
||||||
if($gadai_session == null){
|
if($gadai_session == null){
|
||||||
$gadai_transaction = Http::get(config('api.url') . '/api/gadai/'. $auth_user['cawangan'] . '/' . $current->toDateString())->json();
|
$gadai_transaction = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/'. $auth_user['cawangan'] . '/' . $current->toDateString())->json();
|
||||||
if($gadai_transaction){
|
if($gadai_transaction){
|
||||||
$new_sirig = $gadai_transaction['sirig'] + 1;
|
$new_sirig = $gadai_transaction['sirig'] + 1;
|
||||||
}else{
|
}else{
|
||||||
@@ -76,7 +76,7 @@ class GadaianController extends Controller
|
|||||||
Session::put('nokp',$nokp);
|
Session::put('nokp',$nokp);
|
||||||
Session::put('nopelanggan',$nopelanggan);
|
Session::put('nopelanggan',$nopelanggan);
|
||||||
Session::put('page_reload',true);
|
Session::put('page_reload',true);
|
||||||
$gadai_baru = Http::post(config('api.url') .'/api/gadai/'.$auth_user['cawangan'],[
|
$gadai_baru = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url') .'/api/gadai/'.$auth_user['cawangan'],[
|
||||||
'norujukan' => $norujukan_baru,
|
'norujukan' => $norujukan_baru,
|
||||||
'nopelanggan' => $nopelanggan,
|
'nopelanggan' => $nopelanggan,
|
||||||
'nokp' => $nokp,
|
'nokp' => $nokp,
|
||||||
@@ -87,7 +87,7 @@ class GadaianController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$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.index',compact('customer_info','limit_pinjaman_semasa','cawangan_info','norujukan','api_url','current'));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -102,19 +102,19 @@ class GadaianController extends Controller
|
|||||||
// dd($current_day);
|
// dd($current_day);
|
||||||
|
|
||||||
|
|
||||||
$gadaiannorujukan = Http::get(config('api.url') . '/api/gadai/norujukan/'. $norujukan)->json();
|
$gadaiannorujukan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $norujukan)->json();
|
||||||
|
|
||||||
if(sizeof($gadaiannorujukan) != 0)
|
if(sizeof($gadaiannorujukan) != 0)
|
||||||
$gadaiannorujukan = $gadaiannorujukan[0][0];
|
$gadaiannorujukan = $gadaiannorujukan[0][0];
|
||||||
|
|
||||||
$noic = $request->noic;
|
$noic = $request->noic;
|
||||||
$customers_info = Http::get(config('api.url') . '/api/customers/'. $gadaiannorujukan['nokp'])->json();
|
$customers_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/'. $gadaiannorujukan['nokp'])->json();
|
||||||
$customer_info = $customers_info;
|
$customer_info = $customers_info;
|
||||||
|
|
||||||
$limit_pinjaman_semasa = 0;
|
$limit_pinjaman_semasa = 0;
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
|
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$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.edit',compact('customer_info','gadaiannorujukan','limit_pinjaman_semasa','cawangan_info','norujukan','api_url'));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -124,7 +124,7 @@ class GadaianController extends Controller
|
|||||||
|
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
|
|
||||||
$gadaiannorujukan = Http::put(config('api.url') . '/api/gadai/edit/marhun/'. $auth_user['cawangan'] . '/' . $request->norujukan,[
|
$gadaiannorujukan = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url') . '/api/gadai/edit/marhun/'. $auth_user['cawangan'] . '/' . $request->norujukan,[
|
||||||
"recno" => $request->recno
|
"recno" => $request->recno
|
||||||
])->json();
|
])->json();
|
||||||
|
|
||||||
@@ -137,7 +137,7 @@ class GadaianController extends Controller
|
|||||||
|
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
|
|
||||||
$gadaiannorujukan = Http::put(config('api.url') . '/api/gadai/ubah/marhun/'. $auth_user['cawangan'] . '/' . $request->norujukedit,[
|
$gadaiannorujukan = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url') . '/api/gadai/ubah/marhun/'. $auth_user['cawangan'] . '/' . $request->norujukedit,[
|
||||||
'recno' => $request->recno,
|
'recno' => $request->recno,
|
||||||
'karat' => $request->sltkarat,
|
'karat' => $request->sltkarat,
|
||||||
'berat' => $request->berat,
|
'berat' => $request->berat,
|
||||||
@@ -162,7 +162,7 @@ class GadaianController extends Controller
|
|||||||
$keuntungan6bulan = $keuntungan_sebln * 6;
|
$keuntungan6bulan = $keuntungan_sebln * 6;
|
||||||
$keuntungan12bulan = $keuntungan_sebln * 12;
|
$keuntungan12bulan = $keuntungan_sebln * 12;
|
||||||
$hargajualan = $request->pinjaman + $keuntungan12bulan;
|
$hargajualan = $request->pinjaman + $keuntungan12bulan;
|
||||||
$gadai = Http::put(config('api.url').'/api/gadai/norujukan/'. $auth_user['cawangan'] .'/' . $request->norujukan_gadai,[
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url').'/api/gadai/norujukan/'. $auth_user['cawangan'] .'/' . $request->norujukan_gadai,[
|
||||||
'kodcaw' => $auth_user['cawangan'],
|
'kodcaw' => $auth_user['cawangan'],
|
||||||
'nilaimarhun' => round($total_nilai_marhun, 2),
|
'nilaimarhun' => round($total_nilai_marhun, 2),
|
||||||
'berat' => round($request->total_berat, 2),
|
'berat' => round($request->total_berat, 2),
|
||||||
@@ -178,7 +178,7 @@ class GadaianController extends Controller
|
|||||||
'transaction' => 'Daftar Gadai'
|
'transaction' => 'Daftar Gadai'
|
||||||
])->json();
|
])->json();
|
||||||
|
|
||||||
$komuditi = Http::put(config('api.url').'/api/komuditi/transaksi',[
|
$komuditi = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url').'/api/komuditi/transaksi',[
|
||||||
'unit_komuditi' => round($request->pinjaman, 2),
|
'unit_komuditi' => round($request->pinjaman, 2),
|
||||||
'norujukan' => $request->norujukan_gadai,
|
'norujukan' => $request->norujukan_gadai,
|
||||||
'kodcaw' => $auth_user['cawangan'],
|
'kodcaw' => $auth_user['cawangan'],
|
||||||
@@ -208,7 +208,7 @@ class GadaianController extends Controller
|
|||||||
$keuntungan6bulan = $keuntungan_sebln * 6;
|
$keuntungan6bulan = $keuntungan_sebln * 6;
|
||||||
$keuntungan12bulan = $keuntungan_sebln * 12;
|
$keuntungan12bulan = $keuntungan_sebln * 12;
|
||||||
$hargajualan = $request->pinjaman + $keuntungan12bulan;
|
$hargajualan = $request->pinjaman + $keuntungan12bulan;
|
||||||
$gadai = Http::put(config('api.url').'/api/gadai/norujukan/'. $auth_user['cawangan'] .'/' . $request->norujukan_gadai,[
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url').'/api/gadai/norujukan/'. $auth_user['cawangan'] .'/' . $request->norujukan_gadai,[
|
||||||
'kodcaw' => $auth_user['cawangan'],
|
'kodcaw' => $auth_user['cawangan'],
|
||||||
'nilaimarhun' => round($total_nilai_marhun, 2),
|
'nilaimarhun' => round($total_nilai_marhun, 2),
|
||||||
'berat' => round($request->total_berat, 2),
|
'berat' => round($request->total_berat, 2),
|
||||||
@@ -223,7 +223,7 @@ class GadaianController extends Controller
|
|||||||
'kuantiti_marhun' => $request->kuantiti_marhun,
|
'kuantiti_marhun' => $request->kuantiti_marhun,
|
||||||
'transaction' => 'Ubah Gadai'
|
'transaction' => 'Ubah Gadai'
|
||||||
])->json();
|
])->json();
|
||||||
$update_komuditi = Http::put(config('api.url').'/api/komuditi/update',[
|
$update_komuditi = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url').'/api/komuditi/update',[
|
||||||
'unit_komuditi' => round($request->pinjaman, 2),
|
'unit_komuditi' => round($request->pinjaman, 2),
|
||||||
'norujukan' => $request->norujukan_gadai
|
'norujukan' => $request->norujukan_gadai
|
||||||
])->json();
|
])->json();
|
||||||
@@ -239,7 +239,7 @@ class GadaianController extends Controller
|
|||||||
$norujukan = $request->norujukan;
|
$norujukan = $request->norujukan;
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
|
|
||||||
Http::delete(config('api.url').'/api/gadai/batal/'. $auth_user['cawangan'] .'/' . $norujukan);
|
Http::withOptions(['verify' => config('app.api_verify')])->delete(config('api.url').'/api/gadai/batal/'. $auth_user['cawangan'] .'/' . $norujukan);
|
||||||
$request->session()->forget('page_reload');
|
$request->session()->forget('page_reload');
|
||||||
$request->session()->forget('norujukan');
|
$request->session()->forget('norujukan');
|
||||||
return redirect()->route('customer_info');
|
return redirect()->route('customer_info');
|
||||||
@@ -250,7 +250,7 @@ class GadaianController extends Controller
|
|||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
|
|
||||||
|
|
||||||
// Http::delete(config('api.url').'/api/gadai/batal/'. $auth_user['cawangan'] .'/' . $norujukan);
|
// Http::withOptions(['verify' => config('app.api_verify')])->delete(config('api.url').'/api/gadai/batal/'. $auth_user['cawangan'] .'/' . $norujukan);
|
||||||
// $request->session()->forget('page_reload');
|
// $request->session()->forget('page_reload');
|
||||||
// $request->session()->forget('norujukan');
|
// $request->session()->forget('norujukan');
|
||||||
// return redirect()->route('customer_info');
|
// return redirect()->route('customer_info');
|
||||||
@@ -259,7 +259,7 @@ class GadaianController extends Controller
|
|||||||
public function cetakSAG(Request $request){
|
public function cetakSAG(Request $request){
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
|
|
||||||
$gadai = Http::put(config('api.url').'/api/gadai/norujukan/cetak/'.$auth_user['cawangan'].'/'.$request->norujukan_modal);
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url').'/api/gadai/norujukan/cetak/'.$auth_user['cawangan'].'/'.$request->norujukan_modal);
|
||||||
|
|
||||||
return redirect()->route('home');
|
return redirect()->route('home');
|
||||||
}
|
}
|
||||||
@@ -276,7 +276,7 @@ class GadaianController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
foreach($arraynorujukan as $index=>$norujukan){
|
foreach($arraynorujukan as $index=>$norujukan){
|
||||||
$gadai = Http::put(config('api.url'). '/api/gadai/norujukan/serah/'. $auth_user['cawangan'] .'/'. $norujukan);
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url'). '/api/gadai/norujukan/serah/'. $auth_user['cawangan'] .'/'. $norujukan);
|
||||||
|
|
||||||
if($gadai->failed()){
|
if($gadai->failed()){
|
||||||
break;
|
break;
|
||||||
@@ -294,24 +294,24 @@ class GadaianController extends Controller
|
|||||||
$auth_username = $auth_user['name'];
|
$auth_username = $auth_user['name'];
|
||||||
$api_url = config('api.url');
|
$api_url = config('api.url');
|
||||||
|
|
||||||
$gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $auth_user['cawangan'] .'/' .$norujukan)->json();
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $auth_user['cawangan'] .'/' .$norujukan)->json();
|
||||||
$gadai_detail = $gadai[0];
|
$gadai_detail = $gadai[0];
|
||||||
|
|
||||||
if(isset($request->jenisprint))
|
if(isset($request->jenisprint))
|
||||||
{
|
{
|
||||||
|
|
||||||
$cetak_sag = Http::put(config('api.url').'/api/gadai/norujukan/cetak/'.$auth_user['cawangan'].'/'.$norujukan,[
|
$cetak_sag = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url').'/api/gadai/norujukan/cetak/'.$auth_user['cawangan'].'/'.$norujukan,[
|
||||||
'penilai' => $auth_user['name']
|
'penilai' => $auth_user['name']
|
||||||
]);
|
]);
|
||||||
|
|
||||||
}
|
}
|
||||||
$customer = Http::get(config('api.url') . '/api/customers/'. $gadai_detail['nokp'])->json();
|
$customer = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/'. $gadai_detail['nokp'])->json();
|
||||||
$customer_detail = $customer;
|
$customer_detail = $customer;
|
||||||
|
|
||||||
$marhun = Http::get(config('api.url'). '/api/marhun/'. $norujukan)->json();
|
$marhun = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/marhun/'. $norujukan)->json();
|
||||||
$marhun_detail = $marhun[0];
|
$marhun_detail = $marhun[0];
|
||||||
|
|
||||||
$cawangan = Http::get(config('api.url') . '/api/cawangan/detail/'. $auth_user['cawangan'])->json();
|
$cawangan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/detail/'. $auth_user['cawangan'])->json();
|
||||||
|
|
||||||
$cawangan_detail = $cawangan[0];
|
$cawangan_detail = $cawangan[0];
|
||||||
|
|
||||||
@@ -325,17 +325,17 @@ class GadaianController extends Controller
|
|||||||
|
|
||||||
$totaltransaction = 0;
|
$totaltransaction = 0;
|
||||||
|
|
||||||
$transaction = Http::get(config('api.url') . '/api/transaction/id/'. $id)->json();
|
$transaction = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/transaction/id/'. $id)->json();
|
||||||
|
|
||||||
if(sizeof($transaction) != 0)
|
if(sizeof($transaction) != 0)
|
||||||
$transaction = $transaction[0];
|
$transaction = $transaction[0];
|
||||||
|
|
||||||
$gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $transaction['norujukan'])->json();
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $transaction['norujukan'])->json();
|
||||||
|
|
||||||
if(sizeof($gadai) != 0)
|
if(sizeof($gadai) != 0)
|
||||||
$gadai = $gadai[0][0];
|
$gadai = $gadai[0][0];
|
||||||
|
|
||||||
$customers_info = Http::get(config('api.url') . '/api/customers/'. $gadai['nokp'])->json();
|
$customers_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/'. $gadai['nokp'])->json();
|
||||||
|
|
||||||
// if(sizeof($customers_info) != 0)
|
// if(sizeof($customers_info) != 0)
|
||||||
// $customers_info = $customers_info[0];
|
// $customers_info = $customers_info[0];
|
||||||
@@ -348,14 +348,14 @@ class GadaianController extends Controller
|
|||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
$totaltransaction = 0;
|
$totaltransaction = 0;
|
||||||
|
|
||||||
$transaction = Http::get(config('api.url') . '/api/transaction/one/'. $id)->json();
|
$transaction = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/transaction/one/'. $id)->json();
|
||||||
|
|
||||||
$gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $id)->json();
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $id)->json();
|
||||||
|
|
||||||
if(sizeof($gadai) != 0)
|
if(sizeof($gadai) != 0)
|
||||||
$gadai = $gadai[0][0];
|
$gadai = $gadai[0][0];
|
||||||
|
|
||||||
$customers_info = Http::get(config('api.url') . '/api/customers/'. $gadai['nokp'])->json();
|
$customers_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/'. $gadai['nokp'])->json();
|
||||||
|
|
||||||
// if(sizeof($customers_info) != 0)
|
// if(sizeof($customers_info) != 0)
|
||||||
// $customers_info = $customers_info[0];
|
// $customers_info = $customers_info[0];
|
||||||
@@ -372,22 +372,22 @@ class GadaianController extends Controller
|
|||||||
// if(sizeof($transaction) != 0)
|
// if(sizeof($transaction) != 0)
|
||||||
// $transaction = $transaction[0];
|
// $transaction = $transaction[0];
|
||||||
|
|
||||||
$gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $id)->json();
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $id)->json();
|
||||||
|
|
||||||
if(sizeof($gadai) != 0)
|
if(sizeof($gadai) != 0)
|
||||||
$gadai = $gadai[0][0];
|
$gadai = $gadai[0][0];
|
||||||
|
|
||||||
$customers_info = Http::get(config('api.url') . '/api/customers/'. $gadai['nokp'])->json();
|
$customers_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/'. $gadai['nokp'])->json();
|
||||||
|
|
||||||
// if(sizeof($customers_info) != 0)
|
// if(sizeof($customers_info) != 0)
|
||||||
// $customers_info = $customers_info[0];
|
// $customers_info = $customers_info[0];
|
||||||
|
|
||||||
$penebusan = Http::get(config('api.url') . '/api/listpenebusanhistory/' . $auth_user['cawangan'],[ "norujukan" => $id])->json();
|
$penebusan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/listpenebusanhistory/' . $auth_user['cawangan'],[ "norujukan" => $id])->json();
|
||||||
|
|
||||||
if(sizeof($penebusan) != 0)
|
if(sizeof($penebusan) != 0)
|
||||||
$penebusan = $penebusan[0];
|
$penebusan = $penebusan[0];
|
||||||
|
|
||||||
$wakil = Http::get(config('api.url') . '/api/getwakil/' . $auth_user['cawangan'] . '/code/' . $penebusan['nowakil'])->json();
|
$wakil = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/getwakil/' . $auth_user['cawangan'] . '/code/' . $penebusan['nowakil'])->json();
|
||||||
|
|
||||||
// dd($wakil);
|
// dd($wakil);
|
||||||
if(sizeof($wakil) != 0)
|
if(sizeof($wakil) != 0)
|
||||||
@@ -401,11 +401,11 @@ class GadaianController extends Controller
|
|||||||
|
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
|
|
||||||
$gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $id)->json();
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $id)->json();
|
||||||
|
|
||||||
$totaltransaction = 0;
|
$totaltransaction = 0;
|
||||||
|
|
||||||
$transaction = Http::get(config('api.url') . '/api/transaction/'. $id)->json();
|
$transaction = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/transaction/'. $id)->json();
|
||||||
|
|
||||||
foreach($transaction as $trans)
|
foreach($transaction as $trans)
|
||||||
{
|
{
|
||||||
@@ -415,18 +415,18 @@ class GadaianController extends Controller
|
|||||||
if(sizeof($gadai) != 0)
|
if(sizeof($gadai) != 0)
|
||||||
$gadai = $gadai[0][0];
|
$gadai = $gadai[0][0];
|
||||||
|
|
||||||
$customers_info = Http::get(config('api.url') . '/api/customers/'. $gadai['nokp'])->json();
|
$customers_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/'. $gadai['nokp'])->json();
|
||||||
|
|
||||||
// if(sizeof($customers_info) != 0)
|
// if(sizeof($customers_info) != 0)
|
||||||
// $customers_info = $customers_info[0];
|
// $customers_info = $customers_info[0];
|
||||||
|
|
||||||
|
|
||||||
$penebusan = Http::get(config('api.url') . '/api/listpenebusanhistory/' . $auth_user['cawangan'],[ "norujukan" => $id])->json();
|
$penebusan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/listpenebusanhistory/' . $auth_user['cawangan'],[ "norujukan" => $id])->json();
|
||||||
|
|
||||||
if(sizeof($penebusan) != 0)
|
if(sizeof($penebusan) != 0)
|
||||||
$penebusan = $penebusan[0];
|
$penebusan = $penebusan[0];
|
||||||
|
|
||||||
$wakil = Http::get(config('api.url') . '/api/getwakil/' . $auth_user['cawangan'] . '/code/' . $penebusan['nowakil'])->json();
|
$wakil = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/getwakil/' . $auth_user['cawangan'] . '/code/' . $penebusan['nowakil'])->json();
|
||||||
|
|
||||||
// dd($wakil);
|
// dd($wakil);
|
||||||
if(sizeof($wakil) != 0)
|
if(sizeof($wakil) != 0)
|
||||||
@@ -440,11 +440,11 @@ class GadaianController extends Controller
|
|||||||
|
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
|
|
||||||
$gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $id)->json();
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $id)->json();
|
||||||
|
|
||||||
$totaltransaction = 0;
|
$totaltransaction = 0;
|
||||||
|
|
||||||
$transaction = Http::get(config('api.url') . '/api/transaction/'. $id)->json();
|
$transaction = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/transaction/'. $id)->json();
|
||||||
|
|
||||||
foreach($transaction as $trans)
|
foreach($transaction as $trans)
|
||||||
{
|
{
|
||||||
@@ -454,19 +454,19 @@ class GadaianController extends Controller
|
|||||||
if(sizeof($gadai) != 0)
|
if(sizeof($gadai) != 0)
|
||||||
$gadai = $gadai[0][0];
|
$gadai = $gadai[0][0];
|
||||||
|
|
||||||
$customers_info = Http::get(config('api.url') . '/api/customers/'. $gadai['nokp'])->json();
|
$customers_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/'. $gadai['nokp'])->json();
|
||||||
|
|
||||||
$transaction_keuntungan = Http::get(config('api.url'). '/api/transaksi_keuntungan_latest/'. $id)->json();
|
$transaction_keuntungan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/transaksi_keuntungan_latest/'. $id)->json();
|
||||||
// if(sizeof($customers_info) != 0)
|
// if(sizeof($customers_info) != 0)
|
||||||
// $customers_info = $customers_info[0];
|
// $customers_info = $customers_info[0];
|
||||||
|
|
||||||
|
|
||||||
$penebusan = Http::get(config('api.url') . '/api/listpenebusanhistory/' . $auth_user['cawangan'],[ "norujukan" => $id])->json();
|
$penebusan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/listpenebusanhistory/' . $auth_user['cawangan'],[ "norujukan" => $id])->json();
|
||||||
|
|
||||||
if(sizeof($penebusan) != 0)
|
if(sizeof($penebusan) != 0)
|
||||||
$penebusan = $penebusan[0];
|
$penebusan = $penebusan[0];
|
||||||
|
|
||||||
$wakil = Http::get(config('api.url') . '/api/getwakil/' . $auth_user['cawangan'] . '/code/' . $penebusan['nowakil'])->json();
|
$wakil = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/getwakil/' . $auth_user['cawangan'] . '/code/' . $penebusan['nowakil'])->json();
|
||||||
|
|
||||||
// dd($wakil);
|
// dd($wakil);
|
||||||
if(sizeof($wakil) != 0)
|
if(sizeof($wakil) != 0)
|
||||||
@@ -480,13 +480,13 @@ class GadaianController extends Controller
|
|||||||
|
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
|
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
|
|
||||||
$gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $id)->json();
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $id)->json();
|
||||||
|
|
||||||
$totaltransaction = 0;
|
$totaltransaction = 0;
|
||||||
|
|
||||||
$transaction = Http::get(config('api.url') . '/api/transaction/'. $id)->json();
|
$transaction = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/transaction/'. $id)->json();
|
||||||
|
|
||||||
foreach($transaction as $trans)
|
foreach($transaction as $trans)
|
||||||
{
|
{
|
||||||
@@ -497,20 +497,20 @@ class GadaianController extends Controller
|
|||||||
if(sizeof($gadai) != 0)
|
if(sizeof($gadai) != 0)
|
||||||
$gadai = $gadai[0][0];
|
$gadai = $gadai[0][0];
|
||||||
|
|
||||||
$customers_info = Http::get(config('api.url') . '/api/customers/'. $gadai['nokp'])->json();
|
$customers_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/'. $gadai['nokp'])->json();
|
||||||
|
|
||||||
// if(sizeof($customers_info) != 0)
|
// if(sizeof($customers_info) != 0)
|
||||||
// $customers_info = $customers_info[0];
|
// $customers_info = $customers_info[0];
|
||||||
|
|
||||||
|
|
||||||
$penebusan = Http::get(config('api.url') . '/api/listpenebusanhistory/' . $auth_user['cawangan'],[ "norujukan" => $id])->json();
|
$penebusan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/listpenebusanhistory/' . $auth_user['cawangan'],[ "norujukan" => $id])->json();
|
||||||
|
|
||||||
if(sizeof($penebusan) != 0)
|
if(sizeof($penebusan) != 0)
|
||||||
$penebusan = $penebusan[0];
|
$penebusan = $penebusan[0];
|
||||||
|
|
||||||
$wakil = Http::get(config('api.url') . '/api/getwakil/' . $auth_user['cawangan'] . '/code/' . $penebusan['nowakil'])->json();
|
$wakil = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/getwakil/' . $auth_user['cawangan'] . '/code/' . $penebusan['nowakil'])->json();
|
||||||
|
|
||||||
$totalBayaranAnsuran = Http::get(config('api.url') . '/api/transaction/norujukan/total/ansuran',['norujukan'=>$id])->json();
|
$totalBayaranAnsuran = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/transaction/norujukan/total/ansuran',['norujukan'=>$id])->json();
|
||||||
|
|
||||||
// dd($wakil);
|
// dd($wakil);
|
||||||
if(sizeof($wakil) != 0)
|
if(sizeof($wakil) != 0)
|
||||||
@@ -524,19 +524,19 @@ class GadaianController extends Controller
|
|||||||
|
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
|
|
||||||
$gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $id)->json();
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $id)->json();
|
||||||
|
|
||||||
|
|
||||||
if(sizeof($gadai) != 0)
|
if(sizeof($gadai) != 0)
|
||||||
$gadai = $gadai[0][0];
|
$gadai = $gadai[0][0];
|
||||||
|
|
||||||
$customers_info = Http::get(config('api.url') . '/api/customers/'. $gadai['nokp'])->json();
|
$customers_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/'. $gadai['nokp'])->json();
|
||||||
|
|
||||||
// if(sizeof($customers_info) != 0)
|
// if(sizeof($customers_info) != 0)
|
||||||
// $customers_info = $customers_info[0];
|
// $customers_info = $customers_info[0];
|
||||||
|
|
||||||
|
|
||||||
$penebusan = Http::get(config('api.url') . '/api/listpenebusanhistory/' . $auth_user['cawangan'] ,[ "norujukan" => $id])->json();
|
$penebusan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/listpenebusanhistory/' . $auth_user['cawangan'] ,[ "norujukan" => $id])->json();
|
||||||
|
|
||||||
if(sizeof($penebusan) != 0)
|
if(sizeof($penebusan) != 0)
|
||||||
$penebusan = $penebusan[0];
|
$penebusan = $penebusan[0];
|
||||||
@@ -545,7 +545,7 @@ class GadaianController extends Controller
|
|||||||
|
|
||||||
if($penebusan['nowakil'] != 0)
|
if($penebusan['nowakil'] != 0)
|
||||||
{
|
{
|
||||||
$wakil = Http::get(config('api.url') . '/api/getwakil/' . $auth_user['cawangan'] . '/code/' . $penebusan['nowakil'])->json();
|
$wakil = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/getwakil/' . $auth_user['cawangan'] . '/code/' . $penebusan['nowakil'])->json();
|
||||||
|
|
||||||
if(sizeof($wakil) != 0)
|
if(sizeof($wakil) != 0)
|
||||||
$wakil = $wakil[0];
|
$wakil = $wakil[0];
|
||||||
@@ -563,21 +563,21 @@ class GadaianController extends Controller
|
|||||||
|
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
|
|
||||||
$gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $id)->json();
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $id)->json();
|
||||||
|
|
||||||
|
|
||||||
if(sizeof($gadai) != 0)
|
if(sizeof($gadai) != 0)
|
||||||
$gadai = $gadai[0][0];
|
$gadai = $gadai[0][0];
|
||||||
|
|
||||||
$customers_info = Http::get(config('api.url') . '/api/customers/'. $gadai['nokp'])->json();
|
$customers_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/'. $gadai['nokp'])->json();
|
||||||
|
|
||||||
// if(sizeof($customers_info) != 0)
|
// if(sizeof($customers_info) != 0)
|
||||||
// $customers_info = $customers_info[0];
|
// $customers_info = $customers_info[0];
|
||||||
|
|
||||||
$advansur = Http::get(config('api.url') . '/api/advansur/'. $auth_user['cawangan'] . '/'. $id)->json();
|
$advansur = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/advansur/'. $auth_user['cawangan'] . '/'. $id)->json();
|
||||||
|
|
||||||
if($advansur['nowakil'] != 0){
|
if($advansur['nowakil'] != 0){
|
||||||
$wakil = Http::get(config('api.url') . '/api/getwakil/' . $auth_user['cawangan'] . '/code/' . $advansur['nowakil'])->json();
|
$wakil = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/getwakil/' . $auth_user['cawangan'] . '/code/' . $advansur['nowakil'])->json();
|
||||||
|
|
||||||
if(sizeof($wakil) != 0){
|
if(sizeof($wakil) != 0){
|
||||||
$wakil = $wakil[0];
|
$wakil = $wakil[0];
|
||||||
@@ -596,19 +596,19 @@ class GadaianController extends Controller
|
|||||||
|
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
|
|
||||||
$gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $id)->json();
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $id)->json();
|
||||||
|
|
||||||
|
|
||||||
if(sizeof($gadai) != 0)
|
if(sizeof($gadai) != 0)
|
||||||
$gadai = $gadai[0][0];
|
$gadai = $gadai[0][0];
|
||||||
|
|
||||||
$customers_info = Http::get(config('api.url') . '/api/customers/'. $gadai['nokp'])->json();
|
$customers_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/'. $gadai['nokp'])->json();
|
||||||
|
|
||||||
// if(sizeof($customers_info) != 0)
|
// if(sizeof($customers_info) != 0)
|
||||||
// $customers_info = $customers_info[0];
|
// $customers_info = $customers_info[0];
|
||||||
|
|
||||||
|
|
||||||
$penebusan = Http::get(config('api.url') . '/api/listpenebusanhistory/' . $auth_user['cawangan'] ,[ "norujukan" => $id])->json();
|
$penebusan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/listpenebusanhistory/' . $auth_user['cawangan'] ,[ "norujukan" => $id])->json();
|
||||||
|
|
||||||
if(sizeof($penebusan) != 0)
|
if(sizeof($penebusan) != 0)
|
||||||
$penebusan = $penebusan[0];
|
$penebusan = $penebusan[0];
|
||||||
@@ -617,7 +617,7 @@ class GadaianController extends Controller
|
|||||||
|
|
||||||
if($penebusan['nowakil'] != 0)
|
if($penebusan['nowakil'] != 0)
|
||||||
{
|
{
|
||||||
$wakil = Http::get(config('api.url') . '/api/getwakil/' . $auth_user['cawangan'] . '/code/' . $penebusan['nowakil'])->json();
|
$wakil = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/getwakil/' . $auth_user['cawangan'] . '/code/' . $penebusan['nowakil'])->json();
|
||||||
|
|
||||||
if(sizeof($wakil) != 0)
|
if(sizeof($wakil) != 0)
|
||||||
$wakil = $wakil[0];
|
$wakil = $wakil[0];
|
||||||
@@ -634,7 +634,7 @@ class GadaianController extends Controller
|
|||||||
{
|
{
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
|
|
||||||
$gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $request->norujukan)->json();
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $request->norujukan)->json();
|
||||||
|
|
||||||
if(sizeof($gadai) > 0)
|
if(sizeof($gadai) > 0)
|
||||||
{
|
{
|
||||||
@@ -651,8 +651,8 @@ class GadaianController extends Controller
|
|||||||
{
|
{
|
||||||
if($history != "0" && $history != '')
|
if($history != "0" && $history != '')
|
||||||
{
|
{
|
||||||
$gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $history)->json();
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $history)->json();
|
||||||
$tebus = Http::get(config('api.url') . '/api/listpenebusanhistory/'. $auth_user['cawangan'],[
|
$tebus = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/listpenebusanhistory/'. $auth_user['cawangan'],[
|
||||||
"norujukan" => $history
|
"norujukan" => $history
|
||||||
])->json();
|
])->json();
|
||||||
|
|
||||||
@@ -670,8 +670,8 @@ class GadaianController extends Controller
|
|||||||
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $norujukan)->json();
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $norujukan)->json();
|
||||||
$tebus = Http::get(config('api.url') . '/api/listpenebusanhistory/'. $auth_user['cawangan'],[
|
$tebus = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/listpenebusanhistory/'. $auth_user['cawangan'],[
|
||||||
"norujukan" => $norujukan
|
"norujukan" => $norujukan
|
||||||
])->json();
|
])->json();
|
||||||
|
|
||||||
@@ -693,9 +693,9 @@ class GadaianController extends Controller
|
|||||||
|
|
||||||
$norujukan = $request->norujukan;
|
$norujukan = $request->norujukan;
|
||||||
|
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
|
|
||||||
$kelulusan = Http::get(config('api.url') . '/api/GetLulus/' . $auth_user['cawangan'],[
|
$kelulusan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/GetLulus/' . $auth_user['cawangan'],[
|
||||||
"norujukan" => $norujukan
|
"norujukan" => $norujukan
|
||||||
])->json();
|
])->json();
|
||||||
|
|
||||||
@@ -719,9 +719,9 @@ class GadaianController extends Controller
|
|||||||
|
|
||||||
$norujukan = $request->norujukan;
|
$norujukan = $request->norujukan;
|
||||||
|
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
|
|
||||||
$updatelulus = Http::put(config('api.url') . '/api/UpdateKelulusan/kepohonan/' . $auth_user['cawangan'] . '/' . $norujukan)->json();
|
$updatelulus = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url') . '/api/UpdateKelulusan/kepohonan/' . $auth_user['cawangan'] . '/' . $norujukan)->json();
|
||||||
|
|
||||||
return response()->json($updatelulus,200);
|
return response()->json($updatelulus,200);
|
||||||
}
|
}
|
||||||
@@ -733,14 +733,14 @@ class GadaianController extends Controller
|
|||||||
|
|
||||||
$norujukan = $request->norujukan;
|
$norujukan = $request->norujukan;
|
||||||
|
|
||||||
$gadai_info = Http::get(config('api.url') . '/api/gadai/norujukan/'. $norujukan)->json();
|
$gadai_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $norujukan)->json();
|
||||||
|
|
||||||
$pinjaman = ($gadai_info[0][0]['pinjaman']) ? $gadai_info[0][0]['pinjaman'] : '-';
|
$pinjaman = ($gadai_info[0][0]['pinjaman']) ? $gadai_info[0][0]['pinjaman'] : '-';
|
||||||
$nilaimarhun = ($gadai_info[0][0]['nilaimarhun']) ? $gadai_info[0][0]['nilaimarhun'] : '-';
|
$nilaimarhun = ($gadai_info[0][0]['nilaimarhun']) ? $gadai_info[0][0]['nilaimarhun'] : '-';
|
||||||
$berat = ($gadai_info[0][0]['berat']) ? $gadai_info[0][0]['berat'] : '-';
|
$berat = ($gadai_info[0][0]['berat']) ? $gadai_info[0][0]['berat'] : '-';
|
||||||
$percentpinj = ($gadai_info[0][0]['percentpinj']) ? $gadai_info[0][0]['percentpinj'] : '-';
|
$percentpinj = ($gadai_info[0][0]['percentpinj']) ? $gadai_info[0][0]['percentpinj'] : '-';
|
||||||
|
|
||||||
$createlulus = Http::post(config('api.url') . '/api/CreateLulus/' . $auth_user['cawangan'] . '/' . $norujukan, [
|
$createlulus = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url') . '/api/CreateLulus/' . $auth_user['cawangan'] . '/' . $norujukan, [
|
||||||
'mohon' => $request->mohon,
|
'mohon' => $request->mohon,
|
||||||
'pinjaman' => $pinjaman,
|
'pinjaman' => $pinjaman,
|
||||||
'nilaimarhun' => $nilaimarhun,
|
'nilaimarhun' => $nilaimarhun,
|
||||||
|
|||||||
@@ -17,8 +17,8 @@ class HargaEmasController extends Controller
|
|||||||
|
|
||||||
public function index(){
|
public function index(){
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
$harga_emas = Http::get(config('api.url') . '/api/harga_emas')->json();
|
$harga_emas = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/harga_emas')->json();
|
||||||
return view('harga_emas.index',compact('harga_emas','cawangan_info'));
|
return view('harga_emas.index',compact('harga_emas','cawangan_info'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,12 +31,12 @@ class HomeController extends Controller
|
|||||||
$api_url = config('api.url');
|
$api_url = config('api.url');
|
||||||
if($auth_user['roles'] == 'teller'){
|
if($auth_user['roles'] == 'teller'){
|
||||||
if($auth_user['role_harian'] == 'teller'){
|
if($auth_user['role_harian'] == 'teller'){
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
return view('homepage.'.$auth_user['role_harian'].'.home',compact('cawangan_info','api_url'));
|
return view('homepage.'.$auth_user['role_harian'].'.home',compact('cawangan_info','api_url'));
|
||||||
}elseif($auth_user['role_harian'] == 'penilai' || $auth_user['role_harian'] == 'penilai2'){
|
}elseif($auth_user['role_harian'] == 'penilai' || $auth_user['role_harian'] == 'penilai2'){
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
$gadaian_semasa = Http::get(config('api.url') . '/api/gadaiansemasa/'. $auth_user['cawangan'])->json();
|
$gadaian_semasa = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadaiansemasa/'. $auth_user['cawangan'])->json();
|
||||||
$gadaian_belumserah = Http::get(config('api.url') . '/api/gadaiansemasa/belum_serah/'. $auth_user['cawangan'])->json();
|
$gadaian_belumserah = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadaiansemasa/belum_serah/'. $auth_user['cawangan'])->json();
|
||||||
return view('homepage.penilai.home',compact('cawangan_info','gadaian_semasa','gadaian_belumserah','api_url'));
|
return view('homepage.penilai.home',compact('cawangan_info','gadaian_semasa','gadaian_belumserah','api_url'));
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
@@ -44,11 +44,11 @@ class HomeController extends Controller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
elseif($auth_user['roles'] == 'pc' || $auth_user['roles'] == 'ppc'){
|
elseif($auth_user['roles'] == 'pc' || $auth_user['roles'] == 'ppc'){
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
return view('homepage.khazanah.home',compact('cawangan_info','api_url'));
|
return view('homepage.khazanah.home',compact('cawangan_info','api_url'));
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
return view('homepage.'.$auth_user['roles'].'.home',compact('cawangan_info','api_url'));
|
return view('homepage.'.$auth_user['roles'].'.home',compact('cawangan_info','api_url'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -56,7 +56,7 @@ class HomeController extends Controller
|
|||||||
public function poskod(){
|
public function poskod(){
|
||||||
$api_url = config('api.url');
|
$api_url = config('api.url');
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
|
|
||||||
return view('admin.poskod',compact('cawangan_info','api_url','auth_user'));
|
return view('admin.poskod',compact('cawangan_info','api_url','auth_user'));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ class KakitanganController extends Controller
|
|||||||
public function daftarKakitangan(){
|
public function daftarKakitangan(){
|
||||||
$api_url = config('api.url');
|
$api_url = config('api.url');
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
$role = Role::get();
|
$role = Role::get();
|
||||||
$kakitangan = User::all();
|
$kakitangan = User::all();
|
||||||
return view('operasi.daftar_kakitangan',compact('cawangan_info','api_url','role','kakitangan','auth_user'));
|
return view('operasi.daftar_kakitangan',compact('cawangan_info','api_url','role','kakitangan','auth_user'));
|
||||||
@@ -98,7 +98,7 @@ class KakitanganController extends Controller
|
|||||||
|
|
||||||
// Check teller tak serah baki tunai untuk generate balik
|
// Check teller tak serah baki tunai untuk generate balik
|
||||||
|
|
||||||
$tunaisemalam = Http::get(config('api.url') . '/api/GetTunaiSemalam/'. $auth_user['cawangan'])->json();
|
$tunaisemalam = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/GetTunaiSemalam/'. $auth_user['cawangan'])->json();
|
||||||
|
|
||||||
if(is_array($tunaisemalam))
|
if(is_array($tunaisemalam))
|
||||||
{
|
{
|
||||||
@@ -106,11 +106,11 @@ class KakitanganController extends Controller
|
|||||||
{
|
{
|
||||||
foreach($tunaisemalam as $index=>$tunsem){
|
foreach($tunaisemalam as $index=>$tunsem){
|
||||||
|
|
||||||
$latesttunai = Http::get(config('api.url') . '/api/GetCurrentTunai/'. $auth_user['cawangan'], ['kodlaluan' => $tunsem['kodlaluan']])->json();
|
$latesttunai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/GetCurrentTunai/'. $auth_user['cawangan'], ['kodlaluan' => $tunsem['kodlaluan']])->json();
|
||||||
|
|
||||||
if(sizeof($latesttunai) == 0)
|
if(sizeof($latesttunai) == 0)
|
||||||
{
|
{
|
||||||
$alirantunai = Http::post(config('api.url') . '/api/tunai/daftarTunai/' . $auth_user['cawangan'], [
|
$alirantunai = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url') . '/api/tunai/daftarTunai/' . $auth_user['cawangan'], [
|
||||||
'kodcaw' => $tunsem['kodcaw'],
|
'kodcaw' => $tunsem['kodcaw'],
|
||||||
'teller' => $tunsem['kodlaluan'],
|
'teller' => $tunsem['kodlaluan'],
|
||||||
'bakiawal' => $tunsem['baki'],
|
'bakiawal' => $tunsem['baki'],
|
||||||
@@ -126,11 +126,11 @@ class KakitanganController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Denominasi
|
//Denominasi
|
||||||
$denominasi=Http::get(config('api.url').'/api/DenominasiController/'.$auth_user['cawangan'])->json();
|
$denominasi=Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/DenominasiController/'.$auth_user['cawangan'])->json();
|
||||||
|
|
||||||
if(sizeof($denominasi) == 0)
|
if(sizeof($denominasi) == 0)
|
||||||
{
|
{
|
||||||
$denominasi=Http::post(config('api.url').'/api/DenominasiCreate/'.$auth_user['cawangan'])->json();
|
$denominasi=Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url').'/api/DenominasiCreate/'.$auth_user['cawangan'])->json();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -138,11 +138,11 @@ class KakitanganController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Peti Besi Cawangan
|
//Peti Besi Cawangan
|
||||||
$getVault=Http::get( config('api.url').'/api/VaultController/'.$auth_user['cawangan'])->json();
|
$getVault=Http::withOptions(['verify' => config('app.api_verify')])->get( config('api.url').'/api/VaultController/'.$auth_user['cawangan'])->json();
|
||||||
|
|
||||||
if(sizeof($getVault) == 0)
|
if(sizeof($getVault) == 0)
|
||||||
{
|
{
|
||||||
$peti_besi_terkini=Http::post(config('api.url').'/api/daftarVault/'.$auth_user['cawangan'])->json();
|
$peti_besi_terkini=Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url').'/api/daftarVault/'.$auth_user['cawangan'])->json();
|
||||||
$getVault = $peti_besi_terkini['bakiakhir'];
|
$getVault = $peti_besi_terkini['bakiakhir'];
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
@@ -157,7 +157,7 @@ class KakitanganController extends Controller
|
|||||||
public function tukartaraf(Request $request){
|
public function tukartaraf(Request $request){
|
||||||
$api_url = config('api.url');
|
$api_url = config('api.url');
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
$user = User::find($request->id);
|
$user = User::find($request->id);
|
||||||
$role = Role::get();
|
$role = Role::get();
|
||||||
|
|
||||||
@@ -191,7 +191,7 @@ class KakitanganController extends Controller
|
|||||||
public function tukarcawangan(Request $request){
|
public function tukarcawangan(Request $request){
|
||||||
$api_url = config('api.url');
|
$api_url = config('api.url');
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
$user = User::find($request->id);
|
$user = User::find($request->id);
|
||||||
$role = Role::get();
|
$role = Role::get();
|
||||||
|
|
||||||
@@ -224,7 +224,7 @@ class KakitanganController extends Controller
|
|||||||
public function editKakitangan(Request $request){
|
public function editKakitangan(Request $request){
|
||||||
$api_url = config('api.url');
|
$api_url = config('api.url');
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
$user = User::find($request->id);
|
$user = User::find($request->id);
|
||||||
$role = Role::get();
|
$role = Role::get();
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -25,7 +25,7 @@ class KomuditiController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function cetakRekodKomoditi(){
|
public function cetakRekodKomoditi(){
|
||||||
$rekod = Http::get(config('api.url') . '/api/komuditi/rekodkomuditi')->json();
|
$rekod = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/komuditi/rekodkomuditi')->json();
|
||||||
|
|
||||||
return view('print.laporan_komoditi',compact('rekod'));
|
return view('print.laporan_komoditi',compact('rekod'));
|
||||||
}
|
}
|
||||||
@@ -39,7 +39,7 @@ class KomuditiController extends Controller
|
|||||||
|
|
||||||
public function printRekodTransaksi(Request $request){
|
public function printRekodTransaksi(Request $request){
|
||||||
$tarikh_rekod = $request->tarikh_print;
|
$tarikh_rekod = $request->tarikh_print;
|
||||||
$rekod_print = Http::get(config('api.url') . '/api/komoditi/rekod/transaksi',[
|
$rekod_print = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/komoditi/rekod/transaksi',[
|
||||||
'tarikh' => $request->tarikh_print
|
'tarikh' => $request->tarikh_print
|
||||||
])->json();
|
])->json();
|
||||||
|
|
||||||
|
|||||||
@@ -18,14 +18,14 @@ class LelongController extends Controller
|
|||||||
{
|
{
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
$api_url = config('api.url');
|
$api_url = config('api.url');
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
|
|
||||||
$gadaidetail = Http::get(config('api.url') . '/api/gadai/norujukan/'. $norujukan)->json();
|
$gadaidetail = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $norujukan)->json();
|
||||||
$noic = $gadaidetail[0][0]['nokp'];
|
$noic = $gadaidetail[0][0]['nokp'];
|
||||||
$customerdetail = Http::get(config('api.url') . '/api/customers/'. $noic)->json();
|
$customerdetail = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/'. $noic)->json();
|
||||||
$nama = $customerdetail['nama'];
|
$nama = $customerdetail['nama'];
|
||||||
|
|
||||||
$lelong = Http::get(config('api.url') . '/api/lelong/cawangan/'. $auth_user['cawangan'] . '/' . $norujukan)->json();
|
$lelong = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/lelong/cawangan/'. $auth_user['cawangan'] . '/' . $norujukan)->json();
|
||||||
|
|
||||||
if(sizeof($lelong) > 0)
|
if(sizeof($lelong) > 0)
|
||||||
{
|
{
|
||||||
@@ -40,8 +40,8 @@ class LelongController extends Controller
|
|||||||
public function lelong(){
|
public function lelong(){
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
$api_url = config('api.url');
|
$api_url = config('api.url');
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
$senaraibatch = Http::get(config('api.url'). '/api/senaraibatch/aktif/'. $auth_user['cawangan'])->json();
|
$senaraibatch = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/senaraibatch/aktif/'. $auth_user['cawangan'])->json();
|
||||||
|
|
||||||
return view('khazanah.lelong',compact('cawangan_info','api_url','senaraibatch'));
|
return view('khazanah.lelong',compact('cawangan_info','api_url','senaraibatch'));
|
||||||
}
|
}
|
||||||
@@ -53,12 +53,12 @@ class LelongController extends Controller
|
|||||||
$current = Carbon::now();
|
$current = Carbon::now();
|
||||||
$current = new Carbon();
|
$current = new Carbon();
|
||||||
|
|
||||||
$cawangan=Http::get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
|
$cawangan=Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
|
||||||
$cawangan_detail=$cawangan[0];
|
$cawangan_detail=$cawangan[0];
|
||||||
|
|
||||||
$lelong=Http::get(config('api.url').'/api/TuntutBaki/resit/' . $auth_user['cawangan'] . '/' . $norujukan)->json();
|
$lelong=Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/TuntutBaki/resit/' . $auth_user['cawangan'] . '/' . $norujukan)->json();
|
||||||
|
|
||||||
$wakil = Http::get(config('api.url') . '/api/getwakil/' . $auth_user['cawangan'] . '/code/' . $lelong['nowakil'])->json();
|
$wakil = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/getwakil/' . $auth_user['cawangan'] . '/code/' . $lelong['nowakil'])->json();
|
||||||
|
|
||||||
// dd($wakil);
|
// dd($wakil);
|
||||||
if(sizeof($wakil) != 0)
|
if(sizeof($wakil) != 0)
|
||||||
@@ -72,7 +72,7 @@ class LelongController extends Controller
|
|||||||
|
|
||||||
// $auth_user = Auth::user();
|
// $auth_user = Auth::user();
|
||||||
|
|
||||||
// $tuntutbaki = Http::post(config('api.url') . '/api/Tuntutbakisimpan/' . $auth_user['cawangan'], [
|
// $tuntutbaki = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url') . '/api/Tuntutbakisimpan/' . $auth_user['cawangan'], [
|
||||||
// 'batchno' => $request->batchno,
|
// 'batchno' => $request->batchno,
|
||||||
// 'jenis' => $request->jenis,
|
// 'jenis' => $request->jenis,
|
||||||
// 'norujukan' => $request->norujukan,
|
// 'norujukan' => $request->norujukan,
|
||||||
@@ -86,9 +86,9 @@ class LelongController extends Controller
|
|||||||
// 'hargajual' => $request->hargajual
|
// 'hargajual' => $request->hargajual
|
||||||
// ])->json();
|
// ])->json();
|
||||||
|
|
||||||
// $updatetuntutbaki = Http::put( config('api.url').'/api/tuntutbakiupdate/' . $auth_user['cawangan'] . '/' . $request->norujukan);
|
// $updatetuntutbaki = Http::withOptions(['verify' => config('app.api_verify')])->put( config('api.url').'/api/tuntutbakiupdate/' . $auth_user['cawangan'] . '/' . $request->norujukan);
|
||||||
|
|
||||||
// $getTunai2=Http::get(config('api.url').'/api/GetCurrentTunai/'.$auth_user['cawangan'],['kodlaluan' => $request->teller])->json();
|
// $getTunai2=Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/GetCurrentTunai/'.$auth_user['cawangan'],['kodlaluan' => $request->teller])->json();
|
||||||
|
|
||||||
// $keluar = $getTunai2['keluar'];
|
// $keluar = $getTunai2['keluar'];
|
||||||
// $baki = $getTunai2['baki'];
|
// $baki = $getTunai2['baki'];
|
||||||
@@ -108,7 +108,7 @@ class LelongController extends Controller
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
// //masuk dalam tunai aliran
|
// //masuk dalam tunai aliran
|
||||||
// $updateTunai=Http::put( config('api.url').'/api/updateTunaiGT/'.$auth_user['cawangan'], [
|
// $updateTunai=Http::withOptions(['verify' => config('app.api_verify')])->put( config('api.url').'/api/updateTunaiGT/'.$auth_user['cawangan'], [
|
||||||
// 'kodlaluan' => $request->teller,
|
// 'kodlaluan' => $request->teller,
|
||||||
// 'keluar' => $keluar,
|
// 'keluar' => $keluar,
|
||||||
// 'masuk' => $masuk,
|
// 'masuk' => $masuk,
|
||||||
@@ -127,7 +127,7 @@ class LelongController extends Controller
|
|||||||
|
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
|
|
||||||
$tuntutbaki = Http::post(config('api.url') . '/api/Tuntutbakisimpan/' . $auth_user['cawangan'], [
|
$tuntutbaki = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url') . '/api/Tuntutbakisimpan/' . $auth_user['cawangan'], [
|
||||||
'batchno' => $request->batchno,
|
'batchno' => $request->batchno,
|
||||||
'jenis' => $request->jenis,
|
'jenis' => $request->jenis,
|
||||||
'norujukan' => $request->norujukan,
|
'norujukan' => $request->norujukan,
|
||||||
@@ -141,9 +141,9 @@ class LelongController extends Controller
|
|||||||
'hargajual' => $request->hargajual
|
'hargajual' => $request->hargajual
|
||||||
])->json();
|
])->json();
|
||||||
|
|
||||||
$updatetuntutbaki = Http::put( config('api.url').'/api/tuntutbakiupdate/' . $auth_user['cawangan'] . '/' . $request->norujukan);
|
$updatetuntutbaki = Http::withOptions(['verify' => config('app.api_verify')])->put( config('api.url').'/api/tuntutbakiupdate/' . $auth_user['cawangan'] . '/' . $request->norujukan);
|
||||||
|
|
||||||
$getTunai2=Http::get(config('api.url').'/api/GetCurrentTunai/'.$auth_user['cawangan'],['kodlaluan' => $request->teller])->json();
|
$getTunai2=Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/GetCurrentTunai/'.$auth_user['cawangan'],['kodlaluan' => $request->teller])->json();
|
||||||
|
|
||||||
$keluar = $getTunai2['keluar'];
|
$keluar = $getTunai2['keluar'];
|
||||||
$baki = $getTunai2['baki'];
|
$baki = $getTunai2['baki'];
|
||||||
@@ -163,7 +163,7 @@ class LelongController extends Controller
|
|||||||
$bakiakhir += -($request->jumlah);
|
$bakiakhir += -($request->jumlah);
|
||||||
}
|
}
|
||||||
//masuk dalam tunai aliran
|
//masuk dalam tunai aliran
|
||||||
$updateTunai=Http::put( config('api.url').'/api/updateTunaiGT/'.$auth_user['cawangan'], [
|
$updateTunai=Http::withOptions(['verify' => config('app.api_verify')])->put( config('api.url').'/api/updateTunaiGT/'.$auth_user['cawangan'], [
|
||||||
'kodlaluan' => $request->teller,
|
'kodlaluan' => $request->teller,
|
||||||
'keluar' => $keluar,
|
'keluar' => $keluar,
|
||||||
'masuk' => $masuk,
|
'masuk' => $masuk,
|
||||||
|
|||||||
@@ -19,9 +19,9 @@ class MarhunController extends Controller
|
|||||||
|
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
|
|
||||||
$jemas = Http::get(config('api.url') . '/api/jemas/'. $auth_user['cawangan'])->json();
|
$jemas = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/jemas/'. $auth_user['cawangan'])->json();
|
||||||
$hargaemas = Http::get(config('api.url') . '/api/harga_emas')->json();
|
$hargaemas = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/harga_emas')->json();
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
return view('marhun.index',compact('cawangan_info','norujukan','jemas','hargaemas'));
|
return view('marhun.index',compact('cawangan_info','norujukan','jemas','hargaemas'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,9 +27,9 @@ class OperasiController extends Controller
|
|||||||
public function kelulusan(Request $request){
|
public function kelulusan(Request $request){
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
$api_url = config('api.url');
|
$api_url = config('api.url');
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
|
|
||||||
$kelulusan = Http::get(config('api.url') . '/api/ListOperasi/')->json();
|
$kelulusan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/ListOperasi/')->json();
|
||||||
|
|
||||||
$arraykelulusan = [];
|
$arraykelulusan = [];
|
||||||
|
|
||||||
@@ -53,9 +53,9 @@ class OperasiController extends Controller
|
|||||||
|
|
||||||
$norujukan = $request->norujukan;
|
$norujukan = $request->norujukan;
|
||||||
|
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
|
|
||||||
$kelulusan = Http::get(config('api.url') . '/api/SenaraiDahLulus/' . $auth_user['cawangan'] . '/' . $norujukan)->json();
|
$kelulusan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/SenaraiDahLulus/' . $auth_user['cawangan'] . '/' . $norujukan)->json();
|
||||||
|
|
||||||
if(sizeof($kelulusan) > 0)
|
if(sizeof($kelulusan) > 0)
|
||||||
{
|
{
|
||||||
@@ -80,12 +80,12 @@ class OperasiController extends Controller
|
|||||||
|
|
||||||
if($request->pembatalan == null)
|
if($request->pembatalan == null)
|
||||||
{
|
{
|
||||||
$updatelulus = Http::put(config('api.url') . '/api/UpdateKelulusanKomen/' . $request->kodcaw . '/' . $norujukan,[
|
$updatelulus = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url') . '/api/UpdateKelulusanKomen/' . $request->kodcaw . '/' . $norujukan,[
|
||||||
"komen" => $request->komenkelulusan,
|
"komen" => $request->komenkelulusan,
|
||||||
'siri' => $request->siri
|
'siri' => $request->siri
|
||||||
])->json();
|
])->json();
|
||||||
|
|
||||||
$updatelulus = Http::put(config('api.url') . '/api/UpdateKelulusan/' . $request->kodcaw . '/' . $norujukan,[
|
$updatelulus = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url') . '/api/UpdateKelulusan/' . $request->kodcaw . '/' . $norujukan,[
|
||||||
'sahkan' => 1,
|
'sahkan' => 1,
|
||||||
'namaoperasi' => $request->namaoperasi,
|
'namaoperasi' => $request->namaoperasi,
|
||||||
'siri' => $request->siri
|
'siri' => $request->siri
|
||||||
@@ -98,12 +98,12 @@ class OperasiController extends Controller
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$updatelulus = Http::put(config('api.url') . '/api/UpdateKelulusanKomen/' . $request->kodcaw . '/' . $norujukan,[
|
$updatelulus = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url') . '/api/UpdateKelulusanKomen/' . $request->kodcaw . '/' . $norujukan,[
|
||||||
"komen" => $request->komenkelulusan,
|
"komen" => $request->komenkelulusan,
|
||||||
'siri' => $request->siri
|
'siri' => $request->siri
|
||||||
])->json();
|
])->json();
|
||||||
|
|
||||||
$updatelulus = Http::put(config('api.url') . '/api/UpdateKelulusan/' . $request->kodcaw . '/' . $norujukan,[
|
$updatelulus = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url') . '/api/UpdateKelulusan/' . $request->kodcaw . '/' . $norujukan,[
|
||||||
'sahkan' => 2,
|
'sahkan' => 2,
|
||||||
'namaoperasi' => $request->namaoperasi,
|
'namaoperasi' => $request->namaoperasi,
|
||||||
'siri' => $request->siri
|
'siri' => $request->siri
|
||||||
@@ -131,9 +131,9 @@ class OperasiController extends Controller
|
|||||||
|
|
||||||
$norujukan = $request->norujukan;
|
$norujukan = $request->norujukan;
|
||||||
|
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
|
|
||||||
$getsiri = Http::get(config('api.url') . '/api/ListLatestLulus/'. $auth_user['cawangan'] . '/' . $norujukan)->json();
|
$getsiri = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/ListLatestLulus/'. $auth_user['cawangan'] . '/' . $norujukan)->json();
|
||||||
|
|
||||||
if(isset($getsiri['siri']))
|
if(isset($getsiri['siri']))
|
||||||
{
|
{
|
||||||
@@ -142,7 +142,7 @@ class OperasiController extends Controller
|
|||||||
$siri = 1;
|
$siri = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$createlulus = Http::post(config('api.url') . '/api/CreateKelulusan/' . $auth_user['cawangan'] . '/' . $norujukan . '/roles/operasi', [
|
$createlulus = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url') . '/api/CreateKelulusan/' . $auth_user['cawangan'] . '/' . $norujukan . '/roles/operasi', [
|
||||||
'komen' => $request->komen,
|
'komen' => $request->komen,
|
||||||
'dategadai' => $current->toDateString(),
|
'dategadai' => $current->toDateString(),
|
||||||
'bilgadai' => 1,
|
'bilgadai' => 1,
|
||||||
@@ -181,7 +181,7 @@ class OperasiController extends Controller
|
|||||||
{
|
{
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
$api_url = config('api.url');
|
$api_url = config('api.url');
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
|
|
||||||
return view('operasi.parameter',compact('cawangan_info','api_url'));
|
return view('operasi.parameter',compact('cawangan_info','api_url'));
|
||||||
}
|
}
|
||||||
@@ -190,8 +190,8 @@ class OperasiController extends Controller
|
|||||||
{
|
{
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
$api_url = config('api.url');
|
$api_url = config('api.url');
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
$harga_emas = Http::get(config('api.url') . '/api/harga_emas/')->json();
|
$harga_emas = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/harga_emas/')->json();
|
||||||
|
|
||||||
return view('operasi.hargaemas',compact('cawangan_info','api_url','harga_emas'));
|
return view('operasi.hargaemas',compact('cawangan_info','api_url','harga_emas'));
|
||||||
}
|
}
|
||||||
@@ -199,8 +199,8 @@ class OperasiController extends Controller
|
|||||||
public function margin(){
|
public function margin(){
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
$api_url = config('api.url');
|
$api_url = config('api.url');
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
$margin_pembiayaan = Http::get(config('api.url') . '/api/maxpinjaman')->json();
|
$margin_pembiayaan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/maxpinjaman')->json();
|
||||||
return view('operasi.margin_pembiayaan',compact('cawangan_info','api_url','margin_pembiayaan'));
|
return view('operasi.margin_pembiayaan',compact('cawangan_info','api_url','margin_pembiayaan'));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -208,12 +208,12 @@ class OperasiController extends Controller
|
|||||||
{
|
{
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
$api_url = config('api.url');
|
$api_url = config('api.url');
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
|
|
||||||
//declare array baru
|
//declare array baru
|
||||||
$arraykelulusan = [];
|
$arraykelulusan = [];
|
||||||
|
|
||||||
$kelulusan = Http::get(config('api.url') . '/api/ListOperasiKelulusan/')->json();
|
$kelulusan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/ListOperasiKelulusan/')->json();
|
||||||
|
|
||||||
|
|
||||||
foreach($kelulusan as $index=>$k)
|
foreach($kelulusan as $index=>$k)
|
||||||
|
|||||||
@@ -27,12 +27,12 @@ class PenebusanController extends Controller
|
|||||||
public function index($norujukan){
|
public function index($norujukan){
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
$api_url = config('api.url');
|
$api_url = config('api.url');
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
|
|
||||||
$gadaidetail = Http::get(config('api.url') . '/api/gadai/norujukan/'. $norujukan)->json();
|
$gadaidetail = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $norujukan)->json();
|
||||||
$noic = $gadaidetail[0][0]['nokp'];
|
$noic = $gadaidetail[0][0]['nokp'];
|
||||||
$customerdetail = Http::get(config('api.url') . '/api/customers/'. $noic)->json();
|
$customerdetail = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/'. $noic)->json();
|
||||||
$marhundetail = Http::get(config('api.url') . '/api/marhun/'. $norujukan)->json();
|
$marhundetail = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/marhun/'. $norujukan)->json();
|
||||||
|
|
||||||
$marhun = $marhundetail[0];
|
$marhun = $marhundetail[0];
|
||||||
$nama = $customerdetail['nama'];
|
$nama = $customerdetail['nama'];
|
||||||
@@ -48,7 +48,7 @@ class PenebusanController extends Controller
|
|||||||
{
|
{
|
||||||
$api_url = config('api.url');
|
$api_url = config('api.url');
|
||||||
|
|
||||||
$updatetebus = Http::put(config('api.url').'/api/updatetebus/'. $request->kodcaw .'/' . $request->norujukan,[
|
$updatetebus = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url').'/api/updatetebus/'. $request->kodcaw .'/' . $request->norujukan,[
|
||||||
"nopelanggan" => $request->nopelanggan,
|
"nopelanggan" => $request->nopelanggan,
|
||||||
"jenistebus" => $request->jenistebus,
|
"jenistebus" => $request->jenistebus,
|
||||||
"jbg" => $request->jbg,
|
"jbg" => $request->jbg,
|
||||||
@@ -80,12 +80,12 @@ class PenebusanController extends Controller
|
|||||||
{
|
{
|
||||||
$api_url = config('api.url');
|
$api_url = config('api.url');
|
||||||
|
|
||||||
$updategadai = Http::put(config('api.url').'/api/gadaikaunter/'. $request->kodcaw .'/norujukan/' . $request->norujukan,[
|
$updategadai = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url').'/api/gadaikaunter/'. $request->kodcaw .'/norujukan/' . $request->norujukan,[
|
||||||
'bayaran' => $request->bayaran,
|
'bayaran' => $request->bayaran,
|
||||||
'teller' => $request->teller
|
'teller' => $request->teller
|
||||||
])->json();
|
])->json();
|
||||||
|
|
||||||
$getTunai2=Http::get(config('api.url').'/api/GetCurrentTunai/'.$request->kodcaw,['kodlaluan' => $request->teller])->json();
|
$getTunai2=Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/GetCurrentTunai/'.$request->kodcaw,['kodlaluan' => $request->teller])->json();
|
||||||
|
|
||||||
$keluar=$getTunai2['keluar'];
|
$keluar=$getTunai2['keluar'];
|
||||||
$baki=$getTunai2['baki'];
|
$baki=$getTunai2['baki'];
|
||||||
@@ -102,7 +102,7 @@ class PenebusanController extends Controller
|
|||||||
$bakiakhir = $baki + $request->bayaran;
|
$bakiakhir = $baki + $request->bayaran;
|
||||||
|
|
||||||
// // Add on 20210411
|
// // Add on 20210411
|
||||||
// $gadaidetail = Http::get(config('api.url') . '/api/gadai/norujukan/'. $request->kodcaw.'/'.$request->norujukan)->json();
|
// $gadaidetail = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $request->kodcaw.'/'.$request->norujukan)->json();
|
||||||
// $tempohGadai=$gadaidetail[0]['tempoh'];
|
// $tempohGadai=$gadaidetail[0]['tempoh'];
|
||||||
// $upah12bulan=$gadaidetail[0]['upah12'];
|
// $upah12bulan=$gadaidetail[0]['upah12'];
|
||||||
// $bakiPinjaman=$gadaidetail[0]['bakipjm'];
|
// $bakiPinjaman=$gadaidetail[0]['bakipjm'];
|
||||||
@@ -112,7 +112,7 @@ class PenebusanController extends Controller
|
|||||||
// $tarikhgadai=$gadaidetail[0]['t_gadai'];//Add on 20210411
|
// $tarikhgadai=$gadaidetail[0]['t_gadai'];//Add on 20210411
|
||||||
|
|
||||||
//masuk dalam tunai aliran
|
//masuk dalam tunai aliran
|
||||||
$updateTunai=Http::put( config('api.url').'/api/updateTunaiGT/'.$request->kodcaw, [
|
$updateTunai=Http::withOptions(['verify' => config('app.api_verify')])->put( config('api.url').'/api/updateTunaiGT/'.$request->kodcaw, [
|
||||||
'kodlaluan' => $request->teller,
|
'kodlaluan' => $request->teller,
|
||||||
'keluar' => $keluar,
|
'keluar' => $keluar,
|
||||||
'masuk' => $totalmasuk,
|
'masuk' => $totalmasuk,
|
||||||
@@ -138,7 +138,7 @@ class PenebusanController extends Controller
|
|||||||
////////////////////////
|
////////////////////////
|
||||||
/// UPDATE TEBUS API////
|
/// UPDATE TEBUS API////
|
||||||
///////////////////////
|
///////////////////////
|
||||||
$updatetebus = Http::put(config('api.url').'/api/updatetebus/'. $auth_user['cawangan'] .'/' . $request->norujukan,[
|
$updatetebus = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url').'/api/updatetebus/'. $auth_user['cawangan'] .'/' . $request->norujukan,[
|
||||||
'nopelanggan' => $request->nopelanggan,
|
'nopelanggan' => $request->nopelanggan,
|
||||||
'jenistebus' => $request->jenistebus,
|
'jenistebus' => $request->jenistebus,
|
||||||
'jbg' => $request->jbg,
|
'jbg' => $request->jbg,
|
||||||
@@ -159,7 +159,7 @@ class PenebusanController extends Controller
|
|||||||
//////////////////////
|
//////////////////////
|
||||||
/// MAKING NEW SAG////
|
/// MAKING NEW SAG////
|
||||||
/////////////////////
|
/////////////////////
|
||||||
$gadai_transaction = Http::get(config('api.url') . '/api/gadai/'. $auth_user['cawangan'] . '/' . $current->toDateString())->json();
|
$gadai_transaction = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/'. $auth_user['cawangan'] . '/' . $current->toDateString())->json();
|
||||||
if($gadai_transaction){
|
if($gadai_transaction){
|
||||||
$new_sirig = $gadai_transaction['sirig'] + 1;
|
$new_sirig = $gadai_transaction['sirig'] + 1;
|
||||||
|
|
||||||
@@ -171,7 +171,7 @@ class PenebusanController extends Controller
|
|||||||
$norujukanbaru = strtoupper($auth_user['cawangan']) . $curent_year . $curent_month . $current_day . '-' .$new_transaction;
|
$norujukanbaru = strtoupper($auth_user['cawangan']) . $curent_year . $curent_month . $current_day . '-' .$new_transaction;
|
||||||
|
|
||||||
// dd($norujukan);
|
// dd($norujukan);
|
||||||
$gadai = Http::post(config('api.url').'/api/gadai/'.$auth_user['cawangan'],[
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url').'/api/gadai/'.$auth_user['cawangan'],[
|
||||||
'norujukan' => $norujukanbaru,
|
'norujukan' => $norujukanbaru,
|
||||||
'nopelanggan' => $request->nopelanggan,
|
'nopelanggan' => $request->nopelanggan,
|
||||||
'nokp' => $request->noic,
|
'nokp' => $request->noic,
|
||||||
@@ -190,7 +190,7 @@ class PenebusanController extends Controller
|
|||||||
$hargajualan = $request->pinjaman + $keuntungan12bulan;
|
$hargajualan = $request->pinjaman + $keuntungan12bulan;
|
||||||
|
|
||||||
|
|
||||||
$gadai = Http::put(config('api.url').'/api/gadai/norujukan/'. $auth_user['cawangan'] .'/' . $norujukanbaru,[
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url').'/api/gadai/norujukan/'. $auth_user['cawangan'] .'/' . $norujukanbaru,[
|
||||||
'kodcaw' => $auth_user['cawangan'],
|
'kodcaw' => $auth_user['cawangan'],
|
||||||
'nilaimarhun' => round($total_nilai_marhun, 2),
|
'nilaimarhun' => round($total_nilai_marhun, 2),
|
||||||
'berat' => round($request->total_berat, 2),
|
'berat' => round($request->total_berat, 2),
|
||||||
@@ -210,7 +210,7 @@ class PenebusanController extends Controller
|
|||||||
////Update History Gadaian///
|
////Update History Gadaian///
|
||||||
////////////////////////////
|
////////////////////////////
|
||||||
|
|
||||||
$updatehistorygadaian = Http::put(config('api.url').'/api/gadai/updatehistory/'. $auth_user['cawangan'] .'/' . $norujukanbaru,[
|
$updatehistorygadaian = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url').'/api/gadai/updatehistory/'. $auth_user['cawangan'] .'/' . $norujukanbaru,[
|
||||||
'historygadaian' => $request->norujukan
|
'historygadaian' => $request->norujukan
|
||||||
])->json();
|
])->json();
|
||||||
|
|
||||||
@@ -222,7 +222,7 @@ class PenebusanController extends Controller
|
|||||||
|
|
||||||
$arraymarhunbaru = [];
|
$arraymarhunbaru = [];
|
||||||
|
|
||||||
$marhunsediada = Http::get(config('api.url') . '/api/marhun/'. $request->norujukan)->json();
|
$marhunsediada = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/marhun/'. $request->norujukan)->json();
|
||||||
|
|
||||||
$marhunyangdiambil = $marhunsediada[0];
|
$marhunyangdiambil = $marhunsediada[0];
|
||||||
foreach($marhunyangdiambil as $index=>$marhunloop)
|
foreach($marhunyangdiambil as $index=>$marhunloop)
|
||||||
@@ -232,7 +232,7 @@ class PenebusanController extends Controller
|
|||||||
|
|
||||||
foreach($arraymarhunbaru as $array1)
|
foreach($arraymarhunbaru as $array1)
|
||||||
{
|
{
|
||||||
$updatemarhun = Http::post(config('api.url').'/api/marhun/'. $auth_user['cawangan'],[
|
$updatemarhun = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url').'/api/marhun/'. $auth_user['cawangan'],[
|
||||||
'norujukan' => $norujukanbaru,
|
'norujukan' => $norujukanbaru,
|
||||||
'marhun' => $array1['marhun'],
|
'marhun' => $array1['marhun'],
|
||||||
'nota' => $array1['nota'],
|
'nota' => $array1['nota'],
|
||||||
@@ -261,7 +261,7 @@ class PenebusanController extends Controller
|
|||||||
////////////////////////
|
////////////////////////
|
||||||
/// UPDATE TEBUS API////
|
/// UPDATE TEBUS API////
|
||||||
///////////////////////
|
///////////////////////
|
||||||
$updatetebus = Http::put(config('api.url').'/api/updatetebus/'. $auth_user['cawangan'] .'/' . $request->norujukan,[
|
$updatetebus = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url').'/api/updatetebus/'. $auth_user['cawangan'] .'/' . $request->norujukan,[
|
||||||
'nopelanggan' => $request->nopelanggan,
|
'nopelanggan' => $request->nopelanggan,
|
||||||
'jenistebus' => $request->jenistebus,
|
'jenistebus' => $request->jenistebus,
|
||||||
'jbg' => $request->jbg,
|
'jbg' => $request->jbg,
|
||||||
@@ -283,7 +283,7 @@ class PenebusanController extends Controller
|
|||||||
/// MAKING NEW SAG////
|
/// MAKING NEW SAG////
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
$gadai_transaction = Http::get(config('api.url') . '/api/gadai/'. $auth_user['cawangan'] . '/' . $current->toDateString())->json();
|
$gadai_transaction = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/'. $auth_user['cawangan'] . '/' . $current->toDateString())->json();
|
||||||
if($gadai_transaction){
|
if($gadai_transaction){
|
||||||
$new_sirig = $gadai_transaction['sirig'] + 1;
|
$new_sirig = $gadai_transaction['sirig'] + 1;
|
||||||
|
|
||||||
@@ -294,7 +294,7 @@ class PenebusanController extends Controller
|
|||||||
$new_transaction = sprintf("%04d",$new_sirig);
|
$new_transaction = sprintf("%04d",$new_sirig);
|
||||||
$norujukanbaru = strtoupper($auth_user['cawangan']) . $curent_year . $curent_month . $current_day . '-' .$new_transaction;
|
$norujukanbaru = strtoupper($auth_user['cawangan']) . $curent_year . $curent_month . $current_day . '-' .$new_transaction;
|
||||||
|
|
||||||
$gadai = Http::post(config('api.url').'/api/gadai/'.$auth_user['cawangan'],[
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url').'/api/gadai/'.$auth_user['cawangan'],[
|
||||||
'norujukan' => $norujukanbaru,
|
'norujukan' => $norujukanbaru,
|
||||||
'nopelanggan' => $request->nopelanggan,
|
'nopelanggan' => $request->nopelanggan,
|
||||||
'nokp' => $request->noic,
|
'nokp' => $request->noic,
|
||||||
@@ -317,7 +317,7 @@ class PenebusanController extends Controller
|
|||||||
$hargajualan = $request->pinjaman + $keuntungan12bulan;
|
$hargajualan = $request->pinjaman + $keuntungan12bulan;
|
||||||
|
|
||||||
|
|
||||||
$gadai = Http::put(config('api.url').'/api/gadai/norujukan/'. $auth_user['cawangan'] .'/' . $norujukanbaru,[
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url').'/api/gadai/norujukan/'. $auth_user['cawangan'] .'/' . $norujukanbaru,[
|
||||||
'kodcaw' => $auth_user['cawangan'],
|
'kodcaw' => $auth_user['cawangan'],
|
||||||
'nilaimarhun' => round($total_nilai_marhun, 2),
|
'nilaimarhun' => round($total_nilai_marhun, 2),
|
||||||
'berat' => round($request->total_berat, 2),
|
'berat' => round($request->total_berat, 2),
|
||||||
@@ -332,7 +332,7 @@ class PenebusanController extends Controller
|
|||||||
'kuantiti_marhun' => $request->kuantiti_marhun
|
'kuantiti_marhun' => $request->kuantiti_marhun
|
||||||
])->json();
|
])->json();
|
||||||
|
|
||||||
$komuditi = Http::put(config('api.url').'/api/komuditi/transaksi',[
|
$komuditi = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url').'/api/komuditi/transaksi',[
|
||||||
'unit_komuditi' => round($request->pinjaman, 2),
|
'unit_komuditi' => round($request->pinjaman, 2),
|
||||||
'norujukan' => $norujukanbaru,
|
'norujukan' => $norujukanbaru,
|
||||||
'kodcaw' => $auth_user['cawangan'],
|
'kodcaw' => $auth_user['cawangan'],
|
||||||
@@ -343,7 +343,7 @@ class PenebusanController extends Controller
|
|||||||
////Update History Gadaian///
|
////Update History Gadaian///
|
||||||
////////////////////////////
|
////////////////////////////
|
||||||
|
|
||||||
$updatehistorygadaian = Http::put(config('api.url').'/api/gadai/updatehistory/'. $auth_user['cawangan'] .'/' . $norujukanbaru,[
|
$updatehistorygadaian = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url').'/api/gadai/updatehistory/'. $auth_user['cawangan'] .'/' . $norujukanbaru,[
|
||||||
'historygadaian' => $request->norujukan
|
'historygadaian' => $request->norujukan
|
||||||
])->json();
|
])->json();
|
||||||
|
|
||||||
@@ -355,13 +355,13 @@ class PenebusanController extends Controller
|
|||||||
|
|
||||||
$arraymarhunbaru = [];
|
$arraymarhunbaru = [];
|
||||||
|
|
||||||
$marhunsediada = Http::get(config('api.url') . '/api/marhun/'. $request->norujukan)->json();
|
$marhunsediada = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/marhun/'. $request->norujukan)->json();
|
||||||
|
|
||||||
$marhunyangdiambil = $marhunsediada[0];
|
$marhunyangdiambil = $marhunsediada[0];
|
||||||
foreach($marhunyangdiambil as $index=>$marhunloop)
|
foreach($marhunyangdiambil as $index=>$marhunloop)
|
||||||
{
|
{
|
||||||
$karatbaru = str_replace('.','-',$marhunloop['karat']);
|
$karatbaru = str_replace('.','-',$marhunloop['karat']);
|
||||||
$hargabaru = Http::get(config('api.url') . '/api/harga_emas/'. $karatbaru)->json();
|
$hargabaru = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/harga_emas/'. $karatbaru)->json();
|
||||||
|
|
||||||
$nilaimarhun = (floatval($hargabaru['harga']) * floatval($marhunloop['berat']));
|
$nilaimarhun = (floatval($hargabaru['harga']) * floatval($marhunloop['berat']));
|
||||||
|
|
||||||
@@ -369,7 +369,7 @@ class PenebusanController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
foreach($arraymarhunbaru as $array1){
|
foreach($arraymarhunbaru as $array1){
|
||||||
$updatemarhun = Http::post(config('api.url').'/api/marhun/'. $auth_user['cawangan'],[
|
$updatemarhun = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url').'/api/marhun/'. $auth_user['cawangan'],[
|
||||||
'norujukan' => $norujukanbaru,
|
'norujukan' => $norujukanbaru,
|
||||||
'marhun' => $array1['marhun'],
|
'marhun' => $array1['marhun'],
|
||||||
'nota' => $array1['nota'],
|
'nota' => $array1['nota'],
|
||||||
@@ -400,7 +400,7 @@ class PenebusanController extends Controller
|
|||||||
////////////////////////
|
////////////////////////
|
||||||
/// UPDATE TEBUS API////
|
/// UPDATE TEBUS API////
|
||||||
///////////////////////
|
///////////////////////
|
||||||
$updatetebus = Http::put(config('api.url').'/api/updateautotawarruq/'. $auth_user['cawangan'] .'/' . $request->norujukan,[
|
$updatetebus = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url').'/api/updateautotawarruq/'. $auth_user['cawangan'] .'/' . $request->norujukan,[
|
||||||
'nopelanggan' => $request->nopelanggan,
|
'nopelanggan' => $request->nopelanggan,
|
||||||
'jenistebus' => $request->jenistebus,
|
'jenistebus' => $request->jenistebus,
|
||||||
'jbg' => $request->jbg,
|
'jbg' => $request->jbg,
|
||||||
@@ -424,7 +424,7 @@ class PenebusanController extends Controller
|
|||||||
//////////////////////
|
//////////////////////
|
||||||
/// MAKING NEW SAG////
|
/// MAKING NEW SAG////
|
||||||
/////////////////////
|
/////////////////////
|
||||||
$gadai_transaction = Http::get(config('api.url') . '/api/gadai/'. $auth_user['cawangan'] . '/' . $current->toDateString())->json();
|
$gadai_transaction = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/'. $auth_user['cawangan'] . '/' . $current->toDateString())->json();
|
||||||
if($gadai_transaction){
|
if($gadai_transaction){
|
||||||
$new_sirig = $gadai_transaction['sirig'] + 1;
|
$new_sirig = $gadai_transaction['sirig'] + 1;
|
||||||
|
|
||||||
@@ -435,7 +435,7 @@ class PenebusanController extends Controller
|
|||||||
$new_transaction = sprintf("%04d",$new_sirig);
|
$new_transaction = sprintf("%04d",$new_sirig);
|
||||||
$norujukanbaru = strtoupper($auth_user['cawangan']) . $curent_year . $curent_month . $current_day . '-' .$new_transaction;
|
$norujukanbaru = strtoupper($auth_user['cawangan']) . $curent_year . $curent_month . $current_day . '-' .$new_transaction;
|
||||||
|
|
||||||
$gadai = Http::post(config('api.url').'/api/gadai/'.$auth_user['cawangan'],[
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url').'/api/gadai/'.$auth_user['cawangan'],[
|
||||||
'norujukan' => $norujukanbaru,
|
'norujukan' => $norujukanbaru,
|
||||||
'nopelanggan' => $request->nopelanggan,
|
'nopelanggan' => $request->nopelanggan,
|
||||||
'nokp' => $request->noic,
|
'nokp' => $request->noic,
|
||||||
@@ -457,7 +457,7 @@ class PenebusanController extends Controller
|
|||||||
$hargajualan = $request->pinjaman + $keuntungan12bulan;
|
$hargajualan = $request->pinjaman + $keuntungan12bulan;
|
||||||
|
|
||||||
|
|
||||||
$gadai = Http::put(config('api.url').'/api/gadai/norujukan/'. $auth_user['cawangan'] .'/' . $norujukanbaru,[
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url').'/api/gadai/norujukan/'. $auth_user['cawangan'] .'/' . $norujukanbaru,[
|
||||||
'kodcaw' => $auth_user['cawangan'],
|
'kodcaw' => $auth_user['cawangan'],
|
||||||
'nilaimarhun' => round($total_nilai_marhun, 2),
|
'nilaimarhun' => round($total_nilai_marhun, 2),
|
||||||
'berat' => round($request->total_berat, 2),
|
'berat' => round($request->total_berat, 2),
|
||||||
@@ -472,7 +472,7 @@ class PenebusanController extends Controller
|
|||||||
'kuantiti_marhun' => $request->kuantiti_marhun
|
'kuantiti_marhun' => $request->kuantiti_marhun
|
||||||
])->json();
|
])->json();
|
||||||
|
|
||||||
$komuditi = Http::put(config('api.url').'/api/komuditi/transaksi',[
|
$komuditi = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url').'/api/komuditi/transaksi',[
|
||||||
'unit_komuditi' => round($request->pinjaman, 2),
|
'unit_komuditi' => round($request->pinjaman, 2),
|
||||||
'norujukan' => $norujukanbaru,
|
'norujukan' => $norujukanbaru,
|
||||||
'kodcaw' => $auth_user['cawangan'],
|
'kodcaw' => $auth_user['cawangan'],
|
||||||
@@ -483,7 +483,7 @@ class PenebusanController extends Controller
|
|||||||
////Update History Gadaian///
|
////Update History Gadaian///
|
||||||
////////////////////////////
|
////////////////////////////
|
||||||
|
|
||||||
$updatehistorygadaian = Http::put(config('api.url').'/api/gadai/updatehistory/'. $auth_user['cawangan'] .'/' . $norujukanbaru,[
|
$updatehistorygadaian = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url').'/api/gadai/updatehistory/'. $auth_user['cawangan'] .'/' . $norujukanbaru,[
|
||||||
'historygadaian' => $request->norujukan
|
'historygadaian' => $request->norujukan
|
||||||
])->json();
|
])->json();
|
||||||
|
|
||||||
@@ -494,13 +494,13 @@ class PenebusanController extends Controller
|
|||||||
|
|
||||||
$arraymarhunbaru = [];
|
$arraymarhunbaru = [];
|
||||||
|
|
||||||
$marhunsediada = Http::get(config('api.url') . '/api/marhun/'. $request->norujukan)->json();
|
$marhunsediada = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/marhun/'. $request->norujukan)->json();
|
||||||
|
|
||||||
$marhunyangdiambil = $marhunsediada[0];
|
$marhunyangdiambil = $marhunsediada[0];
|
||||||
foreach($marhunyangdiambil as $index=>$marhunloop)
|
foreach($marhunyangdiambil as $index=>$marhunloop)
|
||||||
{
|
{
|
||||||
$karatbaru = str_replace('.','-',$marhunloop['karat']);
|
$karatbaru = str_replace('.','-',$marhunloop['karat']);
|
||||||
$hargabaru = Http::get(config('api.url') . '/api/harga_emas/'. $karatbaru)->json();
|
$hargabaru = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/harga_emas/'. $karatbaru)->json();
|
||||||
|
|
||||||
$nilaimarhun = (floatval($hargabaru['harga']) * floatval($marhunloop['berat']));
|
$nilaimarhun = (floatval($hargabaru['harga']) * floatval($marhunloop['berat']));
|
||||||
|
|
||||||
@@ -508,7 +508,7 @@ class PenebusanController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
foreach($arraymarhunbaru as $array1){
|
foreach($arraymarhunbaru as $array1){
|
||||||
$updatemarhun = Http::post(config('api.url').'/api/marhun/'. $auth_user['cawangan'],[
|
$updatemarhun = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url').'/api/marhun/'. $auth_user['cawangan'],[
|
||||||
'norujukan' => $norujukanbaru,
|
'norujukan' => $norujukanbaru,
|
||||||
'marhun' => $array1['marhun'],
|
'marhun' => $array1['marhun'],
|
||||||
'nota' => $array1['nota'],
|
'nota' => $array1['nota'],
|
||||||
@@ -542,7 +542,7 @@ class PenebusanController extends Controller
|
|||||||
////////////////////////
|
////////////////////////
|
||||||
/// UPDATE TEBUS API////
|
/// UPDATE TEBUS API////
|
||||||
///////////////////////
|
///////////////////////
|
||||||
$updatetebus = Http::put(config('api.url').'/api/updatetebus/'. $auth_user['cawangan'] .'/' . $request->norujukan,[
|
$updatetebus = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url').'/api/updatetebus/'. $auth_user['cawangan'] .'/' . $request->norujukan,[
|
||||||
'nopelanggan' => $request->nopelanggan,
|
'nopelanggan' => $request->nopelanggan,
|
||||||
'jenistebus' => $request->jenistebus,
|
'jenistebus' => $request->jenistebus,
|
||||||
'jbg' => $request->jbg,
|
'jbg' => $request->jbg,
|
||||||
@@ -564,7 +564,7 @@ class PenebusanController extends Controller
|
|||||||
//////////////////////
|
//////////////////////
|
||||||
/// MAKING NEW SAG////
|
/// MAKING NEW SAG////
|
||||||
/////////////////////
|
/////////////////////
|
||||||
$gadai_transaction = Http::get(config('api.url') . '/api/gadai/'. $auth_user['cawangan'] . '/' . $current->toDateString())->json();
|
$gadai_transaction = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/'. $auth_user['cawangan'] . '/' . $current->toDateString())->json();
|
||||||
if($gadai_transaction){
|
if($gadai_transaction){
|
||||||
$new_sirig = $gadai_transaction['sirig'] + 1;
|
$new_sirig = $gadai_transaction['sirig'] + 1;
|
||||||
|
|
||||||
@@ -575,7 +575,7 @@ class PenebusanController extends Controller
|
|||||||
$new_transaction = sprintf("%04d",$new_sirig);
|
$new_transaction = sprintf("%04d",$new_sirig);
|
||||||
$norujukanbaru = strtoupper($auth_user['cawangan']) . $curent_year . $curent_month . $current_day . '-' .$new_transaction;
|
$norujukanbaru = strtoupper($auth_user['cawangan']) . $curent_year . $curent_month . $current_day . '-' .$new_transaction;
|
||||||
|
|
||||||
$gadai = Http::post(config('api.url').'/api/gadai/'.$auth_user['cawangan'],[
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url').'/api/gadai/'.$auth_user['cawangan'],[
|
||||||
'norujukan' => $norujukanbaru,
|
'norujukan' => $norujukanbaru,
|
||||||
'nopelanggan' => $request->nopelanggan,
|
'nopelanggan' => $request->nopelanggan,
|
||||||
'nokp' => $request->noic,
|
'nokp' => $request->noic,
|
||||||
@@ -597,7 +597,7 @@ class PenebusanController extends Controller
|
|||||||
$hargajualan = $request->pinjaman + $keuntungan12bulan;
|
$hargajualan = $request->pinjaman + $keuntungan12bulan;
|
||||||
|
|
||||||
|
|
||||||
$gadai = Http::put(config('api.url').'/api/gadai/norujukan/'. $auth_user['cawangan'] .'/' . $norujukanbaru,[
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url').'/api/gadai/norujukan/'. $auth_user['cawangan'] .'/' . $norujukanbaru,[
|
||||||
'kodcaw' => $auth_user['cawangan'],
|
'kodcaw' => $auth_user['cawangan'],
|
||||||
'nilaimarhun' => round($total_nilai_marhun, 2),
|
'nilaimarhun' => round($total_nilai_marhun, 2),
|
||||||
'berat' => round($request->total_berat, 2),
|
'berat' => round($request->total_berat, 2),
|
||||||
@@ -612,7 +612,7 @@ class PenebusanController extends Controller
|
|||||||
'kuantiti_marhun' => $request->kuantiti_marhun
|
'kuantiti_marhun' => $request->kuantiti_marhun
|
||||||
])->json();
|
])->json();
|
||||||
|
|
||||||
$komuditi = Http::put(config('api.url').'/api/komuditi/transaksi',[
|
$komuditi = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url').'/api/komuditi/transaksi',[
|
||||||
'unit_komuditi' => round($request->pinjaman, 2),
|
'unit_komuditi' => round($request->pinjaman, 2),
|
||||||
'norujukan' => $norujukanbaru,
|
'norujukan' => $norujukanbaru,
|
||||||
'kodcaw' => $auth_user['cawangan'],
|
'kodcaw' => $auth_user['cawangan'],
|
||||||
@@ -623,7 +623,7 @@ class PenebusanController extends Controller
|
|||||||
////Update History Gadaian///
|
////Update History Gadaian///
|
||||||
////////////////////////////
|
////////////////////////////
|
||||||
|
|
||||||
$updatehistorygadaian = Http::put(config('api.url').'/api/gadai/updatehistory/'. $auth_user['cawangan'] .'/' . $norujukanbaru,[
|
$updatehistorygadaian = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url').'/api/gadai/updatehistory/'. $auth_user['cawangan'] .'/' . $norujukanbaru,[
|
||||||
'historygadaian' => $request->norujukan
|
'historygadaian' => $request->norujukan
|
||||||
])->json();
|
])->json();
|
||||||
|
|
||||||
@@ -636,7 +636,7 @@ class PenebusanController extends Controller
|
|||||||
|
|
||||||
$arraydiola = $request->arrayrecno;
|
$arraydiola = $request->arrayrecno;
|
||||||
|
|
||||||
$marhunsediada = Http::get(config('api.url') . '/api/marhun/'. $request->norujukan)->json();
|
$marhunsediada = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/marhun/'. $request->norujukan)->json();
|
||||||
|
|
||||||
$marhunyangdiambil = $marhunsediada[0];
|
$marhunyangdiambil = $marhunsediada[0];
|
||||||
foreach($marhunyangdiambil as $index=>$marhunloop)
|
foreach($marhunyangdiambil as $index=>$marhunloop)
|
||||||
@@ -644,7 +644,7 @@ class PenebusanController extends Controller
|
|||||||
if(!in_array($marhunloop['recno'], $arraydiola))
|
if(!in_array($marhunloop['recno'], $arraydiola))
|
||||||
{
|
{
|
||||||
$karatbaru = str_replace('.','-',$marhunloop['karat']);
|
$karatbaru = str_replace('.','-',$marhunloop['karat']);
|
||||||
$hargabaru = Http::get(config('api.url') . '/api/harga_emas/'. $karatbaru)->json();
|
$hargabaru = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/harga_emas/'. $karatbaru)->json();
|
||||||
|
|
||||||
$nilaimarhun = (floatval($hargabaru['harga']) * floatval($marhunloop['berat']));
|
$nilaimarhun = (floatval($hargabaru['harga']) * floatval($marhunloop['berat']));
|
||||||
|
|
||||||
@@ -654,7 +654,7 @@ class PenebusanController extends Controller
|
|||||||
|
|
||||||
foreach($arraymarhunbaru as $array1)
|
foreach($arraymarhunbaru as $array1)
|
||||||
{
|
{
|
||||||
$updatemarhun = Http::post(config('api.url').'/api/marhun/'. $auth_user['cawangan'],[
|
$updatemarhun = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url').'/api/marhun/'. $auth_user['cawangan'],[
|
||||||
'norujukan' => $norujukanbaru,
|
'norujukan' => $norujukanbaru,
|
||||||
'marhun' => $array1['marhun'],
|
'marhun' => $array1['marhun'],
|
||||||
'nota' => $array1['nota'],
|
'nota' => $array1['nota'],
|
||||||
@@ -683,7 +683,7 @@ class PenebusanController extends Controller
|
|||||||
{
|
{
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
|
|
||||||
$getfirstwakil = Http::get(config('api.url') . '/api/getwakil/'. $auth_user['cawangan'])->json();
|
$getfirstwakil = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/getwakil/'. $auth_user['cawangan'])->json();
|
||||||
|
|
||||||
if(sizeof($getfirstwakil) != 0)
|
if(sizeof($getfirstwakil) != 0)
|
||||||
return $getfirstwakil[0]['nowakil'];
|
return $getfirstwakil[0]['nowakil'];
|
||||||
@@ -696,7 +696,7 @@ class PenebusanController extends Controller
|
|||||||
{
|
{
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
|
|
||||||
$getwakil = Http::get(config('api.url') . '/api/getwakil/'. $auth_user['cawangan'] . '/' . $request->wakil)->json();
|
$getwakil = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/getwakil/'. $auth_user['cawangan'] . '/' . $request->wakil)->json();
|
||||||
|
|
||||||
if(sizeof($getwakil) > 0)
|
if(sizeof($getwakil) > 0)
|
||||||
return $getwakil[0];
|
return $getwakil[0];
|
||||||
@@ -708,7 +708,7 @@ class PenebusanController extends Controller
|
|||||||
{
|
{
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
|
|
||||||
$createwakil = Http::post(config('api.url') . '/api/createwakil/'. $auth_user['cawangan'] . '/' . $request->icno,[
|
$createwakil = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url') . '/api/createwakil/'. $auth_user['cawangan'] . '/' . $request->icno,[
|
||||||
|
|
||||||
'nopelanggan' => $request->nopelanggan,
|
'nopelanggan' => $request->nopelanggan,
|
||||||
'nowakil' => $request->nowakil,
|
'nowakil' => $request->nowakil,
|
||||||
@@ -729,7 +729,7 @@ class PenebusanController extends Controller
|
|||||||
public function tukaranhargaemas($norujukan)
|
public function tukaranhargaemas($norujukan)
|
||||||
{
|
{
|
||||||
|
|
||||||
$marhunsaglama = Http::get(config('api.url') . '/api/marhun/'. $norujukan)->json();
|
$marhunsaglama = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/marhun/'. $norujukan)->json();
|
||||||
|
|
||||||
$marhunsaglama = $marhunsaglama[0];
|
$marhunsaglama = $marhunsaglama[0];
|
||||||
$totalnilaimarhun = 0;
|
$totalnilaimarhun = 0;
|
||||||
@@ -737,7 +737,7 @@ class PenebusanController extends Controller
|
|||||||
foreach($marhunsaglama as $index=>$marhunloop)
|
foreach($marhunsaglama as $index=>$marhunloop)
|
||||||
{
|
{
|
||||||
$karatbaru = str_replace('.','-',$marhunloop['karat']);
|
$karatbaru = str_replace('.','-',$marhunloop['karat']);
|
||||||
$hargabaru = Http::get(config('api.url') . '/api/harga_emas/'. $karatbaru)->json();
|
$hargabaru = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/harga_emas/'. $karatbaru)->json();
|
||||||
|
|
||||||
$nilaimarhun = (floatval($hargabaru['harga']) * floatval($marhunloop['berat']));
|
$nilaimarhun = (floatval($hargabaru['harga']) * floatval($marhunloop['berat']));
|
||||||
|
|
||||||
@@ -750,12 +750,12 @@ class PenebusanController extends Controller
|
|||||||
public function PenebusanKhazanah($norujukan){
|
public function PenebusanKhazanah($norujukan){
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
$api_url = config('api.url');
|
$api_url = config('api.url');
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
|
|
||||||
$gadaidetail = Http::get(config('api.url') . '/api/gadai/norujukan/'. $norujukan)->json();
|
$gadaidetail = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $norujukan)->json();
|
||||||
$noic = $gadaidetail[0][0]['nokp'];
|
$noic = $gadaidetail[0][0]['nokp'];
|
||||||
$customerdetail = Http::get(config('api.url') . '/api/customers/'. $noic)->json();
|
$customerdetail = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/'. $noic)->json();
|
||||||
$marhundetail = Http::get(config('api.url') . '/api/marhun/'. $norujukan)->json();
|
$marhundetail = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/marhun/'. $norujukan)->json();
|
||||||
|
|
||||||
$marhun = $marhundetail[0];
|
$marhun = $marhundetail[0];
|
||||||
$nama = $customerdetail['nama'];
|
$nama = $customerdetail['nama'];
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ class UserController extends Controller
|
|||||||
public function index(){
|
public function index(){
|
||||||
$api_url = config('api.url');
|
$api_url = config('api.url');
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
if($auth_user->roles == 'teller' || $auth_user->roles == 'ppc' || $auth_user->roles == 'pc'){
|
if($auth_user->roles == 'teller' || $auth_user->roles == 'ppc' || $auth_user->roles == 'pc'){
|
||||||
return view('user.index',compact('cawangan_info','api_url','auth_user'));
|
return view('user.index',compact('cawangan_info','api_url','auth_user'));
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -238,4 +238,6 @@ return [
|
|||||||
|
|
||||||
'reset_password' => env('RESET_PASSWORD', 'qwerty@12345'),
|
'reset_password' => env('RESET_PASSWORD', 'qwerty@12345'),
|
||||||
|
|
||||||
|
'api_verify' => env('API_VERIFY',true),
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -143,7 +143,7 @@
|
|||||||
<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-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>
|
<div class="col-md-4">Tujuan Gadai</div>
|
||||||
@php
|
@php
|
||||||
$tujuangadai = Http::get($api_url . '/api/tujuangadai')->json();
|
$tujuangadai = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/tujuangadai')->json();
|
||||||
@endphp
|
@endphp
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<select class="form-control" name="tujuan_gadai" data-placeholder="Pilih Tujuan Gadai" id="tujuan_gadai">
|
<select class="form-control" name="tujuan_gadai" data-placeholder="Pilih Tujuan Gadai" id="tujuan_gadai">
|
||||||
@@ -155,7 +155,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">Pekerjaan</div>
|
<div class="col-md-4">Pekerjaan</div>
|
||||||
@php
|
@php
|
||||||
$pekerjaan = Http::get($api_url . '/api/pekerjaan')->json();
|
$pekerjaan = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/pekerjaan')->json();
|
||||||
@endphp
|
@endphp
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<select class="form-control" name="pekerjaan" data-placeholder="Pilih Pekerjaan" id="pekerjaan">
|
<select class="form-control" name="pekerjaan" data-placeholder="Pilih Pekerjaan" id="pekerjaan">
|
||||||
@@ -265,7 +265,7 @@
|
|||||||
<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-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>
|
<div class="col-md-4">Tujuan Gadai</div>
|
||||||
@php
|
@php
|
||||||
$tujuangadai = Http::get($api_url . '/api/tujuangadai')->json();
|
$tujuangadai = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/tujuangadai')->json();
|
||||||
@endphp
|
@endphp
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<select class="form-control" name="tujuan_gadai" data-placeholder="Pilih Tujuan Gadai" id="passport_tujuan_gadai">
|
<select class="form-control" name="tujuan_gadai" data-placeholder="Pilih Tujuan Gadai" id="passport_tujuan_gadai">
|
||||||
@@ -277,7 +277,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">Pekerjaan</div>
|
<div class="col-md-4">Pekerjaan</div>
|
||||||
@php
|
@php
|
||||||
$pekerjaan = Http::get($api_url . '/api/pekerjaan')->json();
|
$pekerjaan = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/pekerjaan')->json();
|
||||||
@endphp
|
@endphp
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<select class="form-control" name="pekerjaan" data-placeholder="Pilih Pekerjaan" id="passport_pekerjaan">
|
<select class="form-control" name="pekerjaan" data-placeholder="Pilih Pekerjaan" id="passport_pekerjaan">
|
||||||
|
|||||||
@@ -71,7 +71,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class='col-md-7'>
|
<div class='col-md-7'>
|
||||||
@php
|
@php
|
||||||
$bank = Http::get($api_url . '/api/bank')->json();
|
$bank = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/bank')->json();
|
||||||
@endphp
|
@endphp
|
||||||
<select class="form-control" name="kodbank" data-placeholder="Pilih Bank" id="kodbank" disabled="true">
|
<select class="form-control" name="kodbank" data-placeholder="Pilih Bank" id="kodbank" disabled="true">
|
||||||
<option value="-" selected disabled>-</option>
|
<option value="-" selected disabled>-</option>
|
||||||
@@ -115,11 +115,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class='col-md-8'>
|
<div class='col-md-8'>
|
||||||
@php
|
@php
|
||||||
$poskod = Http::get($api_url . '/api/poskod/'. $customer_info['poskod'])->json();
|
$poskod = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/poskod/'. $customer_info['poskod'])->json();
|
||||||
if(empty($poskod)){
|
if(empty($poskod)){
|
||||||
$poskod = array('koddaerah'=>'NIL','kodnegeri' => 'NIL');
|
$poskod = array('koddaerah'=>'NIL','kodnegeri' => 'NIL');
|
||||||
}
|
}
|
||||||
$daerah = Http::get($api_url . '/api/daerah/' . $poskod['koddaerah'])->json();
|
$daerah = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/daerah/' . $poskod['koddaerah'])->json();
|
||||||
@endphp
|
@endphp
|
||||||
<input type="text" readonly name='koddaerah' id='koddaerah' value="{{ $daerah ? $daerah['namadaerah'] : 'NIL' }}" class='form-control'>
|
<input type="text" readonly name='koddaerah' id='koddaerah' value="{{ $daerah ? $daerah['namadaerah'] : 'NIL' }}" class='form-control'>
|
||||||
</div>
|
</div>
|
||||||
@@ -130,7 +130,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class='col-md-8'>
|
<div class='col-md-8'>
|
||||||
@php
|
@php
|
||||||
$negeri = Http::get($api_url . '/api/negeri/' . $poskod['kodnegeri'])->json();
|
$negeri = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/negeri/' . $poskod['kodnegeri'])->json();
|
||||||
@endphp
|
@endphp
|
||||||
<input type="text" readonly name='kodnegeri' id='kodnegeri' value="{{ $negeri ? $negeri['negeri'] : 'NIL' }}" class='form-control'>
|
<input type="text" readonly name='kodnegeri' id='kodnegeri' value="{{ $negeri ? $negeri['negeri'] : 'NIL' }}" class='form-control'>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -143,7 +143,7 @@
|
|||||||
<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-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>
|
<div class="col-md-4">Tujuan Gadai</div>
|
||||||
@php
|
@php
|
||||||
$tujuangadai = Http::get($api_url . '/api/tujuangadai')->json();
|
$tujuangadai = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/tujuangadai')->json();
|
||||||
@endphp
|
@endphp
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<select class="form-control" name="tujuan_gadai" data-placeholder="Pilih Tujuan Gadai" id="tujuan_gadai">
|
<select class="form-control" name="tujuan_gadai" data-placeholder="Pilih Tujuan Gadai" id="tujuan_gadai">
|
||||||
@@ -155,7 +155,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">Pekerjaan</div>
|
<div class="col-md-4">Pekerjaan</div>
|
||||||
@php
|
@php
|
||||||
$pekerjaan = Http::get($api_url . '/api/pekerjaan')->json();
|
$pekerjaan = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/pekerjaan')->json();
|
||||||
@endphp
|
@endphp
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<select class="form-control" name="pekerjaan" data-placeholder="Pilih Pekerjaan" id="pekerjaan">
|
<select class="form-control" name="pekerjaan" data-placeholder="Pilih Pekerjaan" id="pekerjaan">
|
||||||
@@ -265,7 +265,7 @@
|
|||||||
<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-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>
|
<div class="col-md-4">Tujuan Gadai</div>
|
||||||
@php
|
@php
|
||||||
$tujuangadai = Http::get($api_url . '/api/tujuangadai')->json();
|
$tujuangadai = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/tujuangadai')->json();
|
||||||
@endphp
|
@endphp
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<select class="form-control" name="tujuan_gadai" data-placeholder="Pilih Tujuan Gadai" id="passport_tujuan_gadai">
|
<select class="form-control" name="tujuan_gadai" data-placeholder="Pilih Tujuan Gadai" id="passport_tujuan_gadai">
|
||||||
@@ -277,7 +277,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">Pekerjaan</div>
|
<div class="col-md-4">Pekerjaan</div>
|
||||||
@php
|
@php
|
||||||
$pekerjaan = Http::get($api_url . '/api/pekerjaan')->json();
|
$pekerjaan = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/pekerjaan')->json();
|
||||||
@endphp
|
@endphp
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<select class="form-control" name="pekerjaan" data-placeholder="Pilih Pekerjaan" id="passport_pekerjaan">
|
<select class="form-control" name="pekerjaan" data-placeholder="Pilih Pekerjaan" id="passport_pekerjaan">
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
@php
|
@php
|
||||||
$outstanding_semasa = Http::get($api_url . '/api/gadai/customers/'. $customer_info['kpbaru'] .'/outstandingsemasa/'.$cawangan_info['kodcaw'])->json();
|
$outstanding_semasa = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/gadai/customers/'. $customer_info['kpbaru'] .'/outstandingsemasa/'.$cawangan_info['kodcaw'])->json();
|
||||||
@endphp
|
@endphp
|
||||||
<input type="text" class="form-control" name="outstanding_semasa" id="outstanding_semasa" readonly value="{{ number_format($outstanding_semasa,2) }}">
|
<input type="text" class="form-control" name="outstanding_semasa" id="outstanding_semasa" readonly value="{{ number_format($outstanding_semasa,2) }}">
|
||||||
</div>
|
</div>
|
||||||
@@ -285,7 +285,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class='col-md-7'>
|
<div class='col-md-7'>
|
||||||
@php
|
@php
|
||||||
$bank = Http::get($api_url . '/api/bank')->json();
|
$bank = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/bank')->json();
|
||||||
@endphp
|
@endphp
|
||||||
<select class="form-control" name="kodbank" data-placeholder="Pilih Bank" id="kodbank" disabled="true">
|
<select class="form-control" name="kodbank" data-placeholder="Pilih Bank" id="kodbank" disabled="true">
|
||||||
<option value="-" selected disabled>-</option>
|
<option value="-" selected disabled>-</option>
|
||||||
@@ -329,11 +329,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class='col-md-8'>
|
<div class='col-md-8'>
|
||||||
@php
|
@php
|
||||||
$poskod = Http::get($api_url . '/api/poskod/'. $customer_info['poskod'])->json();
|
$poskod = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/poskod/'. $customer_info['poskod'])->json();
|
||||||
if(empty($poskod)){
|
if(empty($poskod)){
|
||||||
$poskod = array('koddaerah'=>'NIL','kodnegeri' => 'NIL');
|
$poskod = array('koddaerah'=>'NIL','kodnegeri' => 'NIL');
|
||||||
}
|
}
|
||||||
$daerah = Http::get($api_url . '/api/daerah/' . $poskod['koddaerah'])->json();
|
$daerah = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/daerah/' . $poskod['koddaerah'])->json();
|
||||||
@endphp
|
@endphp
|
||||||
<input type="text" readonly name='koddaerah' id='koddaerah' value="{{ $daerah ? $daerah['namadaerah'] : 'NIL' }}" class='form-control'>
|
<input type="text" readonly name='koddaerah' id='koddaerah' value="{{ $daerah ? $daerah['namadaerah'] : 'NIL' }}" class='form-control'>
|
||||||
</div>
|
</div>
|
||||||
@@ -344,7 +344,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class='col-md-8'>
|
<div class='col-md-8'>
|
||||||
@php
|
@php
|
||||||
$negeri = Http::get($api_url . '/api/negeri/' . $poskod['kodnegeri'])->json();
|
$negeri = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/negeri/' . $poskod['kodnegeri'])->json();
|
||||||
@endphp
|
@endphp
|
||||||
<input type="text" readonly name='kodnegeri' id='kodnegeri' value="{{ $negeri ? $negeri['negeri'] : 'NIL' }}" class='form-control'>
|
<input type="text" readonly name='kodnegeri' id='kodnegeri' value="{{ $negeri ? $negeri['negeri'] : 'NIL' }}" class='form-control'>
|
||||||
</div>
|
</div>
|
||||||
@@ -496,7 +496,17 @@
|
|||||||
function checkserah(data){
|
function checkserah(data){
|
||||||
var urlpenebusan = $(data).data("url");
|
var urlpenebusan = $(data).data("url");
|
||||||
var norujukan = $(data).data("norujukan");
|
var norujukan = $(data).data("norujukan");
|
||||||
|
var pinjaman = $(data).data("pinjaman");
|
||||||
|
var hargajualan = $(data).data("hargajualan");
|
||||||
|
|
||||||
|
if(hargajualan == pinjaman){
|
||||||
|
Swal.fire({
|
||||||
|
icon: 'error',
|
||||||
|
title: 'Amaran',
|
||||||
|
text: 'Gadaian Mengalami Masalah Sila Hubungi IT'
|
||||||
|
});
|
||||||
|
return false;
|
||||||
|
}
|
||||||
$.ajax({
|
$.ajax({
|
||||||
method:'get',
|
method:'get',
|
||||||
url: api_url + '/api/check/serah/lelong',
|
url: api_url + '/api/check/serah/lelong',
|
||||||
@@ -507,8 +517,6 @@
|
|||||||
},
|
},
|
||||||
success:function(data){
|
success:function(data){
|
||||||
if(data == 0){
|
if(data == 0){
|
||||||
|
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
method:'get',
|
method:'get',
|
||||||
url: api_url + '/api/polis/get/',
|
url: api_url + '/api/polis/get/',
|
||||||
@@ -672,9 +680,6 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
$.ajax({
|
$.ajax({
|
||||||
method:'get',
|
method:'get',
|
||||||
@@ -699,8 +704,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
}else if(data == 1){
|
}else if(data == 1){
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
icon: 'error',
|
icon: 'error',
|
||||||
@@ -736,7 +739,7 @@
|
|||||||
}
|
}
|
||||||
xtawarruq.row.add([
|
xtawarruq.row.add([
|
||||||
'<input type="radio" value='+ gadai_detail["norujukan"] +' name="belum"/>',
|
'<input type="radio" value='+ gadai_detail["norujukan"] +' name="belum"/>',
|
||||||
'<a href="#" onclick="checkserah(this)" data-norujukan='+ gadai_detail['norujukan'] +' data-url=' + urlroute +'>' + gadai_detail['norujukan'] + '</a>',
|
'<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>',
|
||||||
gadai_detail['t_gadai'],
|
gadai_detail['t_gadai'],
|
||||||
gadai_detail['t_matang'],
|
gadai_detail['t_matang'],
|
||||||
'RM '+formatter.format(gadai_detail['pinjaman']),
|
'RM '+formatter.format(gadai_detail['pinjaman']),
|
||||||
@@ -752,7 +755,7 @@
|
|||||||
}
|
}
|
||||||
tablegadai.row.add([
|
tablegadai.row.add([
|
||||||
'<input type="radio" value='+ gadai_detail["norujukan"] +' name="belum"/>',
|
'<input type="radio" value='+ gadai_detail["norujukan"] +' name="belum"/>',
|
||||||
'<a href="#" onclick="checkserah(this)" data-norujukan='+ gadai_detail['norujukan'] +' data-url=' + urlroute +'>' + gadai_detail['norujukan'] + '</a>',
|
'<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>',
|
||||||
gadai_detail['t_gadai'],
|
gadai_detail['t_gadai'],
|
||||||
tarikh_matang,
|
tarikh_matang,
|
||||||
'RM '+ formatter.format(gadai_detail['bakihargajualan']),
|
'RM '+ formatter.format(gadai_detail['bakihargajualan']),
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
}else{
|
}else{
|
||||||
$noic = $customer_info['kplama'];
|
$noic = $customer_info['kplama'];
|
||||||
}
|
}
|
||||||
$gadai_session = Http::get($api_url . '/api/check/sag',['kodcaw'=>$cawangan_info['kodcaw'],'norujukan'=>$norujukan,'nokp'=>$noic])->json();
|
$gadai_session = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/check/sag',['kodcaw'=>$cawangan_info['kodcaw'],'norujukan'=>$norujukan,'nokp'=>$noic])->json();
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
@if($gadai_session != null)
|
@if($gadai_session != null)
|
||||||
|
|||||||
@@ -145,14 +145,14 @@
|
|||||||
<td>{{ $count }}</td>
|
<td>{{ $count }}</td>
|
||||||
<td>
|
<td>
|
||||||
@php
|
@php
|
||||||
$customer_info = Http::get($api_url . '/api/customers/'. $gadaian['nokp'])->json();
|
$customer_info = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/customers/'. $gadaian['nokp'])->json();
|
||||||
echo ($customer_info['nama']);
|
echo ($customer_info['nama']);
|
||||||
@endphp
|
@endphp
|
||||||
</td>
|
</td>
|
||||||
<td>{{ $gadaian['nokp'] }}</td>
|
<td>{{ $gadaian['nokp'] }}</td>
|
||||||
<td>
|
<td>
|
||||||
@php
|
@php
|
||||||
$marhun = Http::get($api_url . '/api/marhun/' . $gadaian['norujukan'] )->json();
|
$marhun = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/marhun/' . $gadaian['norujukan'] )->json();
|
||||||
@endphp
|
@endphp
|
||||||
<a href="#" data-toggle="modal" data-marhun="{{ json_encode($marhun) }}" data-pinjaman="{{$gadaian['pinjaman']}}" data-norujukan="{{$gadaian['norujukan']}}" data-hargajualan="{{$gadaian['hargajualan']}}" data-kodcaw="{{ $gadaian['kodcaw'] }}" data-target="#marhunModal"> {{$gadaian['norujukan']}}</a>
|
<a href="#" data-toggle="modal" data-marhun="{{ json_encode($marhun) }}" data-pinjaman="{{$gadaian['pinjaman']}}" data-norujukan="{{$gadaian['norujukan']}}" data-hargajualan="{{$gadaian['hargajualan']}}" data-kodcaw="{{ $gadaian['kodcaw'] }}" data-target="#marhunModal"> {{$gadaian['norujukan']}}</a>
|
||||||
</td>
|
</td>
|
||||||
@@ -190,14 +190,14 @@
|
|||||||
@foreach($gadaian_belumserah as $index=>$gadaian)
|
@foreach($gadaian_belumserah as $index=>$gadaian)
|
||||||
<tr>
|
<tr>
|
||||||
@php
|
@php
|
||||||
$customer_info = Http::get($api_url . '/api/customers/'. $gadaian['nokp'])->json();
|
$customer_info = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/customers/'. $gadaian['nokp'])->json();
|
||||||
@endphp
|
@endphp
|
||||||
<td><input type="checkbox" id="checkgadai" name="checkgadai" autocomplete="off" data-nokp="{{ $gadaian['nokp'] }}" data-nama="{{ $customer_info['nama'] }}" data-norujukan="{{$gadaian['norujukan']}}" data-kodcaw="{{ $gadaian['kodcaw'] }}" data-marhun="{{$gadaian['nilaimarhun']}}"></input></td>
|
<td><input type="checkbox" id="checkgadai" name="checkgadai" autocomplete="off" data-nokp="{{ $gadaian['nokp'] }}" data-nama="{{ $customer_info['nama'] }}" data-norujukan="{{$gadaian['norujukan']}}" data-kodcaw="{{ $gadaian['kodcaw'] }}" data-marhun="{{$gadaian['nilaimarhun']}}"></input></td>
|
||||||
<td>{{ $customer_info['nama'] }}</td>
|
<td>{{ $customer_info['nama'] }}</td>
|
||||||
<td>{{ $gadaian['nokp'] }}</td>
|
<td>{{ $gadaian['nokp'] }}</td>
|
||||||
<td>
|
<td>
|
||||||
@php
|
@php
|
||||||
$marhun = Http::get($api_url . '/api/marhun/' . $gadaian['norujukan'] )->json();
|
$marhun = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/marhun/' . $gadaian['norujukan'] )->json();
|
||||||
@endphp
|
@endphp
|
||||||
<a href="#" data-toggle="modal" data-marhun="{{ json_encode($marhun) }}" data-pinjaman="{{$gadaian['pinjaman']}}" data-norujukan="{{$gadaian['norujukan']}}" data-hargajualan="{{$gadaian['hargajualan']}}" data-kodcaw="{{ $gadaian['kodcaw'] }}" data-target="#belum_serah_modal"> {{$gadaian['norujukan']}}</a>
|
<a href="#" data-toggle="modal" data-marhun="{{ json_encode($marhun) }}" data-pinjaman="{{$gadaian['pinjaman']}}" data-norujukan="{{$gadaian['norujukan']}}" data-hargajualan="{{$gadaian['hargajualan']}}" data-kodcaw="{{ $gadaian['kodcaw'] }}" data-target="#belum_serah_modal"> {{$gadaian['norujukan']}}</a>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
function pelangganclick()
|
function pelangganclick()
|
||||||
{
|
{
|
||||||
// $getTunai2=Http::get(config('api.url').'/api/GetCurrentTunai/'.$auth_user['cawangan'],['kodlaluan' => $kodlaluan])->json();
|
// $getTunai2=Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/GetCurrentTunai/'.$auth_user['cawangan'],['kodlaluan' => $kodlaluan])->json();
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
method:'get',
|
method:'get',
|
||||||
|
|||||||
@@ -116,7 +116,7 @@
|
|||||||
<td>{{ $index+1 }}</td>
|
<td>{{ $index+1 }}</td>
|
||||||
<td>
|
<td>
|
||||||
@php
|
@php
|
||||||
$marhun = Http::get($api_url . '/api/marhun/' . $gadaian['norujukan'] )->json();
|
$marhun = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/marhun/' . $gadaian['norujukan'] )->json();
|
||||||
@endphp
|
@endphp
|
||||||
<a style="user-select: none;" href="#" data-toggle="modal" data-berat="{{$gadaian['berat']}}" data-marhun="{{ json_encode($marhun) }}" data-norujukan="{{$gadaian['norujukan']}}" data-hargajualan="{{$gadaian['hargajualan']}}" data-kodcaw="{{ $gadaian['kodcaw'] }}"
|
<a style="user-select: none;" href="#" data-toggle="modal" data-berat="{{$gadaian['berat']}}" data-marhun="{{ json_encode($marhun) }}" data-norujukan="{{$gadaian['norujukan']}}" data-hargajualan="{{$gadaian['hargajualan']}}" data-kodcaw="{{ $gadaian['kodcaw'] }}"
|
||||||
data-target="#marhunModal"> {{$gadaian['norujukan']}}</a>
|
data-target="#marhunModal"> {{$gadaian['norujukan']}}</a>
|
||||||
@@ -159,7 +159,7 @@
|
|||||||
<td>{{ $index+1 }}</td>
|
<td>{{ $index+1 }}</td>
|
||||||
<td>
|
<td>
|
||||||
@php
|
@php
|
||||||
$marhun_detail = Http::get($api_url . '/api/marhun/' . $marhun['norujukan'] )->json();
|
$marhun_detail = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/marhun/' . $marhun['norujukan'] )->json();
|
||||||
@endphp
|
@endphp
|
||||||
<a href="#" data-toggle="modal" data-berat="{{$marhun['berat']}}" data-marhun="{{ json_encode($marhun_detail) }}" data-norujukan="{{$marhun['norujukan']}}" data-hargajualan="{{$marhun['hargajualan']}}" data-kodcaw="{{ $marhun['kodcaw'] }}" data-target="#marhunModal"> {{$marhun['norujukan']}}</a>
|
<a href="#" data-toggle="modal" data-berat="{{$marhun['berat']}}" data-marhun="{{ json_encode($marhun_detail) }}" data-norujukan="{{$marhun['norujukan']}}" data-hargajualan="{{$marhun['hargajualan']}}" data-kodcaw="{{ $marhun['kodcaw'] }}" data-target="#marhunModal"> {{$marhun['norujukan']}}</a>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -143,7 +143,7 @@
|
|||||||
<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-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>
|
<div class="col-md-4">Tujuan Gadai</div>
|
||||||
@php
|
@php
|
||||||
$tujuangadai = Http::get($api_url . '/api/tujuangadai')->json();
|
$tujuangadai = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/tujuangadai')->json();
|
||||||
@endphp
|
@endphp
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<select class="form-control" name="tujuan_gadai" data-placeholder="Pilih Tujuan Gadai" id="tujuan_gadai">
|
<select class="form-control" name="tujuan_gadai" data-placeholder="Pilih Tujuan Gadai" id="tujuan_gadai">
|
||||||
@@ -155,7 +155,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">Pekerjaan</div>
|
<div class="col-md-4">Pekerjaan</div>
|
||||||
@php
|
@php
|
||||||
$pekerjaan = Http::get($api_url . '/api/pekerjaan')->json();
|
$pekerjaan = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/pekerjaan')->json();
|
||||||
@endphp
|
@endphp
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<select class="form-control" name="pekerjaan" data-placeholder="Pilih Pekerjaan" id="pekerjaan">
|
<select class="form-control" name="pekerjaan" data-placeholder="Pilih Pekerjaan" id="pekerjaan">
|
||||||
@@ -265,7 +265,7 @@
|
|||||||
<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-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>
|
<div class="col-md-4">Tujuan Gadai</div>
|
||||||
@php
|
@php
|
||||||
$tujuangadai = Http::get($api_url . '/api/tujuangadai')->json();
|
$tujuangadai = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/tujuangadai')->json();
|
||||||
@endphp
|
@endphp
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<select class="form-control" name="tujuan_gadai" data-placeholder="Pilih Tujuan Gadai" id="passport_tujuan_gadai">
|
<select class="form-control" name="tujuan_gadai" data-placeholder="Pilih Tujuan Gadai" id="passport_tujuan_gadai">
|
||||||
@@ -277,7 +277,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">Pekerjaan</div>
|
<div class="col-md-4">Pekerjaan</div>
|
||||||
@php
|
@php
|
||||||
$pekerjaan = Http::get($api_url . '/api/pekerjaan')->json();
|
$pekerjaan = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/pekerjaan')->json();
|
||||||
@endphp
|
@endphp
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<select class="form-control" name="pekerjaan" data-placeholder="Pilih Pekerjaan" id="passport_pekerjaan">
|
<select class="form-control" name="pekerjaan" data-placeholder="Pilih Pekerjaan" id="passport_pekerjaan">
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
@php
|
@php
|
||||||
$outstanding_semasa = Http::get($api_url . '/api/gadai/customers/'. $customer_info['kpbaru'] .'/outstandingsemasa/'.$cawangan_info['kodcaw'])->json();
|
$outstanding_semasa = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/gadai/customers/'. $customer_info['kpbaru'] .'/outstandingsemasa/'.$cawangan_info['kodcaw'])->json();
|
||||||
@endphp
|
@endphp
|
||||||
<input type="text" class="form-control" name="outstanding_semasa" id="outstanding_semasa" readonly value="{{ number_format($outstanding_semasa,2) }}">
|
<input type="text" class="form-control" name="outstanding_semasa" id="outstanding_semasa" readonly value="{{ number_format($outstanding_semasa,2) }}">
|
||||||
</div>
|
</div>
|
||||||
@@ -279,7 +279,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class='col-md-7'>
|
<div class='col-md-7'>
|
||||||
@php
|
@php
|
||||||
$bank = Http::get($api_url . '/api/bank')->json();
|
$bank = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/bank')->json();
|
||||||
@endphp
|
@endphp
|
||||||
<select class="form-control" name="kodbank" data-placeholder="Pilih Bank" id="kodbank" disabled="true">
|
<select class="form-control" name="kodbank" data-placeholder="Pilih Bank" id="kodbank" disabled="true">
|
||||||
<option value="-" selected disabled>-</option>
|
<option value="-" selected disabled>-</option>
|
||||||
@@ -323,11 +323,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class='col-md-8'>
|
<div class='col-md-8'>
|
||||||
@php
|
@php
|
||||||
$poskod = Http::get($api_url . '/api/poskod/'. $customer_info['poskod'])->json();
|
$poskod = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/poskod/'. $customer_info['poskod'])->json();
|
||||||
if(empty($poskod)){
|
if(empty($poskod)){
|
||||||
$poskod = array('koddaerah'=>'NIL','kodnegeri' => 'NIL');
|
$poskod = array('koddaerah'=>'NIL','kodnegeri' => 'NIL');
|
||||||
}
|
}
|
||||||
$daerah = Http::get($api_url . '/api/daerah/' . $poskod['koddaerah'])->json();
|
$daerah = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/daerah/' . $poskod['koddaerah'])->json();
|
||||||
@endphp
|
@endphp
|
||||||
<input type="text" readonly name='koddaerah' id='koddaerah' value="{{ $daerah ? $daerah['namadaerah'] : 'NIL' }}" class='form-control'>
|
<input type="text" readonly name='koddaerah' id='koddaerah' value="{{ $daerah ? $daerah['namadaerah'] : 'NIL' }}" class='form-control'>
|
||||||
</div>
|
</div>
|
||||||
@@ -338,7 +338,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class='col-md-8'>
|
<div class='col-md-8'>
|
||||||
@php
|
@php
|
||||||
$negeri = Http::get($api_url . '/api/negeri/' . $poskod['kodnegeri'])->json();
|
$negeri = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/negeri/' . $poskod['kodnegeri'])->json();
|
||||||
@endphp
|
@endphp
|
||||||
<input type="text" readonly name='kodnegeri' id='kodnegeri' value="{{ $negeri ? $negeri['negeri'] : 'NIL' }}" class='form-control'>
|
<input type="text" readonly name='kodnegeri' id='kodnegeri' value="{{ $negeri ? $negeri['negeri'] : 'NIL' }}" class='form-control'>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -100,7 +100,7 @@
|
|||||||
<td>{{ $loop->iteration }}</td>
|
<td>{{ $loop->iteration }}</td>
|
||||||
<td>
|
<td>
|
||||||
@php
|
@php
|
||||||
$marhun = Http::get($api_url . '/api/marhun/' . $ls['norujukan'] )->json();
|
$marhun = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/marhun/' . $ls['norujukan'] )->json();
|
||||||
// dd($marhun);
|
// dd($marhun);
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
@@ -134,7 +134,7 @@
|
|||||||
<td>
|
<td>
|
||||||
|
|
||||||
@php
|
@php
|
||||||
$marhun = Http::get($api_url . '/api/marhun/' . $index['norujukan'] )->json();
|
$marhun = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/marhun/' . $index['norujukan'] )->json();
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
<a href="#" data-toggle="modal" data-marhun="{{ json_encode($marhun) }}" data-norujukan="{{$index['norujukan']}}" data-kodcaw="{{ $index['kodcaw'] }}"
|
<a href="#" data-toggle="modal" data-marhun="{{ json_encode($marhun) }}" data-norujukan="{{$index['norujukan']}}" data-kodcaw="{{ $index['kodcaw'] }}"
|
||||||
|
|||||||
@@ -86,8 +86,8 @@
|
|||||||
if($auth_user['role_harian'] == 'teller')
|
if($auth_user['role_harian'] == 'teller')
|
||||||
{
|
{
|
||||||
$api_url = config('api.url');
|
$api_url = config('api.url');
|
||||||
$gadai = Http::get( config('api.url') .'/api/gadai/serah_marhun/khazanah/'. $auth_user['cawangan'])->json();
|
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->get( config('api.url') .'/api/gadai/serah_marhun/khazanah/'. $auth_user['cawangan'])->json();
|
||||||
$listserah = Http::get(config('api.url').'/api/listSerahMarhunController/'.$auth_user['cawangan'])->json();
|
$listserah = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/listSerahMarhunController/'.$auth_user['cawangan'])->json();
|
||||||
}
|
}
|
||||||
@endphp
|
@endphp
|
||||||
<div id="app">
|
<div id="app">
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<!-- Modal HistoryBayaran -->
|
<!-- Modal HistoryBayaran -->
|
||||||
@php
|
@php
|
||||||
|
|
||||||
$hargaemas = Http::get(config('api.url') . '/api/harga_emas/')->json();
|
$hargaemas = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/harga_emas/')->json();
|
||||||
|
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class='col-md-7'>
|
<div class='col-md-7'>
|
||||||
@php
|
@php
|
||||||
$cawangan_all = Http::get($api_url . '/api/cawangan')->json();
|
$cawangan_all = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/cawangan')->json();
|
||||||
@endphp
|
@endphp
|
||||||
<select class="form-control" name="cawangan" data-placeholder="Pilih Cawangan" id="cawangan">
|
<select class="form-control" name="cawangan" data-placeholder="Pilih Cawangan" id="cawangan">
|
||||||
<option disabled selected value> -- Pilih Cawangan -- </option>
|
<option disabled selected value> -- Pilih Cawangan -- </option>
|
||||||
@@ -127,7 +127,7 @@
|
|||||||
{{ ucwords($staff->cawangan) }}
|
{{ ucwords($staff->cawangan) }}
|
||||||
@else
|
@else
|
||||||
@php
|
@php
|
||||||
$cawangan_staff = Http::get(config('api.url') . '/api/cawangan/'. $staff->cawangan)->json();
|
$cawangan_staff = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $staff->cawangan)->json();
|
||||||
echo ucwords($cawangan_staff['details_caw']);
|
echo ucwords($cawangan_staff['details_caw']);
|
||||||
@endphp
|
@endphp
|
||||||
@endif
|
@endif
|
||||||
|
|||||||
@@ -118,7 +118,7 @@
|
|||||||
<div class="row form-group">
|
<div class="row form-group">
|
||||||
<div class="col-md-4">Produk</div>
|
<div class="col-md-4">Produk</div>
|
||||||
@php
|
@php
|
||||||
$produk = Http::get($api_url . '/api/komuditi/produk')->json();
|
$produk = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/komuditi/produk')->json();
|
||||||
@endphp
|
@endphp
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<select name="produk" id="produk" class="form-control">
|
<select name="produk" id="produk" class="form-control">
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class='col-md-7'>
|
<div class='col-md-7'>
|
||||||
@php
|
@php
|
||||||
$cawangan_all = Http::get($api_url . '/api/cawangan')->json();
|
$cawangan_all = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/cawangan')->json();
|
||||||
@endphp
|
@endphp
|
||||||
<select class="form-control" name="cawangan" data-placeholder="Pilih Cawangan" id="cawangan">
|
<select class="form-control" name="cawangan" data-placeholder="Pilih Cawangan" id="cawangan">
|
||||||
<option disabled selected value> -- Pilih Cawangan -- </option>
|
<option disabled selected value> -- Pilih Cawangan -- </option>
|
||||||
|
|||||||
@@ -125,13 +125,13 @@
|
|||||||
<tr>
|
<tr>
|
||||||
@php
|
@php
|
||||||
$karatbaru = str_replace('.','-',$m['karat']);
|
$karatbaru = str_replace('.','-',$m['karat']);
|
||||||
$hargabaru = Http::get(config('api.url') . '/api/harga_emas/'. $karatbaru)->json();
|
$hargabaru = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/harga_emas/'. $karatbaru)->json();
|
||||||
|
|
||||||
$hargaemassemasa = floatval($hargabaru['harga']) * floatval($m['berat']);
|
$hargaemassemasa = floatval($hargabaru['harga']) * floatval($m['berat']);
|
||||||
@endphp
|
@endphp
|
||||||
<td><input type="checkbox" id="checkmarhun" data-nmhs="{{ $hargaemassemasa }}" data-recno="{{ $m['recno'] }}" data-nm="{{ $m['n_marhun'] }}" data-marhun="{{ $m['marhun'] }}" data-berat="{{ $m['berat'] }}" style="display:none;"/><span class="spannar">{{ $index+1 }}</span></td>
|
<td><input type="checkbox" id="checkmarhun" data-nmhs="{{ $hargaemassemasa }}" data-recno="{{ $m['recno'] }}" data-nm="{{ $m['n_marhun'] }}" data-marhun="{{ $m['marhun'] }}" data-berat="{{ $m['berat'] }}" style="display:none;"/><span class="spannar">{{ $index+1 }}</span></td>
|
||||||
@php
|
@php
|
||||||
$marhunperibadi = Http::get(config('api.url') .'/api/jemas/nama_marhun/',["marhun" => $m['marhun']])->json();
|
$marhunperibadi = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/api/jemas/nama_marhun/',["marhun" => $m['marhun']])->json();
|
||||||
@endphp
|
@endphp
|
||||||
<td>{{ $marhunperibadi['descpt'] }}</td>
|
<td>{{ $marhunperibadi['descpt'] }}</td>
|
||||||
<td>RM {{ number_format($m['n_marhun'],2) }}</td>
|
<td>RM {{ number_format($m['n_marhun'],2) }}</td>
|
||||||
|
|||||||
@@ -137,13 +137,13 @@
|
|||||||
<tr>
|
<tr>
|
||||||
@php
|
@php
|
||||||
$karatbaru = str_replace('.','-',$m['karat']);
|
$karatbaru = str_replace('.','-',$m['karat']);
|
||||||
$hargabaru = Http::get(config('api.url') . '/api/harga_emas/'. $karatbaru)->json();
|
$hargabaru = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/harga_emas/'. $karatbaru)->json();
|
||||||
|
|
||||||
$hargaemassemasa = floatval($hargabaru['harga']) * floatval($m['berat']);
|
$hargaemassemasa = floatval($hargabaru['harga']) * floatval($m['berat']);
|
||||||
@endphp
|
@endphp
|
||||||
<td><input type="checkbox" id="checkmarhun" data-nmhs="{{ $hargaemassemasa }}" data-recno="{{ $m['recno'] }}" data-nm="{{ $m['n_marhun'] }}" data-marhun="{{ $m['marhun'] }}" data-berat="{{ $m['berat'] }}" style="display:none;"/><span class="spannar">{{ $index+1 }}</span></td>
|
<td><input type="checkbox" id="checkmarhun" data-nmhs="{{ $hargaemassemasa }}" data-recno="{{ $m['recno'] }}" data-nm="{{ $m['n_marhun'] }}" data-marhun="{{ $m['marhun'] }}" data-berat="{{ $m['berat'] }}" style="display:none;"/><span class="spannar">{{ $index+1 }}</span></td>
|
||||||
@php
|
@php
|
||||||
$marhunperibadi = Http::get(config('api.url') .'/api/jemas/nama_marhun/',["marhun" => $m['marhun']])->json();
|
$marhunperibadi = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/api/jemas/nama_marhun/',["marhun" => $m['marhun']])->json();
|
||||||
@endphp
|
@endphp
|
||||||
<td>{{ $marhunperibadi['descpt'] }}</td>
|
<td>{{ $marhunperibadi['descpt'] }}</td>
|
||||||
<td>RM {{ number_format($m['n_marhun'],2) }}</td>
|
<td>RM {{ number_format($m['n_marhun'],2) }}</td>
|
||||||
@@ -1194,7 +1194,7 @@
|
|||||||
let hadbayaransuran = (parseFloat("{{ $gadai['nilaimarhun']}}") * 0.1);
|
let hadbayaransuran = (parseFloat("{{ $gadai['nilaimarhun']}}") * 0.1);
|
||||||
|
|
||||||
var bayar = Number(parseFloat($('#bayaran').val().replace(/[^0-9.-]+/g,"")).toFixed(2));
|
var bayar = Number(parseFloat($('#bayaran').val().replace(/[^0-9.-]+/g,"")).toFixed(2));
|
||||||
var bakipinjam = parseFloat("{{ $gadai['bakipjm'] }}") - hadbayaransuran;
|
var bakipinjam = parseFloat("{{ $gadai['bakipjm'] }}") - hadbayaransuran + jumupah;
|
||||||
|
|
||||||
if(bayar < jumupah){
|
if(bayar < jumupah){
|
||||||
$("#terima_transaksi").prop('disabled', false);
|
$("#terima_transaksi").prop('disabled', false);
|
||||||
|
|||||||
@@ -208,8 +208,8 @@
|
|||||||
<td>{{$item['norujukan']}}</td>
|
<td>{{$item['norujukan']}}</td>
|
||||||
<td>
|
<td>
|
||||||
@php
|
@php
|
||||||
$gadai_detail = Http::get($api_url . '/api/gadai/norujukan/'. $item['norujukan'])->json();
|
$gadai_detail = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/gadai/norujukan/'. $item['norujukan'])->json();
|
||||||
$customer_detail = Http::get($api_url . '/api/customers/' . $gadai_detail[0][0]['nokp'])->json();
|
$customer_detail = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/customers/' . $gadai_detail[0][0]['nokp'])->json();
|
||||||
|
|
||||||
echo $customer_detail['nama'] . '<br>' . $gadai_detail[0][0]['nokp'] . '<br>' . $customer_detail['alamat1'] . '<br>' . $customer_detail['alamat2'];
|
echo $customer_detail['nama'] . '<br>' . $gadai_detail[0][0]['nokp'] . '<br>' . $customer_detail['alamat1'] . '<br>' . $customer_detail['alamat2'];
|
||||||
@endphp
|
@endphp
|
||||||
|
|||||||
@@ -231,8 +231,8 @@
|
|||||||
<td> {{ $sh['komen1'] }}</th>
|
<td> {{ $sh['komen1'] }}</th>
|
||||||
<td> {{ $sh['teller'] }}</th>
|
<td> {{ $sh['teller'] }}</th>
|
||||||
@php
|
@php
|
||||||
$koddaerah = Http::get(config('api.url') .'/api/daerah/' .$sh['koddaerah'] )->json();
|
$koddaerah = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/api/daerah/' .$sh['koddaerah'] )->json();
|
||||||
$kodnegeri = Http::get(config('api.url') .'/api/negeri/' .$sh['kodnegeri'] )->json();
|
$kodnegeri = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/api/negeri/' .$sh['kodnegeri'] )->json();
|
||||||
@endphp
|
@endphp
|
||||||
<td> {{ $koddaerah['namadaerah'] }}</th>
|
<td> {{ $koddaerah['namadaerah'] }}</th>
|
||||||
<td> {{ $kodnegeri['negeri'] }}</th>
|
<td> {{ $kodnegeri['negeri'] }}</th>
|
||||||
|
|||||||
@@ -231,8 +231,8 @@
|
|||||||
<td>
|
<td>
|
||||||
@php
|
@php
|
||||||
|
|
||||||
$gadaidetail = Http::get($api_url . '/api/gadai/norujukan/' . $item['norujukan'])->json();
|
$gadaidetail = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/gadai/norujukan/' . $item['norujukan'])->json();
|
||||||
$customer_detail = Http::get($api_url . '/api/customers/' . $gadaidetail[0][0]['nokp'])->json();
|
$customer_detail = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/customers/' . $gadaidetail[0][0]['nokp'])->json();
|
||||||
echo $customer_detail['nama'];
|
echo $customer_detail['nama'];
|
||||||
@endphp
|
@endphp
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -475,17 +475,17 @@
|
|||||||
<td> </td>
|
<td> </td>
|
||||||
<td>
|
<td>
|
||||||
@php
|
@php
|
||||||
$poskod = Http::get($api_url . '/api/poskod/'.$customer_detail['poskod'])->json();
|
$poskod = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/poskod/'.$customer_detail['poskod'])->json();
|
||||||
if(empty($poskod)){
|
if(empty($poskod)){
|
||||||
$poskod = array('koddaerah'=>'NIL','kodnegeri' => 'NIL');
|
$poskod = array('koddaerah'=>'NIL','kodnegeri' => 'NIL');
|
||||||
}
|
}
|
||||||
$daerah = Http::get($api_url . '/api/daerah/'.$poskod['koddaerah'])->json();
|
$daerah = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/daerah/'.$poskod['koddaerah'])->json();
|
||||||
if($daerah){
|
if($daerah){
|
||||||
$namadaerah = $daerah['namadaerah'];
|
$namadaerah = $daerah['namadaerah'];
|
||||||
}else{
|
}else{
|
||||||
$namadaerah = 'NIL';
|
$namadaerah = 'NIL';
|
||||||
}
|
}
|
||||||
$negeri = Http::get($api_url . '/api/negeri/'.$poskod['kodnegeri'])->json();
|
$negeri = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/negeri/'.$poskod['kodnegeri'])->json();
|
||||||
if($negeri){
|
if($negeri){
|
||||||
$negeri = $negeri['negeri'];
|
$negeri = $negeri['negeri'];
|
||||||
}else{
|
}else{
|
||||||
@@ -541,8 +541,8 @@
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
@php
|
@php
|
||||||
$komuditi = Http::get($api_url . '/api/komuditi/check')->json();
|
$komuditi = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/komuditi/check')->json();
|
||||||
$product = Http::get($api_url . '/api/komuditi/description',['kodproduk'=>$komuditi['kodproduct']])->json();
|
$product = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/komuditi/description',['kodproduk'=>$komuditi['kodproduct']])->json();
|
||||||
$kuantiti = $gadai_detail['pinjaman']/$komuditi['nilai'];
|
$kuantiti = $gadai_detail['pinjaman']/$komuditi['nilai'];
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
@@ -631,7 +631,7 @@
|
|||||||
<td>{{ $i + 1 }}</td>
|
<td>{{ $i + 1 }}</td>
|
||||||
<td>
|
<td>
|
||||||
@php
|
@php
|
||||||
$marhun = Http::get($api_url . '/api/jemas/nama_marhun',['marhun'=>$marhun_detail[$i]['marhun']])->json();
|
$marhun = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/jemas/nama_marhun',['marhun'=>$marhun_detail[$i]['marhun']])->json();
|
||||||
echo ($marhun['descpt']);
|
echo ($marhun['descpt']);
|
||||||
@endphp
|
@endphp
|
||||||
</td>
|
</td>
|
||||||
@@ -918,17 +918,17 @@
|
|||||||
<td> </td>
|
<td> </td>
|
||||||
<td>
|
<td>
|
||||||
@php
|
@php
|
||||||
$poskod = Http::get($api_url . '/api/poskod/'.$customer_detail['poskod'])->json();
|
$poskod = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/poskod/'.$customer_detail['poskod'])->json();
|
||||||
if(empty($poskod)){
|
if(empty($poskod)){
|
||||||
$poskod = array('koddaerah'=>'NIL','kodnegeri' => 'NIL');
|
$poskod = array('koddaerah'=>'NIL','kodnegeri' => 'NIL');
|
||||||
}
|
}
|
||||||
$daerah = Http::get($api_url . '/api/daerah/'.$poskod['koddaerah'])->json();
|
$daerah = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/daerah/'.$poskod['koddaerah'])->json();
|
||||||
if($daerah){
|
if($daerah){
|
||||||
$namadaerah = $daerah['namadaerah'];
|
$namadaerah = $daerah['namadaerah'];
|
||||||
}else{
|
}else{
|
||||||
$namadaerah = 'NIL';
|
$namadaerah = 'NIL';
|
||||||
}
|
}
|
||||||
$negeri = Http::get($api_url . '/api/negeri/'.$poskod['kodnegeri'])->json();
|
$negeri = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/negeri/'.$poskod['kodnegeri'])->json();
|
||||||
if($negeri){
|
if($negeri){
|
||||||
$negeri = $negeri['negeri'];
|
$negeri = $negeri['negeri'];
|
||||||
}else{
|
}else{
|
||||||
@@ -1021,7 +1021,7 @@
|
|||||||
<td>{{ $i + 1 }}</td>
|
<td>{{ $i + 1 }}</td>
|
||||||
<td>
|
<td>
|
||||||
@php
|
@php
|
||||||
$marhun = Http::get($api_url . '/api/jemas/nama_marhun',['marhun'=>$marhun_detail[$i]['marhun']])->json();
|
$marhun = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/jemas/nama_marhun',['marhun'=>$marhun_detail[$i]['marhun']])->json();
|
||||||
echo ($marhun['descpt']);
|
echo ($marhun['descpt']);
|
||||||
@endphp
|
@endphp
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -28,9 +28,9 @@
|
|||||||
<br>
|
<br>
|
||||||
|
|
||||||
@php
|
@php
|
||||||
$poskod = Http::get($api_url . '/api/poskod/' . $customers['poskod'])->json();
|
$poskod = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/poskod/' . $customers['poskod'])->json();
|
||||||
$negeri = Http::get($api_url . '/api/negeri/' . $poskod['kodnegeri'])->json();
|
$negeri = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/negeri/' . $poskod['kodnegeri'])->json();
|
||||||
$daerah = Http::get($api_url . '/api/daerah/' . $poskod['koddaerah'])->json();
|
$daerah = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/daerah/' . $poskod['koddaerah'])->json();
|
||||||
|
|
||||||
@endphp
|
@endphp
|
||||||
<p style=" text-align: justify;text-justify: inter-word;line-height: 1.6;">Saya, <b>{{ $customers['nama'] }}</b>, No. K/P : <b>@php $satu = substr($gadai[0][0]['nokp'],0,6); $dua = substr($gadai[0][0]['nokp'],6,2);$ketiga = substr($gadai[0][0]['nokp'],8); echo $satu . '-' . $dua . '-' . $ketiga; @endphp</b> yang beralamat di <b>{{ strtoupper($customers['alamat1']) . ', ' . $customers['poskod'] . ', ' . strtoupper($daerah['namadaerah']) . ', ' . strtoupper($negeri['negeri']) }}</b> dengan sesungguhnya dan sebenarnya mengaku bahawa: -</p>
|
<p style=" text-align: justify;text-justify: inter-word;line-height: 1.6;">Saya, <b>{{ $customers['nama'] }}</b>, No. K/P : <b>@php $satu = substr($gadai[0][0]['nokp'],0,6); $dua = substr($gadai[0][0]['nokp'],6,2);$ketiga = substr($gadai[0][0]['nokp'],8); echo $satu . '-' . $dua . '-' . $ketiga; @endphp</b> yang beralamat di <b>{{ strtoupper($customers['alamat1']) . ', ' . $customers['poskod'] . ', ' . strtoupper($daerah['namadaerah']) . ', ' . strtoupper($negeri['negeri']) }}</b> dengan sesungguhnya dan sebenarnya mengaku bahawa: -</p>
|
||||||
@@ -84,8 +84,8 @@
|
|||||||
@php
|
@php
|
||||||
$negeriagh = $polis[0]['kodnegeri'];
|
$negeriagh = $polis[0]['kodnegeri'];
|
||||||
$daerahagh = $polis[0]['koddaerah'];
|
$daerahagh = $polis[0]['koddaerah'];
|
||||||
$negeri = Http::get($api_url . '/api/negeri/' . $negeriagh)->json();
|
$negeri = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/negeri/' . $negeriagh)->json();
|
||||||
$daerah = Http::get($api_url . '/api/daerah/' . $daerahagh)->json();
|
$daerah = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/daerah/' . $daerahagh)->json();
|
||||||
|
|
||||||
@endphp
|
@endphp
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
+1
-1
@@ -44,7 +44,7 @@ Route::post('change-password', ['as'=>'change.password','uses'=>'ChangePasswordC
|
|||||||
Route::get('/welcome',function(){
|
Route::get('/welcome',function(){
|
||||||
|
|
||||||
$auth_user = Auth::user();
|
$auth_user = Auth::user();
|
||||||
$cawangan=Http::get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
|
$cawangan=Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
|
||||||
$cawangan_detail=$cawangan[0];
|
$cawangan_detail=$cawangan[0];
|
||||||
|
|
||||||
return view('print.suratgadaihilang', compact('cawangan_detail'));
|
return view('print.suratgadaihilang', compact('cawangan_detail'));
|
||||||
|
|||||||
Reference in New Issue
Block a user