changes from server 2025/05/15
This commit is contained in:
@@ -717,12 +717,15 @@ class GadaianController extends Controller
|
||||
|
||||
// dd($penebusan['nowakil']);
|
||||
|
||||
$surat_wakil = [];
|
||||
if($penebusan['nowakil'] != 0)
|
||||
{
|
||||
$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)
|
||||
$wakil = $wakil[0];
|
||||
if(sizeof($wakil) != 0){
|
||||
$wakil = $wakil[0];
|
||||
$surat_wakil = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/getsuratwakil/' . $auth_user['cawangan'] . '/' . $id)->json();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -733,7 +736,7 @@ class GadaianController extends Controller
|
||||
$khazanah_user = User::where('role_harian', 'khazanah')->where('cawangan', $auth_user['cawangan'])->select('name')->first();
|
||||
$totalrebate = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/reports/totalrebate',['norujukan'=>$id])->json();
|
||||
|
||||
return view('print.resit.tambah_pinjaman',compact('totalrebate','khazanah_user','totalBayaranAnsuran','transaction_tebus','gadai','customers_info','penebusan','wakil','cawangan_info'));
|
||||
return view('print.resit.tambah_pinjaman',compact('surat_wakil','totalrebate','khazanah_user','totalBayaranAnsuran','transaction_tebus','gadai','customers_info','penebusan','wakil','cawangan_info'));
|
||||
}
|
||||
|
||||
public function history(Request $request)
|
||||
|
||||
Reference in New Issue
Block a user