</td>
			<td class="text-right pp-payment-header-price payable first-amount">
				<?php 
$amount = $total;
?>
				<?php 
echo $this->loadTemplate('partial_amount', compact('currency', 'amount'));
?>
			</td>
		</tr>

	</table>
	
	<div class="pp-gap-top10 pp-gap-bottom05">
		<?php 
if (XiFactory::getConfig()->enableDiscount) {
    ?>
				<?php 
    echo $this->loadTemplate('discount');
    ?>
	    <?php 
}
?>
		
		<?php 
$position = 'payplans_order_confirm_payment';
?>
		<?php 
echo $this->loadTemplate('partial_position', compact('plugin_result', 'position'));
?>
	</div>
							  			</strong>
			 						</span>
			 					</td>
					 		</tr>		 	  
		 			</tbody>
			 </table>
	 
	
		<!--  Notes Section -->
		<?php 
if (!empty(XiFactory::getConfig()->note)) {
    ?>
		<hr>
		<div class="alert alert-warning">
			<p><?php 
    echo XiFactory::getConfig()->note;
    ?>
</p>
		</div>
		<?php 
}
?>
</div>

<div class='clearfix'>
	<?php 
echo $this->loadTemplate('invoice_action');
?>
 
</div>
<?php

/**
* @copyright	Copyright (C) 2009 - 2015 Ready Bytes Software Labs Pvt. Ltd. All rights reserved.
* @license		http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
* @package		PayPlans
* @subpackage	Frontend
* @contact 		support+payplans@readybytes.in
* website		http://www.readybytes.net
* Technical Support : Forum -	http://www.readybytes.net/payplans/forum.html
*/
if (defined('_JEXEC') === false) {
    die;
}
?>

<?php 
//common css
//PayplansHtml::stylesheet(PAYPLANS_PATH_MEDIA.'/css/payplans.css');
if (XiFactory::getConfig()->rtl_support) {
    PayplansHtml::stylesheet(PAYPLANS_PATH_MEDIA . '/css/rtl.css');
}
// template specific css
PayplansHtml::stylesheet(dirname(__FILE__) . '/_media/css/site.css');
PayplansHtml::script(dirname(__FILE__) . '/_media/js/xi.core.js');
PayplansHtml::script(dirname(__FILE__) . '/_media/js/site.js');
				<?php 
    $actualprices[$i] = isset($actualprices[$i]) ? $actualprices[$i] : 0;
    $actual = $amount = $units * $actualprices[$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 
    $discounted = $amount = $units * $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 
    $amount = $actual - $discounted;
    $currency = PayplansHelperFormat::currency(XiFactory::getCurrency(XiFactory::getConfig()->currency, array(), 'symbol'));
    echo $this->_render('partial_amount', compact('currency', 'amount'), 'default');
    ?>
				</td>
		</tr>
	<?php 
}
?>
	</table>
</div>