/** get client-distributor * */ public function getDistributor() { $distributor = $this->distributor->getDistributorDetails(); return view('clients.distributor', compact('distributor')); }
/** * Update the Authenticated agent details * @return \Illuminate\View\View * @param $id */ public function updateAgent($id) { $this->repository->update($this->request, $id); Session::flash('flash_message', 'Agent status was updated!'); return redirect('client/agent'); }