add khazanah di sag

This commit is contained in:
unknown
2024-10-08 15:17:44 +08:00
parent 536794900e
commit 7b85a05f91
3 changed files with 12 additions and 7 deletions
+7 -2
View File
@@ -314,6 +314,7 @@ class GadaianController extends Controller
$norujukan = $request->norujukan_modal;
$auth_user = Auth::user();
$auth_username = $auth_user['name'];
$kodcaw = $auth_user['cawangan'];
$api_url = config('api.url');
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $auth_user['cawangan'] .'/' .$norujukan)->json();
@@ -327,6 +328,10 @@ class GadaianController extends Controller
]);
}
$kakitangan = User::where([['role_harian','khazanah'],['cawangan',$kodcaw]])->first();
// dd($kakitangan);
$customer = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/'. $gadai_detail['nokp'])->json();
$customer_detail = $customer;
@@ -359,9 +364,9 @@ class GadaianController extends Controller
$kuantiti = $gadai_detail['pinjaman'] / $komoditi['nilai'];
if ($gadai_detail['tagbaru'] == 1) {
return view('print.sag_ujrah_3', compact('komoditi', 'product', 'kuantiti', 'gadai_detail', 'customer_detail', 'marhun_detail', 'cawangan_detail', 'api_url', 'pembayaran_segera', 'auth_username', 'mutu', 'kadar_ujrah'));
return view('print.sag_ujrah_3', compact('komoditi', 'product', 'kuantiti', 'gadai_detail', 'customer_detail', 'marhun_detail', 'cawangan_detail', 'api_url', 'pembayaran_segera', 'auth_username', 'mutu', 'kadar_ujrah','kakitangan'));
} else {
return view('print.sag', compact('gadai_detail', 'customer_detail', 'marhun_detail', 'cawangan_detail', 'api_url', 'pembayaran_segera', 'auth_username', 'mutu'));
return view('print.sag', compact('gadai_detail', 'customer_detail', 'marhun_detail', 'cawangan_detail', 'api_url', 'pembayaran_segera', 'auth_username', 'mutu','kakitangan'));
}
}
+1 -5
View File
@@ -1731,11 +1731,7 @@
</tr>
<tr>
<td>
@if ($gadai_detail['pelulus'] == '')
{{ $auth_username }}
@else
{{ $gadai_detail['pelulus'] }}
@endif
{{$kakitangan['name']}}
</td>
<td>Tandatangan</td>
<td></td>
+4
View File
@@ -462,9 +462,13 @@ Route::get('/bycawnotisjbg2/{kodcaw}/{notisid}',['as'=>'arcc.bycawnotisjbg2','us
Route::get('/detsagcallbyjbg2/{kodcaw}/{notisid}/{nokp}',['as'=>'arcc.detsagcallbyjbg2','uses'=>'CallCenterController@detsagcallbyjbg2'])->middleware('auth','callcenter');
Route::post('/printnotiscall/{kodcaw}/{notisid}',['as'=>'arcc.printnotiscall','uses'=>'CallCenterController@printnotiscall'])->middleware('auth','callcenter');
Route::get('/roles_harian/{kodcaw}', 'Auth\LoginController@GetRolesHarian');
Route::get('supports/driver/mykad-reader',['as'=>'mykadreader.driver', function(){
return view('supports.driver.mykad-reader.download');
}])->middleware('auth','teller');
Route::get('supports/driver/mykad-reader/download',['as'=>'mykadreader.driver.download', function(){
return Storage::disk('supports')->download('MykadReaderDriver.zip');
}])->middleware('auth','teller');