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')); }
/** * 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')); }