Commit 2955132b by Novan Bagus Setiawan

urut berdasarkan fakultas ketua

parent 5fe1b24a
......@@ -42,7 +42,9 @@ class ProposalExport implements FromView,ShouldAutoSize
$statement .= " AND PERIODE = '".$this->tahun."'";
}
$data = DaftarProposal::with('rKelompokDetil')->whereRaw($statement)->get();
$data = DaftarProposal::with(['rKelompokDetil' => function ($query) {
$query->orderBy('status_ketua', 'ASC'); // Ganti 'kolom_yang_ingin_diurutkan' sesuai dengan nama kolom
}])->whereRaw($statement)->orderBy('fakultas_ketua', 'ASC')->get();
$result = [];
$no = 0;
......
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