/** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response */ public function create() { $groups = ['' => '-- Please select a group !'] + ItemGroup::lists('name', 'id')->toArray(); $locations = Location::lists('name', 'id')->toArray(); // $locations = ['' => '-- Please select a location !'] + Location::lists('name', 'id')->toArray(); $satuans = Satuan::lists('name', 'id'); return view('item.create')->with('satuan', $satuans)->with('location', $locations)->with('group', $groups); }
/** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response */ public function move_create() { $locs = ['' => '-- Please select a location !'] + Location::lists('name', 'id')->toArray(); return view('location.move_create')->with('loc', $locs); }