{strip}
    {cms_module module='MAMS' assign='mams_load'}
    {assign var='is_logged_in' value=false}
    {if isset($ccUser) && $ccUser->loggedin()}
        {assign var='is_logged_in' value=true}
    {/if}
    {assign var='is_reslynx' value=false}
    {if $smarty.get.layout == 'reslynx' || $smarty.get.cntnt01layout == 'reslynx'}
        {assign var='is_reslynx' value=true}
    {/if}
{/strip}

{if $is_reslynx}
    {* This design template must exist in Design Manager or LISE *}
    {include file='cms_template:package_detail_reslynx'}

{elseif $is_logged_in}
    {* This matches ID 31 in your screenshot *}
    {include file='cms_template:csm package detail'}

{else}
    <div style="padding:50px; text-align:center;">
        <h3>Agent Access Required</h3>
        <p><a href="https://www.csmtravel.com/cmss/lisepages/partners">Click here to Login</a></p>
    </div>
{/if}