fix skit2
This commit is contained in:
@@ -1848,4 +1848,22 @@ class AdminPageController extends Controller
|
||||
return response($e);
|
||||
}
|
||||
}
|
||||
|
||||
public function GetPermohonanCawangan($kodcaw,Request $request)
|
||||
{
|
||||
$listpermohonan = Permohonan::where('kodcaw', $kodcaw)->get();
|
||||
|
||||
return response()->json($listpermohonan);
|
||||
}
|
||||
|
||||
public function GetPermohonanById($kodcaw,$mohonid)
|
||||
{
|
||||
$permohonanstatus = [];
|
||||
$listpermohonan = Permohonan::where([['kodcaw', $kodcaw],['mohonid',$mohonid]])->first()->toArray();
|
||||
$status = Status::where('mohonid',$mohonid)->get()->toArray();
|
||||
|
||||
$permohonanstatus = $listpermohonan + $status;
|
||||
|
||||
return response()->json($permohonanstatus);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user