public function getCancha(Request $request) { $cancha = $request->input('term'); $canchas = Item::all(); $result = []; foreach ($canchas as $sede) { if (strpos(Str::lower($sede), $cancha) !== false) { $result[] = $sede; } } return $result; }
public function stock() { $this->rem_ses(''); $invReports = Item::all(); // $locReports = Location::all(); // $groupReports = ItemGroup::all(); // $this->set_cart($invReports); // $this->set_group($groupReports); // $this->set_location($locReports); return view('report.stock_items')->with('invReport', $invReports); }