Esempio n. 1
0
 public function show($id)
 {
     $data = Queue::find($id);
     $data->status = 'Consulting';
     $data->save();
     $ic = $data->pt_ic;
     $data2 = Patient::where('pt_ic', $ic)->first();
     //$data3 = Record::where('pt_id', $data2);
     $inventory = Inventory::all();
     return view('doctor.newcase')->with('data', $data)->with('data2', $data2)->with('inventory', $inventory);
     //->with('history',$data3);
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $inv_types = InvType::all();
     $inventories = Inventory::all();
     $orders = array();
     $order = new Order();
     for ($i = 0; $i < 6; $i++) {
         $orders[$i] = $order->get_order_by_table($i + 1);
     }
     $page_title = 'Table Orders';
     $date = date('Y-m-d');
     return view('test', compact('page_title', 'date', 'inv_types', 'inventories', 'orders'));
 }
Esempio n. 3
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     return view('inventories.index', ['inventories' => Inventory::all()]);
 }
Esempio n. 4
0
 public function reportCurrent(Request $request)
 {
     $inventory = Inventory::all();
     return $inventory;
 }
Esempio n. 5
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $items = Item::find($id);
     $inventories = Inventory::all();
     return view('inventory.edit')->with('item', $items)->with('inventory', $inventories);
 }