Commit 6331cb46 by Triyah Fatmawati

Fix jika data reviewer di isdm kurang tidak simpan data

parent ca5d87a2
......@@ -157,6 +157,7 @@ public function store(Request $request){
$count = DB::connection('isdm')->table('v_detil_pegawai')->whereIn('noktp',$reviewer)->select('noktp')->get();
if($reviewer->count == $count->count()){
if(count($count) >= 2){
foreach($count as $sdm){
$isdm = DB::connection('isdm')->table('v_detil_pegawai')->where('noktp',$sdm->noktp)->select('namalengkap','nip','namaparentsatker')->first();
......@@ -180,6 +181,14 @@ public function store(Request $request){
return view('transaksi-gagal', $data);
}
}
else{
foreach($count as $sdm){
$data['kosong'] = VPenelaah::where('id_pengajuan',$request->idpengajuan)->where('nik','!=', $sdm->noktp)->first();
}
return view('transaksi-gagal', $data);
}
DB::commit();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment