if (!empty($prescription->medicine)) { $medicine = explode(\'###\', $prescription->medicine); $medicinelist = \'\'; foreach ($medicine as $key => $value) { $medicine_id