<?php 
} else {
    echo $this->loadTemplate('partial_amount', compact('currency', 'amount'));
    ?>
							<?php 
}
?>
						</h2>
						
						<div class="pp-plan-time text-muted">
							&nbsp;<?php 
echo $plan->isRecurring() !== false ? XiText::_('COM_PAYPLANS_PLAN_PRICE_TIME_SEPERATOR') : XiText::_('COM_PAYPLANS_PLAN_PRICE_TIME_SEPERATOR_FOR');
?>
&nbsp;
							<?php 
echo PayplansHelperFormat::planTime($plan->getExpiration());
?>
						</div>
				</div>
			 </div>  
			 
			 
			 <!-- =========================================
				Plan Description
			 ========================================== --> 
			 
			<div class="pp-plan-description">
				<?php 
echo $plan->getDescription(true);
?>
			</div>
            $amountHtml = $this->loadTemplate('partial_amount', compact('currency', 'amount'));
            ?>
	
							
																<?php 
            if ($recurrence_count <= 0) {
                ?>
																	<span><?php 
                echo XiText::sprintf('COM_PAYPLANS_DASHBOARD_SUBSCRIPTION_CONFIRM_FIRST_RECURRENCE_COUNT_ZERO_RECURRENCE_COUNT', $amountHtml, PayplansHelperFormat::planTime($subscription->getExpiration(PAYPLANS_RECURRING)));
                ?>
</span>
																<?php 
            } else {
                ?>
																	<span><?php 
                echo XiText::sprintf('COM_PAYPLANS_DASHBOARD_SUBSCRIPTION_CONFIRM_FIRST_RECURRENCE_COUNT', $amountHtml, PayplansHelperFormat::planTime($subscription->getExpiration(PAYPLANS_RECURRING)), $recurrence_count);
                ?>
</span>
																<?php 
            }
        } else {
            $amount = $subscription->getTotal();
            echo $this->loadTemplate('partial_amount', compact('currency', 'amount'));
        }
        ?>
												</td>
											</tr>
											<tr>
												<td><?php 
        echo XiText::_('COM_PAYPLANS_DASHBOARD_SUBSCRIPTION_TIME');
        ?>
echo PayplansHelperFormat::planTime(PayplansHelperPlan::convertIntoTimeArray($pInstance->getRawExpiration()));
?>
			</option>
			
			<?php 
foreach ($time_price['price'] as $key => $value) {
    ?>
				<option value="<?php 
    echo $value . '_' . $time_price['time'][$key];
    ?>
">
					<?php 
    $amount = $value;
    echo $this->_render('partial_amount', compact('currency', 'amount'), 'default') . ' ';
    echo $pInstance->isRecurring() !== false ? XiText::_('COM_PAYPLANS_PLAN_PRICE_TIME_SEPERATOR') : XiText::_('COM_PAYPLANS_PLAN_PRICE_TIME_SEPERATOR_FOR');
    echo PayplansHelperFormat::planTime(PayplansHelperPlan::convertIntoTimeArray($time_price['time'][$key]));
    ?>
				</option>
			<?php 
}
?>
		</select>
	</div>
</div>
<script>
(function($){
	$(document).ready(function (){
		var plan_id = <?php 
echo $plan->plan_id;
?>
;
				<td class="col-sm-1"><input type="radio" name="pp-pricing-select-<?php 
    echo $plan_id;
    ?>
" slab="<?php 
    echo $slab_id;
    ?>
" childslab="<?php 
    echo $i;
    ?>
" units="<?php 
    echo $units;
    ?>
"></td>
				
				<td class="col-sm-3 text-left"><?php 
    echo PayplansHelperFormat::planTime(PayplansHelperPlan::convertIntoTimeArray($times[$i]));
    ?>
</td>
				
				<td class="col-sm-2 text-left">
						<?php 
    $amount = $prices[$i];
    $currency = PayplansHelperFormat::currency(XiFactory::getCurrency(XiFactory::getConfig()->currency, array(), 'symbol'));
    echo $this->_render('partial_amount', compact('currency', 'amount'), 'default');
    ?>
				</td>
				
				<td class="col-sm-2 text-left">
				<?php 
    $actualprices[$i] = isset($actualprices[$i]) ? $actualprices[$i] : 0;
    $actual = $amount = $units * $actualprices[$i];