Commit 5701bdc2 by Triyah Fatmawati

Fix simpan kategori

parent 496fb5df
...@@ -157,7 +157,7 @@ public function store(Request $request){ ...@@ -157,7 +157,7 @@ public function store(Request $request){
$count = DB::connection('isdm')->table('v_detil_pegawai')->whereIn('noktp',$reviewer)->select('noktp')->get(); $count = DB::connection('isdm')->table('v_detil_pegawai')->whereIn('noktp',$reviewer)->select('noktp')->get();
if($reviewer->count == $count->count()){ if($reviewer->count() == $count->count()){
if(count($count) >= 2){ if(count($count) >= 2){
foreach($count as $sdm){ foreach($count as $sdm){
$isdm = DB::connection('isdm')->table('v_detil_pegawai')->where('noktp',$sdm->noktp)->select('namalengkap','nip','namaparentsatker')->first(); $isdm = DB::connection('isdm')->table('v_detil_pegawai')->where('noktp',$sdm->noktp)->select('namalengkap','nip','namaparentsatker')->first();
......
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