?>
												</td>
											</tr>
											<tr>
												<td><?php 
        echo XiText::_('COM_PAYPLANS_DASHBOARD_SUBSCRIPTION_TIME');
        ?>
</td>
												<td>
													<span>
													<?php 
        if ($subscription->getExpirationDate()->toString() != null) {
            ?>
					
													  	<?php 
            echo '<em>' . PayplansHelperFormat::date($subscription->getSubscriptionDate()) . '</em> <span class="separator" style="text-transform: capitalize;font-weight: bold;">&nbsp;' . XiText::_('COM_PAYPLANS_ORDER_SUBSCRIPTIONS_TO') . '</span> ' . '<em>' . PayplansHelperFormat::date($subscription->getExpirationDate()) . '</em>';
            ?>
														<?php 
        } elseif ($subscription->getSubscriptionDate()->toString() == null) {
            ?>
														 		<?php 
            echo XiText::_('COM_PAYPLANS_ORDER_SUBSCRIPTION_NOT_ACTIVATED');
            ?>
														<?php 
        } else {
            ?>
													  	 		<?php 
            echo XiText::_('COM_PAYPLANS_ORDER_SUBSCRIPTION_TIME_LIFETIME');
            ?>
												  		<?php 
        }
<?php

/**
* @copyright	Copyright (C) 2009 - 2015 Ready Bytes Software Labs Pvt. Ltd. All rights reserved.
* @license		GNU/GPL, see LICENSE.php
* @package		PayPlans
* @subpackage	Frontend
* @contact 		support+payplans@readybytes.in
*/
if (defined('_JEXEC') === false) {
    die;
}
$invoice_key = $invoice->getKey();
$created_date = PayplansHelperFormat::date($invoice->getCreatedDate());
//get paid-on date from wallet entry
$modification_date = PayplansHelperFormat::date($invoice->getPaidDate());
$payment = $invoice->getPayment();
$currency = $invoice->getCurrency();
// status of invoice
$class = '';
switch ($invoice->getStatus()) {
    case PayplansStatus::INVOICE_CONFIRMED:
        $class = 'label-danger';
        break;
    case PayplansStatus::INVOICE_PAID:
        $class = 'label-success';
        break;
    case PayplansStatus::INVOICE_REFUNDED:
        $class = 'label-default';
        break;
    default: