change notifikasi dan hapus gadai dan history
This commit is contained in:
@@ -28,6 +28,29 @@ class OperasiController extends Controller
|
||||
return view('operasi.kelulusan',compact('cawangan_info','api_url','kelulusan'));
|
||||
}
|
||||
|
||||
public function getkelulusan(Request $request)
|
||||
{
|
||||
$auth_user = Auth::user();
|
||||
$api_url = config('api.url');
|
||||
|
||||
$norujukan = $request->norujukan;
|
||||
|
||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
|
||||
$kelulusan = Http::get(config('api.url') . '/api/SenaraiDahLulus/' . $auth_user['cawangan'] . '/' . $norujukan)->json();
|
||||
|
||||
if(sizeof($kelulusan) > 0)
|
||||
{
|
||||
$kelulusan = $kelulusan[0]['masalulus'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$kelulusan = '';
|
||||
}
|
||||
|
||||
return response($kelulusan);
|
||||
}
|
||||
|
||||
public function updatekelulusan(Request $request)
|
||||
{
|
||||
$auth_user = Auth::user();
|
||||
@@ -38,9 +61,7 @@ class OperasiController extends Controller
|
||||
|
||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
|
||||
$updatelulus = Http::put(config('api.url') . '/api/UpdateKelulusan/' . $auth_user['cawangan'] . '/' . $norujukan, [
|
||||
'peloperasi' => $auth_user['name']
|
||||
])->json();
|
||||
$updatelulus = Http::put(config('api.url') . '/api/UpdateKelulusan/' . $auth_user['cawangan'] . '/' . $norujukan)->json();
|
||||
|
||||
return response()->json($updatelulus,200);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user