public function create(array $data)
 {
     $encrypt = $data['user']['password'];
     $data['user']['password'] = bcrypt($encrypt);
     $user = $this->userRepository->create($data['user']);
     $data['user_id'] = $user->id;
     $this->clientRepository->create($data);
 }
 public function editfunction($id)
 {
     $client = $this->repository->find($id);
     return view('admin.clients.editfunction', compact('client'));
 }