Commit 821d3809 by novanbagus

update ambil nilai

parent f02cf1a4
......@@ -93,7 +93,6 @@ class DaftarProposalController extends Controller
$records = DaftarProposal::orderBy($columnName,$columnSortOrder)
->whereRaw($statementGlobal.$statement)
->select('daftar_proposal.*')
->selectRaw("ROUND((nilai_1 + nilai_2) / 2, 0) as rata")
->skip($start)
->take($rowperpage)
->get();
......@@ -108,14 +107,15 @@ class DaftarProposalController extends Controller
$dospem = "(".str_replace("###",") ",$record->identitas_dospem);
$status_administrasi_1 = $record->status_administrasi_1;
$status_administrasi_2 = $record->status_administrasi_2;
$nilai_1 = $record->nilai_1;
$nilai_2 = $record->nilai_2;
$reviewer_id_1 = $record->reviewer_id_1;
$reviewer_id_2 = $record->reviewer_id_2;
$status_final = $record->status_final;
$rata = $record->rata;
// $rata = ($nilai_1 + $nilai_2) / 2;
$nilai_1= DB::select("select ambil_jumlah_penilaian_seleksi('".$record->reviewer_proposal_id_1."', '".$record->jenis_id."')")[0]->ambil_jumlah_penilaian_seleksi;
$nilai_2= DB::select("select ambil_jumlah_penilaian_seleksi('".$record->reviewer_proposal_id_2."', '".$record->jenis_id."')")[0]->ambil_jumlah_penilaian_seleksi;
$rata = number_format((float) (($nilai_1 + $nilai_2) / 2), 0, '.', '');
// $delete = "confirmLolos('".Crypt::encrypt($reviewer_id)."')";
......
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