Ejemplo n.º 1
0
 public function create()
 {
     $profits = ProfitPercentage::type('compras')->get()->all('id', 'profit_name');
     //$contacts = Contacts::type('CLIENTE')->get()->lists('name', 'id');
     $itemtype = ItemType::all();
     return view('item.create', compact('profits', 'itemtype'));
 }
Ejemplo n.º 2
0
 /**
  * Show the form for creating a new resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function create()
 {
     $users = User::lists('name', 'id');
     $percentages = ProfitPercentage::type('comisiones')->get()->lists('profit_name', 'id');
     return view('commission.create', compact('users', 'percentages'));
 }