public function done(Request $request) { $this->validate($request, $this->rules); $this->paymentRepo->create($request->all()); $this->cashRegisterRepo->total($request->get('cash_register_id')); session()->flash('message', 'Cobro realizado con exito'); return redirect()->back(); }
public function show($id) { $brands = array_add($this->brandRepo->lists(), '', 'Seleccione Laboratorio'); $types = array_add($this->typeTepo->lists(), '', 'Seleccione Tipo de Producto'); $presentations = array_add($this->presentationRepo->lists(), '', 'Seleccione Presentación'); $bill = $this->billRepo->findOrFail($id); $cashRegister = $this->cashRegisterRepo->last(); return view('bills/create', compact('bill', 'brands', 'presentations', 'types', 'cashRegister')); }
public function close($id) { $this->cashRegisterRepo->close($id); return redirect()->route('bills.box'); }