会徽如果在HTML代码中的条件并继续前面的div

$custom_column = '<div class="display: table-cell">';
                if(Auth::user()->role_id !==3){
                    '<div class="checkInfo green">
                        <label class="chkcontainer">
                            <input id="internalCheck'. $entery->id . '" onchange="internalOkFunction(this,' . $entery->id . ');return false;" type="checkbox" ' . $kycinternalok . ' >
                            <input id="hiddenId" type="hidden" value="'.$entery->id.'">
                            <span class="checkmark"></span>
                        </label>
                    </div>';
                }

<div class="display: table-cell"> not recognize when i set if statement after this. how can i run both <div class="display: table-cell"> and if()?

Your data inside the condition block is not added to anything.

You must concatenate to the variable.

$custom_column = '<div class="display: table-cell">';
if(Auth::user()->role_id !== 3){
    $custom_column .= '<div class="checkInfo green">
                           <label class="chkcontainer">
                               <input id="internalCheck'. $entery->id . '" onchange="internalOkFunction(this,' . $entery->id . ');return false;" type="checkbox" ' . $kycinternalok . ' >
                               <input id="hiddenId" type="hidden" value="'.$entery->id.'">
                               <span class="checkmark"></span>
                           </label>
                       </div>';
}