<?php
$agent_flag = false;
if(isset($_COOKIE['userDetail'])) {
// print_r($_COOKIE['userDetail']->agenturl);
$c=json_decode($_COOKIE['userDetail']);
$agent_flag = isset($c->agenturl)?$c->agenturl:false;
$is_login = true;
}
?>
<?php if(!empty($agent_flag)):?>
<a class="dropdown-item-bar-new" href="/proagent" target="_blank">Pro Subscription</a>
<div role="separator" class="dropdown-divider-new"></div>
<?php else:?>
<?php endif; ?>