<?php /* Smarty version Smarty-3.1.7, created on 2025-02-27 21:25:40
         compiled from "/var/www/html/crm.fursysperu.com.pe/includes/runtime/../../layouts/vlayout2/modules/CTMobileSettings/CTMobileDetails.tpl" */ ?>
<?php /*%%SmartyHeaderCode:191643171267c0d8541ec896-67856952%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '47315485b99b9336f2e68cd86dffbfd6f63da35a' => 
    array (
      0 => '/var/www/html/crm.fursysperu.com.pe/includes/runtime/../../layouts/vlayout2/modules/CTMobileSettings/CTMobileDetails.tpl',
      1 => 1740691107,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '191643171267c0d8541ec896-67856952',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'MODULE' => 0,
    'LICENSE_DATA' => 0,
    'CT_REQUIREMENTS' => 0,
    'CT_REQUIREMENTS_DATA' => 0,
    'keys' => 0,
    'ACTIVE_USER' => 0,
    'MOBILE_USER' => 0,
    'MEETING_RECORDS' => 0,
    'CHECKOUT_RECORDS' => 0,
    'CURRENT_USER' => 0,
    'VERSION' => 0,
    'ext_ver' => 0,
    'TIME_TRACKING_LOG_URL' => 0,
    'CTATTENDANCE_URL' => 0,
    'CTPUSHNOTIFICATION_URL' => 0,
    'step' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.7',
  'unifunc' => 'content_67c0d8543dc44',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_67c0d8543dc44')) {function content_67c0d8543dc44($_smarty_tpl) {?> 
<link href="layouts/vlayout/modules/CTMobileSettings/style.css" rel="stylesheet">
<link href="layouts/vlayout/modules/CTMobileSettings/popup.css" rel="stylesheet">

<style>
h4{
font-weight:bold;
font-size:16px;}

.upgrade-button {
background-color: #287DF2;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}

.upgrade{
	width: 150px;
    padding: 2px;
    font-size: 16px;
	cursor:pointer;
	background-color:#178FFF;
	border: 1px solid #178FFF;
	color:#fff;
	border-radius: 4px;
}

.marquee > .overlay{
	z-index: 1111 !important;
}

#checklistTable td {
	text-align: center;
	padding: 5px;
}

#waitmsg{
	text-align: center;
	display: none;
}

.imageHolder{
	background:white !important;
}

#WhatsNew{
	background:#4ad504;    display: inline-block;
    text-transform: uppercase;
    height: 19px;
    line-height: 19px;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    border-radius: 10px;
    padding: 0 8px;
}

.containerCheck input[type="checkbox"]{
  margin: 8px 7px 0px 8px;
}
.containerCheck input[type="checkbox"]:checked::after {
  content:url('layouts/vlayout/skins/images/Enable.png');
}

.closebtn{
    position: absolute;
    float: right !important;
    background: transparent;
    border: transparent;
    /* color: #fff; */
    margin-left: 97%;
    font-size:18px;
}

#updateCRMTigerModal .modal.fade.in{
	left:40% !important;
	top:45% !important;
}

</style>


