update
parent
6b2a5944a2
commit
eec6dee9ac
|
@ -722,10 +722,10 @@ if (!function_exists('formKriteria')) {
|
|||
|
||||
if(@$type == 'kota'){
|
||||
$penilaian = Penilaian::where('key',$data->key)->where('ms_sekolah_id',$idSekolah)->where('status',$status)->first();
|
||||
$penilaianOld = Penilaian::where('key',$data->key)->where('ms_sekolah_id',$idSekolah)->where('status',0)->first();
|
||||
$penilaianOld = Penilaian::where('key',$data->key)->where('ms_sekolah_id',$idSekolah)->where('status',($status-1))->first();
|
||||
}elseif(@$type == 'provinsi'){
|
||||
$penilaian = Penilaian::where('key',$data->key)->where('ms_sekolah_id',$idSekolah)->where('status',$status)->first();
|
||||
$penilaianOld = Penilaian::where('key',$data->key)->where('ms_sekolah_id',$idSekolah)->where('status',1)->first();
|
||||
$penilaianOld = Penilaian::where('key',$data->key)->where('ms_sekolah_id',$idSekolah)->where('status',($status-1))->first();
|
||||
}else{
|
||||
$penilaian = Penilaian::where('key',$data->key)->where('ms_sekolah_id',$idSekolah)->where('status',$status)->first();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue