fix adminapi
This commit is contained in:
@@ -1854,7 +1854,10 @@ class AdminPageController extends Controller
|
||||
|
||||
if($kodcaw === 'admin')
|
||||
{
|
||||
$listpermohonan = Permohonan::where('tagterima',0)->orderBy('tarikh_permohonan','desc')->paginate(5);
|
||||
$listpermohonan = Permohonan::join('pengesahan', 'permohonan.mohonid', '=', 'pengesahan.mohonid')
|
||||
->where('tagterima',0)
|
||||
->orderBy('tarikh_permohonan','desc')->paginate(5);
|
||||
|
||||
}else{
|
||||
$listpermohonan = Permohonan::where([['kodcaw', $kodcaw],['tagterima',0]])->get();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user