Compare commits

..

No commits in common. "fe2b57ce37b1ffbaf4524f9314a54ead1daf5349" and "2c841e27e4a71a1b190a269fa7b11f03445e7de6" have entirely different histories.

2 changed files with 3 additions and 3 deletions

View File

@ -673,7 +673,7 @@ class AdminController extends Controller
public function get_jawaban($jawaban_id) public function get_jawaban($jawaban_id)
{ {
try { try {
$data = JawabanDetail::where('lms_mutu_jawaban_id', $jawaban_id)->join('lms_mutu_soal_detail', 'lms_mutu_soal_detail_id', '=', 'lms_mutu_soal_detail.id')->orderBy('lms_mutu_soal_detail.id', 'asc')->get()->toArray(); $data = JawabanDetail::where('lms_mutu_jawaban_id', $jawaban_id)->join('lms_mutu_soal_detail', 'lms_mutu_soal_detail_id', '=', 'lms_mutu_soal_detail.id')->get()->toArray();
return response()->json([ return response()->json([
'msg' => 'Berhasil', 'msg' => 'Berhasil',

View File

@ -143,9 +143,9 @@
const dataSoal = JSON.parse(element.soal); const dataSoal = JSON.parse(element.soal);
stringTable += ` stringTable += `
<tr> <tr>
<td>${dataSoal.no ?? '#'}</td> <td>${index + 1}</td>
<td>${dataSoal.soal}</td> <td>${dataSoal.soal}</td>
<td class="fw-bold">${element.jawaban ?? '-'}</td> <td class="fw-bold">${element.jawaban}</td>
</tr> </tr>
`; `;
}); });