This commit is contained in:
Server D3 Linksehat
2024-08-21 14:20:53 +07:00
parent ff05c31914
commit fc0b004fbd

View File

@@ -36,8 +36,10 @@ class DrugController extends Controller
$manipulatedDrugs = $drugs->map(function ($drug) {
// Contoh manipulasi, tambahkan atau ubah properti sesuai kebutuhan
return [
'value' => $drug->id, // Ganti dengan properti yang sesuai dari model Icd
'label' => $drug->name, // Ganti dengan properti yang sesuai dari model Icd
'value' => $drug->id,
'label' => $drug->name,
'code' => $drug->code,
'price' => $drug->price,
];
});
return Helper::responseJson(data: $manipulatedDrugs);