update
This commit is contained in:
@@ -14,27 +14,11 @@ class CorporateFormulariumResource extends JsonResource
|
||||
*/
|
||||
public function toArray($request)
|
||||
{
|
||||
|
||||
|
||||
return [
|
||||
'id' => $this->formularium->id,
|
||||
'code' => $this->formularium->code,
|
||||
'name' => $this->formularium->name,
|
||||
'description' => $this->formularium->description,
|
||||
'manufacturer' => $this->formularium->manufacturer,
|
||||
'category_name' => $this->formularium->category_name,
|
||||
'kategori_obat' => $this->formularium->kategori_obat,
|
||||
'uom' => $this->formularium->uom,
|
||||
'general_indication' => $this->formularium->general_indication,
|
||||
'composition' => $this->formularium->composition,
|
||||
'atc_code' => $this->formularium->atc_code,
|
||||
'class' => $this->formularium->class,
|
||||
'bpom_registration' => $this->formularium->bpom_registration,
|
||||
'classifications' => $this->formularium->classifications,
|
||||
'cat_for' => $this->formularium->cat_for,
|
||||
'items_count' => $this->formularium->items_count,
|
||||
'status' => $this->active ? 'active' : 'inactive',
|
||||
// 'corporate_formulariums' => $this->formua,
|
||||
'id' => $this->id,
|
||||
'formulaurium_category_id' => $this->formularium_template->id,
|
||||
'category' => $this->formularium_template->name,
|
||||
'description' => $this->formularium_template->description,
|
||||
'active' => $this->active == 1 ? 'Active' : 'Inactive',
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user