row->docter_id; $org_id = $this->row->organization_id; $account = CdmsUsers::where(['org_id'=>$org_id,'docter_id'=>$docter_id])->first(); if($account){ return '/cdms/docter_account/'.$account->id.'/edit'; } return ''; } }