/** * Show the form for creating a new resource. * * @return Response */ public function create() { $ward = Wards::lists('ward_name', 'id'); return View::make('adminipd.create', compact('ward')); }
/** * Show the form for editing the specified patient. * * @param int $id * @return Response */ public function edit($id) { $patient = Patient::find($id); $ward = Wards::lists('ward_name', 'id'); //$bed = Beds::lists('bed_no','id'); $bed = DB::table('beds')->where('status', 'active')->lists('bed_no', 'id'); return View::make('ipd.edit', compact('patient', 'ward', "bed")); // return View::make('ipd.edit', compact('patient')); }