plugins – If role then show all widgets, else skip a few widget

i’m really new to PHP but tried to look for answers still cant figure why the if not showing properly

this is my code

$cv_user_info  = get_userdata(get_current_user_id());
$cv_roles = $cv_user_info->roles;?>
<div class="row">
    if ($cv_roles='sales_agent'){
         echo $cv_roles;
        else {
            echo $cv_roles;
        } //close else 


The if else statement did not work because if the user is not in sales_agent, the echo still shows sales_agent.