public function assignDoseInterval($id) { $vaccine = Vaccine::find($id); $noOfDose = \DB::table('vaccine_doses')->where('dose_vaccine_id', $id)->get(); if ($vaccine->vcin_dose == count($noOfDose)) { return view('vaccination.vaccine_doses.show')->with('vaccine_doses', $noOfDose); //return redirect('vaccines')->with('message','Vaccine dose intervals are already assigned.'); } return view('vaccination.vaccine_doses.create')->with('vaccine', $vaccine); }
public function getVaccineName($id) { $vaccine = Vaccine::find($id); return $vaccine->vcin_name; }