Exemple #1
0
 /**
  * Show all options for Company
  *
  * @param string $rp_id
  * @param string $header_id
  *
  * @return \Illuminate\View\View
  */
 public function result($rp_id, $header_id)
 {
     if ($this->repository->getHeaderById(decode($header_id)) && $this->retailerProductRepository->getRetailerProductById(decode($rp_id))) {
         $header = $this->repository->getModel();
         $retailerProduct = $this->retailerProductRepository->getModel();
         if ($this->repository->setHeaderResult($retailerProduct, $header)) {
             return view('de.result', compact('rp_id', 'header_id', 'header', 'retailerProduct'));
         }
     }
     return redirect()->back()->with(['error_header' => 'La tasa no pudo ser registrada']);
 }