main
Ilham Wara Nugroho 2026-02-04 15:34:11 +07:00
parent 0f6c67db75
commit d2d1c7250d
1 changed files with 9 additions and 7 deletions

View File

@ -175,6 +175,14 @@ class KriteriaController extends Controller
$skor = hitungSkor(str_replace('input_','',$key),$value,@$data['input_lainnya']);
}
if(@$request['sekolah']){
$idSekolah = decode_id(@$request['sekolah']);
$sekolah = Sekolah::find($idSekolah);
}else{
$idSekolah = session('sekolah_id');
$sekolah = Sekolah::find($idSekolah);
}
if(session('group_alias') == 'sekolah'){
$status = 0;
$reload = false;
@ -188,13 +196,7 @@ class KriteriaController extends Controller
$reload = (count(@$penilaian) == count(@$page) ? true : false);
}
if(@$request['sekolah']){
$idSekolah = decode_id(@$request['sekolah']);
$sekolah = Sekolah::find($idSekolah);
}else{
$idSekolah = session('sekolah_id');
$sekolah = Sekolah::find($idSekolah);
}
// dd(request()->all());