Beispiel #1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function destroypatient()
 {
     $id = $_GET['id'];
     ////        $patient->bed = Input::get('bed');
     //        $patient = Patient::find($id);
     //        \Illuminate\Support\Facades\DB::update("update beds set status ='active' where id='$patient->bed'");
     //        \Illuminate\Support\Facades\DB::update("update rooms set status ='active' where id='$patient->room'");
     ////        \Illuminate\Support\Facades\DB::table('bills')->where($patient,'id')
     //        $patient->delete();
     $bill = bill::findOrFail($id);
     //        $bill = Bill::all();
     return View::make('discharge.discharge_slip', compact('bill'));
 }
Beispiel #2
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $bill = bill::findOrFail($id);
     return View::make('bills.edit', compact('bill'));
 }