public function index(Request $request, $id) { $project = $this->projectRepository->find($id); $frees = $this->freeService->searchIndex($id); $search = $request->input('search'); if (!empty($search)) { $frees = $this->freeService->search($search, $id); } return view('admin.frees.index', compact('frees', 'project')); }
public function edit($id) { $banking = $this->repository->find($id); $projects = $this->projectRepository->lists(); return view('admin.banking.bradesco.edit', compact('projects', 'banking')); }