<div class="main_div">
    <div class="headDiv">
        <ul>
            <li>
                <h3><?php echo vtranslate("MODULE_LBL",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</h3></li>
            <li class="dash_right  icon_image_pos2">
                 <a href="#" title="<?php echo vtranslate("Help",$_smarty_tpl->tpl_vars['MODULE']->value);?>
" id="help_btn" data-url="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_HELP_URL;?>
"><img src="layouts/vlayout/modules/CTMobileSettings/images/question-icon.png" alt="Icon" ></a>
            </li>
            <li class="dash_right  icon_image_pos2">
               <a href="#" title="<?php echo vtranslate("Apple Store",$_smarty_tpl->tpl_vars['MODULE']->value);?>
" id="ios_btn" data-url="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_APPLE_STORE_URL;?>
"><img src="layouts/vlayout/modules/CTMobileSettings/images/apple-icon.png" alt="Icon"></a>
            </li>
            <li class="dash_right icon_image_pos2">
               <a href="#" title="<?php echo vtranslate("Android Store",$_smarty_tpl->tpl_vars['MODULE']->value);?>
" id="android_btn" data-url="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_ANDROID_STORE_URL;?>
"><img src="layouts/vlayout/modules/CTMobileSettings/images/android-icon.png" alt="Icon"></a>
            </li>
            <li class="dash_right icon_image_pos2">
			  	<?php if (strtolower($_smarty_tpl->tpl_vars['LICENSE_DATA']->value['Plan'])=='free'){?>
			  	<a href="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_MYACCOUNT_URL;?>
" title="<?php echo vtranslate("Upgrade to premium version to get more feature",$_smarty_tpl->tpl_vars['MODULE']->value);?>
" id="help_btn" data-url="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_MYACCOUNT_URL;?>
"><img src="layouts/vlayout/modules/CTMobileSettings/images/upgrade-icon.png" alt="Icon" style="height:40px;"></a>
	            <?php }?>
	        </li>
			<?php if ($_smarty_tpl->tpl_vars['CT_REQUIREMENTS']->value==false){?>
			<li class="dash_right icon_image_pos2">
				 <a class="showErrorModal" href="#" title="<?php echo vtranslate("Error",$_smarty_tpl->tpl_vars['MODULE']->value);?>
" id="errorModelButtton"><img src="layouts/vlayout/modules/CTMobileSettings/images/error.png" alt="Icon"></a>
			</li>
			<?php }?>
        </ul>
    </div>
	<?php if (strtolower($_smarty_tpl->tpl_vars['LICENSE_DATA']->value['Plan'])=='free'){?>
	<div class="container-fluid">
			<div class="row-fluid" style="text-align:center;font-size:16px;background:#4d9ffb;color:#fff;">
				<?php echo vtranslate('Do you Love CRMTiger Apps ? Would Like to enjoy more features ?',$_smarty_tpl->tpl_vars['MODULE']->value);?>

				<a href="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_MYACCOUNT_URL;?>
" target="_blank"><?php echo vtranslate('Click here',$_smarty_tpl->tpl_vars['MODULE']->value);?>
</a>
				<?php echo vtranslate('to upgrade to premium plan to enjoy more features',$_smarty_tpl->tpl_vars['MODULE']->value);?>

			</center>
			</div>
	</div>
	<?php }?>

	<div class="marquee">
	  <?php if ($_smarty_tpl->tpl_vars['CT_REQUIREMENTS']->value==false){?>
	  	
	  <div id="myModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
	      <div class="modal-dialog modal-dialog-centered" role="document">

	        <!-- Modal content-->
	        <div class="modal-content">
	          <div class="modal-header">
	            <h4 class="modal-title" id="exampleModalLongTitle"><?php echo vtranslate('Verifying extensions updates...','CTMobileSettings');?>
</h4>
	          </div>
	          <div class="modal-body">
		    	<table id="checklistTable" border="1" cellspacing="2" style="width:90%; margin:10px 0px 10px 10px;">
	                 
	                    <tr>
	                      <td><b><?php echo vtranslate('Modules/Features','CTMobileSettings');?>
</b></td>
	                      <td><b><?php echo vtranslate('Status','CTMobileSettings');?>
</b></td>
	                      <td><b><?php echo vtranslate('Action','CTMobileSettings');?>
</b></td>
	                    </tr>
						   <?php  $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['name']->_loop = false;
 $_smarty_tpl->tpl_vars['keys'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['CT_REQUIREMENTS_DATA']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value){
$_smarty_tpl->tpl_vars['name']->_loop = true;
 $_smarty_tpl->tpl_vars['keys']->value = $_smarty_tpl->tpl_vars['name']->key;
?>	
				                    <tr>
				                      <td><?php echo $_smarty_tpl->tpl_vars['CT_REQUIREMENTS_DATA']->value[$_smarty_tpl->tpl_vars['keys']->value]['requirements_module'];?>
</td>
							<?php if ($_smarty_tpl->tpl_vars['CT_REQUIREMENTS_DATA']->value[$_smarty_tpl->tpl_vars['keys']->value]['requirements']==1){?>	
							     <td><span style="color:green;"><?php echo vtranslate('Success','CTMobileSettings');?>
</span></td>	
							     <td>&nbsp;</td>	
							<?php }else{ ?>
								
								<td><span style="color:red;"><?php echo vtranslate('Fail !!!','CTMobileSettings');?>
</span>
								</td>
								<td><a class="upgrade" href="javascript:updateModule('<?php echo $_smarty_tpl->tpl_vars['CT_REQUIREMENTS_DATA']->value[$_smarty_tpl->tpl_vars['keys']->value]['requirements_module'];?>
')"><?php echo vtranslate('Install','CTMobileSettings');?>
</a></td>
							<?php }?>    
	                    </tr>
					   <?php } ?>
	                 	
	            </table>
	            <div><strong>Note : If you're experience any problem in installation of CRMTiger Mobile Apps extensions.</strong> 
				<br/><strong><a href="https://kb.crmtiger.com/knowledge-base/error-code-solutions/" target="_blank" class="btn btn-success">Click here</a> to download and install manually one by one all updated extensions related to CRMTiger Mobile Apps for respected vTiger version from</strong> <a href="index.php?module=ModuleManager&parent=Settings&view=List" class="btn btn-primary" target="_blank">Settings</a>
				</div>
	             <div id="waitmsg">
	            	<p><?php echo vtranslate('Please wait while we are updating extensions for you...','CTMobileSettings');?>
</p>
            		<p><?php echo vtranslate('It will take around 1-2 minutes for extensions to update..','CTMobileSettings');?>
</p>
	            </div>

	            </div>
	        </div>

	    </div>
	  </div>
	  
	  <?php }?>
	</div>

	</br>
    <div class="container-fluid" style="display: flex;">
		<div class="col-xs-3">
			<div class="card">
			  <div class="card-body">
				<div class="col-xs-12"><h4 class="mn_ttl"><?php echo vtranslate("Active Users",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</h4></div>
				<hr>
				<div class="col-xs-12" style="display: flex;">
					<div class="col-xs-6">
						<img src="layouts/vlayout/modules/CTMobileSettings/images/active-users.png" alt="Icon">
					</div>
					<div class="col-xs-6 pul-right">
						<h2 style="padding: 3px 0px;"><?php echo $_smarty_tpl->tpl_vars['ACTIVE_USER']->value;?>
</h2>
					</div>
				</div>
			  </div>
			</div>
		</div>
		<div class="col-xs-3">
			<div class="card">
			  <div class="card-body">
				<div class="col-xs-12"><h4 class="mn_ttl"><?php echo vtranslate("Mobile Users",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</h4></div>
				<hr>
				<div class="col-xs-12" style="display: flex;">
					<div class="col-xs-6">
						<img src="layouts/vlayout/modules/CTMobileSettings/images/mobile-users.png" alt="Icon">
					</div>
					<div class="col-xs-6 pul-right">
						<h2 style="padding: 3px 0px;"><?php echo $_smarty_tpl->tpl_vars['MOBILE_USER']->value;?>
</h2>
					</div>
				</div>
			  </div>
			</div>
		</div>
		<div class="col-xs-3">
			<div class="card">
			  <div class="card-body">
				<div class="col-xs-12"><h4 class="mn_ttl"><?php echo vtranslate("Checked-In Meetings",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</h4></div>
				<hr>
				<div class="col-xs-12" style="display: flex;">
					<div class="col-xs-6">
						<img src="layouts/vlayout/modules/CTMobileSettings/images/cheked-in.png" alt="Icon">
					</div>
					<div class="col-xs-6 pul-right">
						<h2 style="padding: 3px 0px;"><?php echo $_smarty_tpl->tpl_vars['MEETING_RECORDS']->value;?>
</h2>
					</div>
				</div>
			  </div>
			</div>
		</div>
		<div class="col-xs-3">
			<div class="card">
			  <div class="card-body">
				<div class="col-xs-12"><h4 class="mn_ttl"><?php echo vtranslate("Checked-Out Meetings",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</h4></div>
				<hr>
				<div class="col-xs-12" style="display: flex;">
					<div class="col-xs-6">
						<img src="layouts/vlayout/modules/CTMobileSettings/images/cheked-out.png" alt="Icon"/>
					</div>
					<div class="col-xs-6 pul-right">
						<h2 style="padding: 3px 0px;"><?php echo $_smarty_tpl->tpl_vars['CHECKOUT_RECORDS']->value;?>
</h2>
					</div>
				</div>
			  </div>
			</div>
		</div>
    </div>
	
	<div class="container-fluid" style="top: 20px;position: relative;">
		<div class="col-xs-12">
			<section id="pinBoot">
				<?php if ($_smarty_tpl->tpl_vars['CURRENT_USER']->value->get('is_admin')=='on'){?>
				<article class="white-panel">
					<div class="middle-second-boc">
						<h3><span class="glyphicon glyphicon-briefcase"></span> <?php echo vtranslate("LBL_ACCOUNT_SUMMARY",$_smarty_tpl->tpl_vars['MODULE']->value);?>

						<a href="<?php echo CTMobileSettings_Module_Model::$MY_ACCOUNT_SUMMARY_URL;?>
" target="_blank"><span class="glyphicon glyphicon-question-sign pull-right" style="font-size:25px"></span></a></h3> 

						<div class="box_count">
						   <p><?php echo vtranslate("LBL_ORDER",$_smarty_tpl->tpl_vars['MODULE']->value);?>
 : <b><?php echo $_smarty_tpl->tpl_vars['LICENSE_DATA']->value['ORDER_ID'];?>
</b></p>
						   
						   	<?php if (strtolower($_smarty_tpl->tpl_vars['LICENSE_DATA']->value['Plan'])=='free'){?>
						   	  <p><?php echo vtranslate("LBL_MY_PLAN",$_smarty_tpl->tpl_vars['MODULE']->value);?>
 : <b><?php echo vtranslate($_smarty_tpl->tpl_vars['LICENSE_DATA']->value['Plan'],$_smarty_tpl->tpl_vars['MODULE']->value);?>
</b>
						   		<button class="upgrade" onclick="window.open('<?php echo CTMobileSettings_Module_Model::$CTMOBILE_MYACCOUNT_URL;?>
','_blank');" data-url="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_MYACCOUNT_URL;?>
"><?php echo vtranslate("Upgrade (Monthly)",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</button></p>

						   	<?php }elseif($_smarty_tpl->tpl_vars['LICENSE_DATA']->value['Plan']=='Premium ( Monthly )'){?>

						   		<p><?php echo vtranslate("LBL_MY_PLAN",$_smarty_tpl->tpl_vars['MODULE']->value);?>
 : <b><?php echo vtranslate($_smarty_tpl->tpl_vars['LICENSE_DATA']->value['Plan'],$_smarty_tpl->tpl_vars['MODULE']->value);?>
</b>
						   		<button class="upgrade" onclick="window.open('<?php echo CTMobileSettings_Module_Model::$CTMOBILE_MYACCOUNT_URL;?>
','_blank');" data-url="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_MYACCOUNT_URL;?>
"><?php echo vtranslate("Upgrade (Yearly)",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</button></p>

							  	<p><?php echo vtranslate("Next renewal date",$_smarty_tpl->tpl_vars['MODULE']->value);?>
 : <b><?php echo Vtiger_Date_UIType::getDisplayValue($_smarty_tpl->tpl_vars['LICENSE_DATA']->value['NextPaymentDate']);?>
</b></p>
						   <?php }else{ ?>
						   		<p><?php echo vtranslate("LBL_MY_PLAN",$_smarty_tpl->tpl_vars['MODULE']->value);?>
 : <b><?php echo vtranslate($_smarty_tpl->tpl_vars['LICENSE_DATA']->value['Plan'],$_smarty_tpl->tpl_vars['MODULE']->value);?>
</b>
						   		<p><?php echo vtranslate("Next renewal date",$_smarty_tpl->tpl_vars['MODULE']->value);?>
 : <b><?php echo Vtiger_Date_UIType::getDisplayValue($_smarty_tpl->tpl_vars['LICENSE_DATA']->value['NextPaymentDate']);?>
</b></p>
						   <?php }?>

						   <p class="ctbtn" title="<?php echo vtranslate("LBL_LICENSE_CONFIGURATION",$_smarty_tpl->tpl_vars['MODULE']->value);?>
" data-url="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_LICENSE_DETAILVIEW_URL;?>
"><a href="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_LICENSE_DETAILVIEW_URL;?>
"><b><?php echo vtranslate("LBL_LICENSE_CONFIGURATION",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</b><img src="layouts/vlayout/modules/CTMobileSettings/images/right-arrow.png" alt="Icon" class="dash_arrow"></a></p>

						   <?php if (strtolower($_smarty_tpl->tpl_vars['LICENSE_DATA']->value['Plan'])=='free'){?>
						   <p class="ctbtn" title="<?php echo vtranslate("BTN_CTMOBILE_ACCESS_USER",$_smarty_tpl->tpl_vars['MODULE']->value);?>
" data-url="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_ACCESSUSER_URL;?>
"><a href="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_ACCESSUSER_URL;?>
"><b><?php echo vtranslate("BTN_CTMOBILE_ACCESS_USER",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</b><img src="layouts/vlayout/modules/CTMobileSettings/images/right-arrow.png" alt="Icon" class="dash_arrow"></a></p>
						   <?php }?>


						   <p class="ctbtn" title="<?php echo vtranslate("Setup Language for Mobile",$_smarty_tpl->tpl_vars['MODULE']->value);?>
" data-url="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_LANGUAGE_URL;?>
"><a href="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_LANGUAGE_URL;?>
"><b><?php echo vtranslate("Setup Language for Mobile",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</b><img src="layouts/vlayout/modules/CTMobileSettings/images/right-arrow.png" alt="Icon" class="dash_arrow"></a></p>
						   
						   <p class="ctbtn" title="<?php echo vtranslate("Setup Mobile Apps Icons",$_smarty_tpl->tpl_vars['MODULE']->value);?>
" ><a href="<?php echo CTMobileSettings_Module_Model::$MODULE_ICON_URL;?>
"><b><?php echo vtranslate("Setup Mobile Apps Icons",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</b><img src="layouts/vlayout/modules/CTMobileSettings/images/right-arrow.png" alt="Icon" class="dash_arrow "></a></p>

						   <p class="ctbtn" title="<?php echo vtranslate("Login History",$_smarty_tpl->tpl_vars['MODULE']->value);?>
" ><a href="index.php?module=CTMobileSettings&parent=Settings&view=LoginHistory"><b><?php echo vtranslate("Login History",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</b><img src="layouts/vlayout/modules/CTMobileSettings/images/right-arrow.png" alt="Icon" class="dash_arrow "></a></p>

						   <p class="ctbtn" title="<?php echo vtranslate("Force logout all mobile app users",$_smarty_tpl->tpl_vars['MODULE']->value);?>
" id="forcelogout"><a href="#"><b><?php echo vtranslate("Force logout all mobile app users",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</b><img src="layouts/vlayout/modules/CTMobileSettings/images/right-arrow.png" alt="Icon" class="dash_arrow "></a></p>

						   <p class="ctbtn" title="<?php echo vtranslate("Apps Logging",$_smarty_tpl->tpl_vars['MODULE']->value);?>
" ><a href="<?php echo CTMobileSettings_Module_Model::$APILOGS_SETTINGS_URL;?>
"><b><?php echo vtranslate("Apps Logging",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</b><img src="layouts/vlayout/modules/CTMobileSettings/images/right-arrow.png" alt="Icon" class="dash_arrow "></a></p>


						   <p class="ctbtn" title="<?php echo vtranslate("LBL_CLOSE_ACCOUNT",$_smarty_tpl->tpl_vars['MODULE']->value);?>
" id="unInstallCTMobile"><a href="#"><b style="color:red;"><?php echo vtranslate("LBL_CLOSE_ACCOUNT",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</b><img src="layouts/vlayout/modules/CTMobileSettings/images/right-arrow.png" alt="Icon" class="dash_arrow "></a></p>
						</div>
					</div>
				</article>
				<?php }?>

				
				<?php if ($_smarty_tpl->tpl_vars['CURRENT_USER']->value->get('is_admin')=='on'){?>
				<article class="white-panel">
				  <?php if (strtolower($_smarty_tpl->tpl_vars['LICENSE_DATA']->value['Plan'])=='free'){?>
					 <button class="blur_box_btn" data-url="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_MYACCOUNT_URL;?>
"><?php echo vtranslate("Premium",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</button>
					  <div class="overlay"></div>
					<?php }?>
				  <div class="col-md-12 col-xs-12 backgeound_comm_class">
				   <div class="middle-second-boc">
						<h3><span class="glyphicon glyphicon-cog"></span> <?php echo vtranslate("General Settings",$_smarty_tpl->tpl_vars['MODULE']->value);?>

						<a href="<?php echo CTMobileSettings_Module_Model::$GENERAL_SETTINGS_URL;?>
" target="_blank"><span class="glyphicon glyphicon-question-sign pull-right" style="font-size:25px"></span></a></h3>
						  <div class="box_count">

						  	<p class="ctbtn" title="<?php echo vtranslate('Feature access management','CTMobileSettings');?>
" data-url="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_USER_SETTINGS_URL;?>
" style="font-size:16px;margin-bottom:8px !important;"><a href="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_USER_SETTINGS_URL;?>
"><b><?php echo vtranslate('Feature access management','CTMobileSettings');?>
</b><img src="layouts/vlayout/modules/CTMobileSettings/images/right-arrow.png" alt="Icon" class="dash_arrow "></a></p>

						  	<p><?php echo vtranslate("Allow access to various CRMtiger Apps feature",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</p>

							<ul>
							<li><?php echo vtranslate("Access to mobile",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</li>
							<li><?php echo vtranslate("Module Management",$_smarty_tpl->tpl_vars['MODULE']->value);?>
 <img src="layouts/vlayout/modules/CTMobileSettings/icon/new.png"></li>
							<li><?php echo vtranslate("Premium Feature management",$_smarty_tpl->tpl_vars['MODULE']->value);?>
 <img src="layouts/vlayout/modules/CTMobileSettings/icon/new.png"></li>
							<li><?php echo vtranslate("Location tracking",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</li>
							<li><?php echo vtranslate("Route planning",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</li>
							<li><?php echo vtranslate("Time tracking",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</li>
							<li><?php echo vtranslate("Call Logging",$_smarty_tpl->tpl_vars['MODULE']->value);?>
 <img src="layouts/vlayout/modules/CTMobileSettings/icon/new.png"></li>
							</ul>

							<p class="ctbtn" title="<?php echo vtranslate("Fields access management",$_smarty_tpl->tpl_vars['MODULE']->value);?>
" data-url="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_FIELD_SETTINGS_URL;?>
" style="font-size:16px;margin-bottom:8px !important;"><a href="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_FIELD_SETTINGS_URL;?>
"><b><?php echo vtranslate("Fields access management",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</b><img src="layouts/vlayout/modules/CTMobileSettings/images/right-arrow.png" alt="Icon" class="dash_arrow "></a></p>

							<p><?php echo vtranslate("Add/Setup fields for premium feature",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</p>

							<ul>
							<li><?php echo vtranslate("Setup fields for vCard",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</li>
							<li><?php echo vtranslate("Setup fields for BarCode",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</li>
							<li><?php echo vtranslate("Setup fields for Signature / Pictures or Documents",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</li>
							</ul>

						  </div>

						  
					</div>
				  </div>
				</article>
				<?php }?>

				<?php if ($_smarty_tpl->tpl_vars['CURRENT_USER']->value->get('is_admin')=='on'){?>
				<article class="white-panel">
				   <div class="middle-second-boc ">
						<h3><span class="glyphicon glyphicon-saved"></span> <?php echo vtranslate("LBL_APP_UPDATES",$_smarty_tpl->tpl_vars['MODULE']->value);?>

						<a href="<?php echo CTMobileSettings_Module_Model::$VERSION_AND_UPDATES_URL;?>
" target="_blank"><span class="glyphicon glyphicon-question-sign pull-right" style="font-size:25px"></span></a></h3>
						
						<div class="box_count">
						   <p><?php echo vtranslate("Your Version",$_smarty_tpl->tpl_vars['MODULE']->value);?>
 : <b><?php echo $_smarty_tpl->tpl_vars['VERSION']->value;?>
</b></p>
						   <p><?php echo vtranslate("LBL_LATEST_VERSION",$_smarty_tpl->tpl_vars['MODULE']->value);?>
 : <b><?php echo $_smarty_tpl->tpl_vars['ext_ver']->value;?>
</b></p>
						   
						   <?php if ($_smarty_tpl->tpl_vars['VERSION']->value!=$_smarty_tpl->tpl_vars['ext_ver']->value){?>
						   <p title="<?php echo vtranslate("LBL_CLICK_UPDATE",$_smarty_tpl->tpl_vars['MODULE']->value);?>
" data-toggle="modal" data-target="#updateCRMTigerModal" data-backdrop="static" data-keyboard="false"><a href="#"><b><?php echo vtranslate("LBL_CLICK_UPDATE",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</b><img src="layouts/vlayout/modules/CTMobileSettings/images/right-arrow.png" alt="Icon" class="dash_arrow"></a></p>
						   <?php }else{ ?>
						   <p><b><label class="text text-success"><?php echo vtranslate("LBL_UPDATED_VERSION",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</label></b></p>

						   <p title="<?php echo vtranslate("Issue ? Click here to update",$_smarty_tpl->tpl_vars['MODULE']->value);?>
" data-toggle="modal" data-target="#updateCRMTigerModal" data-backdrop="static" data-keyboard="false"><a href="#"><b><?php echo vtranslate("Issue ? Click here to update",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</b><img src="layouts/vlayout/modules/CTMobileSettings/images/right-arrow.png" alt="Icon" class="dash_arrow"></a></p>

						   <?php }?>

						   <p class="ctbtn"><a target="_blank" href="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_RELEASE_NOTE_URL;?>
" title="<?php echo vtranslate("View Release Note",$_smarty_tpl->tpl_vars['MODULE']->value);?>
"><b><?php echo vtranslate("View Release Note",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</b><img src="layouts/vlayout/modules/CTMobileSettings/images/right-arrow.png" alt="Icon" class="dash_arrow"></a></p>

						   <a href="#" id="WhatsNew"><?php echo vtranslate("What's New",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</a>
						</div>  
					</div>
				</article>
				<?php }?>
				
				<?php if ($_smarty_tpl->tpl_vars['CURRENT_USER']->value->get('is_admin')=='on'){?>
				<article class="white-panel">
					<?php if (strtolower($_smarty_tpl->tpl_vars['LICENSE_DATA']->value['Plan'])=='free'){?>
					 <button class="blur_box_btn" data-url="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_MYACCOUNT_URL;?>
"><?php echo vtranslate("Premium",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</button>
					  <div class="overlay"></div>
					<?php }?>
				   <div class="col-xs-12 col-xs-12 backgeound_comm_class">
				   <div class="middle-second-boc ">
						<h3><span class="glyphicon glyphicon-cog"></span> <?php echo vtranslate("LBL_MAP_CONFIGURATION",$_smarty_tpl->tpl_vars['MODULE']->value);?>
 
						<a href="<?php echo CTMobileSettings_Module_Model::$GEO_SETTINGS_URL;?>
" target="_blank"><span class="glyphicon glyphicon-question-sign pull-right" style="font-size:25px"></span></a></h3>
						
						<div class="box_count">
						   <p><?php echo vtranslate("LBL_CTMOBILE_LIMITED_OFFER",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</p>

						   <p class="ctbtn"><a href="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_GEOLOCATION_SETUP_URL;?>
"><b><?php echo vtranslate("GEO Location Settings",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</b><img src="layouts/vlayout/modules/CTMobileSettings/images/right-arrow.png" alt="Icon" class="dash_arrow"></a></p>
						   
						   <?php echo vtranslate("CRMTiger provides the following Map related features",$_smarty_tpl->tpl_vars['MODULE']->value);?>

						   <ul>
						   <li><?php echo vtranslate("Nearby Contacts view in Mobile app",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</li>
						   <li><?php echo vtranslate("Live Tracking of Team(users) who enable their GPS",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</li>
						   <li><?php echo vtranslate("Calculate Distance between two Location",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</li>
						   </ul>
						   
						</div>  
					  </div>
					 </div>
				</article>
				<?php }?>

						<article class="white-panel">
				  <?php if (strtolower($_smarty_tpl->tpl_vars['LICENSE_DATA']->value['Plan'])=='free'){?>
					 <button class="blur_box_btn" data-url="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_MYACCOUNT_URL;?>
"><?php echo vtranslate("Premium",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</button>
					  <div class="overlay"></div>
					<?php }?>
				  <div class="col-md-12 col-xs-12 backgeound_comm_class">
				   <div class="middle-second-boc">
						<h3><span class="fa fa-bar-chart"></span> <?php echo vtranslate("Reports & Analytics",$_smarty_tpl->tpl_vars['MODULE']->value);?>

						<a href="<?php echo CTMobileSettings_Module_Model::$REPORTS_AND_ANALYTICS_URL;?>
" target="_blank"><span class="glyphicon glyphicon-question-sign pull-right" style="font-size:25px"></span></a></h3>
						  <div class="box_count">

						  	<h4><?php echo vtranslate("Team Activities Report",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</h4>
						  	
						  	<?php if ($_smarty_tpl->tpl_vars['CURRENT_USER']->value->get('is_admin')=='on'){?>
							<p class="ctbtn" title="<?php echo vtranslate("User activity on Map",$_smarty_tpl->tpl_vars['MODULE']->value);?>
"  data-url="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_TEAMTRACKING_URL;?>
"><a href="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_TEAMTRACKING_URL;?>
"><b><?php echo vtranslate("User activity on Map",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</b><img src="layouts/vlayout/modules/CTMobileSettings/images/right-arrow.png" alt="Icon" class="dash_arrow "></a></p>
							<?php }?>

							<p class="ctbtn" title="<?php echo vtranslate("Time Tracking Report",$_smarty_tpl->tpl_vars['MODULE']->value);?>
"  data-url="<?php echo $_smarty_tpl->tpl_vars['TIME_TRACKING_LOG_URL']->value;?>
"><a href="<?php echo $_smarty_tpl->tpl_vars['TIME_TRACKING_LOG_URL']->value;?>
"><b><?php echo vtranslate("Time Tracking Report",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</b><img src="layouts/vlayout/modules/CTMobileSettings/images/right-arrow.png" alt="Icon" class="dash_arrow "></a></p>

							<h4><?php echo vtranslate("Meeting & Attendance Report",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</h4>

							<p class="ctbtn" title="<?php echo vtranslate("Meeting & Attendance (GEO Location)",$_smarty_tpl->tpl_vars['MODULE']->value);?>
"  data-url="<?php echo $_smarty_tpl->tpl_vars['CTATTENDANCE_URL']->value;?>
"><a href="<?php echo $_smarty_tpl->tpl_vars['CTATTENDANCE_URL']->value;?>
"><b><?php echo vtranslate("Meeting & Attendance (GEO Location)",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</b><img src="layouts/vlayout/modules/CTMobileSettings/images/right-arrow.png" alt="Icon" class="dash_arrow "></a></p>

							<h4><?php echo vtranslate("LBL_ROUTE_PLANNING_REPORT",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</h4>

							<p class="ctbtn" title="<?php echo vtranslate("Route Activities",$_smarty_tpl->tpl_vars['MODULE']->value);?>
" data-url="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_ROUTE_ANALYTICS_URL;?>
"><a href="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_ROUTE_ANALYTICS_URL;?>
"><b><?php echo vtranslate("Route Activities",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</b><img src="layouts/vlayout/modules/CTMobileSettings/images/right-arrow.png" alt="Icon" class="dash_arrow "></a></p>

							<h4><?php echo vtranslate("Call Log Report",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</h4>

							<p class="ctbtn" title="<?php echo vtranslate("Call logs with recording",$_smarty_tpl->tpl_vars['MODULE']->value);?>
" data-url="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_CALL_LOG_RECORDING_URL;?>
"><a href="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_CALL_LOG_RECORDING_URL;?>
"><b><?php echo vtranslate("Call logs with recording",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</b><img src="layouts/vlayout/modules/CTMobileSettings/images/right-arrow.png" alt="Icon" class="dash_arrow "></a></p>

						  </div>

						  
					</div>
				  </div>
				</article>

				<article class="white-panel">
					<?php if (strtolower($_smarty_tpl->tpl_vars['LICENSE_DATA']->value['Plan'])=='free'){?>
					 <button class="blur_box_btn" data-url="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_MYACCOUNT_URL;?>
"><?php echo vtranslate("Premium",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</button>
					  <div class="overlay"></div>
					<?php }?>
					<div class="col-xs-12 col-xs-12 backgeound_comm_class premium_box">
						<div class="middle-second-boc ">
							<h3><span class="glyphicon glyphicon-bell"></span> <?php echo vtranslate("Notification Settings",$_smarty_tpl->tpl_vars['MODULE']->value);?>

							<a href="<?php echo CTMobileSettings_Module_Model::$NOTIFICATIONS_URL;?>
" target="_blank"><span class="glyphicon glyphicon-question-sign pull-right" style="font-size:25px"></span></a> </h3>
							
							<div class="box_count">
							  <?php if ($_smarty_tpl->tpl_vars['CURRENT_USER']->value->get('is_admin')=='on'){?>
							   <p class="ctbtn" title="<?php echo vtranslate("Setup Important(Default) Notification",$_smarty_tpl->tpl_vars['MODULE']->value);?>
" data-url="<?php echo CTMobileSettings_Module_Model::$NOTIFICATIONS_SETTINGS_URL;?>
"><a href="<?php echo CTMobileSettings_Module_Model::$NOTIFICATIONS_SETTINGS_URL;?>
"><b><?php echo vtranslate("Setup Important(Default) Notification",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</b><img src="layouts/vlayout/modules/CTMobileSettings/images/right-arrow.png" alt="Icon" class="dash_arrow "></a> <img src="layouts/vlayout/modules/CTMobileSettings/icon/new.png"/></p>
							  
							   <p class="ctbtn" title="<?php echo vtranslate("Setup Notification Action from Workflow",$_smarty_tpl->tpl_vars['MODULE']->value);?>
" data-url="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_WORKFLOW_URL;?>
"><a href="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_WORKFLOW_URL;?>
"><b><?php echo vtranslate("Setup Notification Action from Workflow",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</b><img src="layouts/vlayout/modules/CTMobileSettings/images/right-arrow.png" alt="Icon" class="dash_arrow "></a></p>

							   <p><a class="text text-info" href="https://youtu.be/D34Uv-gIGNE" target="_blank"><span><?php echo vtranslate("Click here to see how to setup ?",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</span></a></p>
							   <?php }?>
							   <p class="ctbtn" title="<?php echo vtranslate("Send Push Notification to Users",$_smarty_tpl->tpl_vars['MODULE']->value);?>
"  data-url="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_CTPUSHNOTIFICATION_URL;?>
"><a href="<?php echo CTMobileSettings_Module_Model::$CTMOBILE_CTPUSHNOTIFICATION_URL;?>
"><b><?php echo vtranslate("Send Push Notification to Users",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</b><img src="layouts/vlayout/modules/CTMobileSettings/images/right-arrow.png" alt="Icon" class="dash_arrow"></a></p>

							   <br/>
							   <p class="ctbtn" title="<?php echo vtranslate("Notification Logs",$_smarty_tpl->tpl_vars['MODULE']->value);?>
" data-url="<?php echo $_smarty_tpl->tpl_vars['CTPUSHNOTIFICATION_URL']->value;?>
"><a href="<?php echo $_smarty_tpl->tpl_vars['CTPUSHNOTIFICATION_URL']->value;?>
"><b><?php echo vtranslate("Notification Logs",$_smarty_tpl->tpl_vars['MODULE']->value);?>
</b><img src="layouts/vlayout/modules/CTMobileSettings/images/right-arrow.png" alt="Icon" class="dash_arrow "></a></p>
							</div>
						</div>
					</div>
				</article>


				

			</section>
		</div>
    </div>
	
</div>




<style>
	
#pinBoot {
  position: relative;
  max-width: 100%;
  width: 100%;
}

.white-panel {
  position: absolute;
  background: white;
  border-radius:5px;
  border:1px solid rgba(0,0,0,.125);
}

.white-panel h1 {
  font-size: 1em;
}
.white-panel h1 a {
  color: #A92733;
}
.white-panel:hover {
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
  margin-top: -5px;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
</style>
<script>
	$(document).ready(function() {
$('#pinBoot').pinterest_grid({
no_columns: 3,
padding_x: 10,
padding_y: 10,
margin_bottom: 50,
single_column_breakpoint: 900
});
});

;(function ($, window, document, undefined) {
    var pluginName = 'pinterest_grid',
        defaults = {
            padding_x: 10,
            padding_y: 10,
            no_columns: 3,
            margin_bottom: 50,
            single_column_breakpoint: 700
        },
        columns,
        $article,
        article_width;

    function Plugin(element, options) {
        this.element = element;
        this.options = $.extend({}, defaults, options) ;
        this._defaults = defaults;
        this._name = pluginName;
        this.init();
    }

    Plugin.prototype.init = function () {
        var self = this,
        resize_finish;
        self.make_layout_change(self);
    };

    Plugin.prototype.calculate = function (single_column_mode) {
        var self = this,
            tallest = 0,
            row = 0,
            $container = $(this.element),
            container_width = $container.width();
            $article = $(this.element).children();

        if(single_column_mode === true) {
            article_width = $container.width() - self.options.padding_x;
        } else {
            article_width = ($container.width() - self.options.padding_x * self.options.no_columns) / self.options.no_columns;
        }

        $article.each(function() {
            $(this).css('width', article_width);
        });

        columns = self.options.no_columns;

        $article.each(function(index) {
            var current_column,
                left_out = 0,
                top = 0,
                $this = $(this),
                prevAll = $this.prevAll(),
                tallest = 0;

            if(single_column_mode === false) {
                current_column = (index % columns);
            } else {
                current_column = 0;
            }

            for(var t = 0; t < columns; t++) {
                $this.removeClass('c'+t);
            }

            if(index % columns === 0) {
                row++;
            }

            $this.addClass('c' + current_column);
            $this.addClass('r' + row);

            prevAll.each(function(index) {
                if($(this).hasClass('c' + current_column)) {
                    top += $(this).outerHeight() + self.options.padding_y;
                }
            });

            if(single_column_mode === true) {
                left_out = 0;
            } else {
                left_out = (index % columns) * (article_width + self.options.padding_x);
            }

            $this.css({
                'left': left_out,
                'top' : top
            });
        });

        this.tallest($container);
        $(window).resize();
    };

    Plugin.prototype.tallest = function (_container) {
        var column_heights = [],
            largest = 0;

        for(var z = 0; z < columns; z++) {
            var temp_height = 0;
            _container.find('.c'+z).each(function() {
                temp_height += $(this).outerHeight();
            });
            column_heights[z] = temp_height;
        }

        largest = Math.max.apply(Math, column_heights);
        _container.css('height', largest + (this.options.padding_y + this.options.margin_bottom));
    };

    Plugin.prototype.make_layout_change = function (_self) {
        if($(window).width() < _self.options.single_column_breakpoint) {
            _self.calculate(true);
        } else {
            _self.calculate(false);
        }
    };

    $.fn[pluginName] = function (options) {
        return this.each(function () {
            if (!$.data(this, 'plugin_' + pluginName)) {
                $.data(this, 'plugin_' + pluginName,
                new Plugin(this, options));
            }
        });
    }

})(jQuery, window, document);
</script>

<!-- The Modal -->
  <div class="modal fade" id="updateCRMTigerModal" style="width: fit-content;
    max-height: fit-content;">
    <div class="modal-dialog modal-dialog-centered">
      <div class="modal-content">
      
        <!-- Modal Header -->
        <!-- <div class="modal-header">
          <h4 class="modal-title">Modal Heading</h4>
          <button type="button" class="close" data-dismiss="modal">×</button>
        </div> -->
        
        <!-- Modal body -->
        <div class="modal-body">
          <button type="button" title="Close" class="closebtn" data-dismiss="modal">X</button>
          <div class="tabs">
            <form>
                <p class="tabWrapper">
                	<label class="installHeadtext"><?php echo vtranslate('List of modules to install','CTMobileSetttings');?>
</label>
                	<label class="nextbtntxt"><?php echo vtranslate('Click Next >> button to install','CTMobileSetttings');?>
</label>
                	<input type="hidden" id="step" name="step" value="<?php echo $_smarty_tpl->tpl_vars['step']->value;?>
"/>
					<label class="containerCheck"><?php echo vtranslate('Download Extension','CTMobileSetttings');?>

                        <input type="checkbox" name="step0" id="step0" <?php if ($_smarty_tpl->tpl_vars['step']->value-1>=0){?> checked <?php }?>>
                        <span class="checkmark"></span>
                      </label>
                    <label class="containerCheck"><?php echo vtranslate('CRMTiger Mobile Extension','CTMobileSetttings');?>

                        <input type="checkbox" name="step1" id="step1" <?php if ($_smarty_tpl->tpl_vars['step']->value-1>=1){?> checked <?php }?>>
                        <span class="checkmark"></span>
                      </label>
                      <label class="containerCheck"><?php echo vtranslate('Mobile Time Tracker','CTMobileSetttings');?>

                        <input type="checkbox" name="step2" id="step2" <?php if ($_smarty_tpl->tpl_vars['step']->value-1>=2){?> checked <?php }?>>
                        <span class="checkmark"></span>
                      </label>
                      <label class="containerCheck"><?php echo vtranslate('Time tracker report','CTMobileSetttings');?>

                        <input type="checkbox" name="step3" id="step3" <?php if ($_smarty_tpl->tpl_vars['step']->value-1>=3){?> checked <?php }?>>
                        <span class="checkmark"></span>
                      </label>
                      <label class="containerCheck"><?php echo vtranslate('Route Planner','CTMobileSetttings');?>

                        <input type="checkbox" name="step4" id="step4" <?php if ($_smarty_tpl->tpl_vars['step']->value-1>=4){?> checked <?php }?>>
                        <span class="checkmark"></span>
                      </label>
                      <label class="containerCheck"><?php echo vtranslate('Route Tracking','CTMobileSetttings');?>

                        <input type="checkbox" name="step5" id="step5" <?php if ($_smarty_tpl->tpl_vars['step']->value-1>=5){?> checked <?php }?>>
                        <span class="checkmark"></span>
                      </label>
                      <label class="containerCheck"><?php echo vtranslate('Mobile Attendance','CTMobileSetttings');?>

                        <input type="checkbox" name="step6" id="step6" <?php if ($_smarty_tpl->tpl_vars['step']->value-1>=6){?> checked <?php }?>>
                        <span class="checkmark"></span>
                      </label>
                      <label class="containerCheck"><?php echo vtranslate('Key Metrics','CTMobileSetttings');?>

                        <input type="checkbox" name="step7" id="step7" <?php if ($_smarty_tpl->tpl_vars['step']->value-1>=7){?> checked <?php }?>>
                        <span class="checkmark"></span>
                      </label>
                      <label class="containerCheck"><?php echo vtranslate('SMS/Email Templates','CTMobileSetttings');?>

                        <input type="checkbox" name="step8" id="step8" <?php if ($_smarty_tpl->tpl_vars['step']->value-1>=8){?> checked <?php }?>>
                        <span class="checkmark"></span>
                      </label>  
                      <label class="containerCheck"><?php echo vtranslate('Mobile Push Notification','CTMobileSetttings');?>

                        <input type="checkbox" name="step9" id="step9" <?php if ($_smarty_tpl->tpl_vars['step']->value-1>=9){?> checked <?php }?>>
                        <span class="checkmark"></span>
                      </label>  
                      <label class="containerCheck"><?php echo vtranslate('CRMTiger Mobile App Settings','CTMobileSetttings');?>

                        <input type="checkbox" name="step10" id="step10" <?php if ($_smarty_tpl->tpl_vars['step']->value-1>=10){?> checked <?php }?>>
                        <span class="checkmark"></span>
                      </label>   
                </p>
              </form>
          </div>
          <div class="progressContain">
            <div class="progressbar-container">
                <button type="button" class="close" data-dismiss="modal">×</button>
                <p><?php echo vtranslate('View Installation Progress','CTMobileSetttings');?>
</p>
                <div class="progressbar-bar"><div class="progressbar-label"></div></div>
                <p class="progressContent"></p>
              </div>
              <div class="btnWrapper">
                <!-- <button type="button" class="btn btn-secondary btn-sm"><?php echo vtranslate('Cancel','CTMobileSetttings');?>
</button> -->
                <button type="button" id="nextbtn" class="btn btn-primary btn-sm"><?php if ($_smarty_tpl->tpl_vars['step']->value>=11){?><?php echo vtranslate('Finish','CTMobileSetttings');?>
 <?php }else{ ?> <?php echo vtranslate('Next','CTMobileSetttings');?>
 <?php }?></button>
               </div>

               <div class="installationinsdiv">
	            	<center><p><?php echo vtranslate('Issue in installation ?','CTMobileSetttings');?>
 <a style="color:#15c;" href="https://kb.crmtiger.com/knowledge-base/crmtiger-mobileapps-extensions/" target="_blank"><?php echo vtranslate('Click here','CTMobileSetttings');?>
</a> <?php echo vtranslate('to download extension','CTMobileSetttings');?>
</p>
	            	<p><?php echo vtranslate('OR','CTMobileSetttings');?>
</p>
	            	<p><a href="#" id="createTickets" style="color:#15c;"><?php echo vtranslate('Click here','CTMobileSetttings');?>
</a> <?php echo vtranslate('to send error','CTMobileSetttings');?>
</p></center>
	            </div>
          </div>
        </div>
        
      </div>
    </div>
  </div>


  <script>
    $(document).ready(function () {
  // get box count
  var count = 0;
  var checked = 0;
  function countBoxes() {
    count = $("input[type='checkbox']").length;
  }
  $("input[type='checkbox']").prop('disabled',true);
  countBoxes();
  $(":checkbox").click(countBoxes);

  // count checks

  function countChecked() {
    checked = $("input:checked").length;

    var percentage = parseInt((checked / count) * 100, 10);
    $(".progressbar-bar").progressbar({
      value: percentage
    });
    $(".progressbar-label").text(percentage + "%");
  }

  countChecked();
  $(":checkbox").click(countChecked);

  jQuery('#nextbtn').click(function(){

	  var step = parseInt(jQuery('#step').val());

	  if(step >= 11){
	  	 location.reload();
	  }else{
		  var progressIndicatorElement = jQuery.progressIndicator({
			'position' : 'html',
			'blockInfo' : {
				'enabled' : true
			}
		  });
		  var postData = {
			"module": 'CTMobileSettings',
			"action": 'StepAjax',
			"step": step
			};

			AppConnector.request(postData).then(function(response) {
					progressIndicatorElement.progressIndicator({'mode' : 'hide'});
					var step = parseInt(jQuery('#step').val());
					jQuery('#step'+step).prop('checked',true);
					countChecked();
					if(step+1 >= 11){
					   jQuery('#nextbtn').text('Finish');
					}
					jQuery('#step').val(step+1);	
				},
				function(error,err){
					
				}
			);
	  }
  });

  jQuery('#createTickets').click(function(){
  		var step = parseInt(jQuery('#step').val());
  		var progressIndicatorElement = jQuery.progressIndicator({
			'position' : 'html',
			'blockInfo' : {
				'enabled' : true
			}
		});
		var postData = {
			"module": 'CTMobileSettings',
			"action": 'CreateTickets',
			"step": step
			};

		AppConnector.request(postData).then(function(response) {
			progressIndicatorElement.progressIndicator({'mode' : 'hide'});
			var params = {
				title : app.vtranslate('success'),
				text: app.vtranslate('Error Sent successfully'),
				animation: 'show',
				type: 'success'
			};
			Vtiger_Helper_Js.showPnotify(params);
		});
  });


});



</script>
 
<?php }} ?>