echo XiText::_('COM_PAYPLANS_PAYMENT_ERROR_MSG');
?>
		</h4>
		
		<div>
			<?php 
echo XiText::_('COM_PAYPLANS_PAYMENT_ERROR_TRY_TO');
?>
			<a class="pp-button" href="<?php 
echo XiRoute::_('index.php?option=com_payplans&view=plan&task=subscribe');
?>
">
				<?php 
echo XiText::_('COM_PAYPLANS_PAYMENT_ERROR_SUBSCRIBE_AGAIN');
?>
			</a>
		</div>
		<p>
			<?php 
echo implode("\n", $appCompleteHtml);
?>
			<?php 
echo XiText::_('COM_PAYPLANS_PAYMENT_ERROR_CONTACT_TO_ADMIN');
?>
			<?php 
echo PayplansHtml::_('email.link', XiText::_('COM_PAYPLANS_ELEMENT_EMAIL'));
?>
		</p>
		
	</div>
?>
" 			placeholder="shipping state">
                 		</div>
               		</div>
               		<div class="row form-group control-group">
                  		<div class="controls col-sm-5">
                          <input type="text" class="required form-control"  name=paysealShippingZip 			value="<?php 
echo $user->shipping_zip;
?>
"				placeholder="shipping zip code">   
                 		</div>
               		</div>
			  	  	<div class="row form-group control-group">
			  	  		<div class="controls col-sm-5">
						<?php 
echo PayplansHtml::_('country.edit', 'paysealShippingCountryAlpha', $user->shipping_country_alpha, array('option_none' => true, 'style' => 'class="form-control"'), 'isocode3');
?>
     	  	  			</div>
     	  	  		</div>
		  	 </fieldset>
	  	 </div>

		  	  	<input type="hidden" name=order_id 		value=<?php 
echo $order_id;
?>
>
		  	  	<input type="hidden" name=customer_ip 	value=<?php 
echo $customer_ip;
?>
>
		  	  	<input type="hidden" name=invoice_id 	value=<?php 
		    </div>
		      <div class="controls col-sm-5"><input type="text" class="required form-control" name="state" id="eway_state" value="<?php 
echo $CustomerState;
?>
"></div>
        </div>
        
		<div class="row form-group control-group">
			<div class="col-sm-4">
		      <div class="control-label"><?php 
echo XiText::_('COM_PAYPLANS_PAYMENT_APP_EWAY_COUNRTY');
?>
</div>
		    </div>
		      <div class="controls col-sm-5"><?php 
echo PayplansHtml::_('country.edit', 'country', null, array('option_none' => true, 'style' => 'class="required form-control"'), 'isocode2');
?>
</div>
        </div>

        <div class="row form-group control-group">
        	<div class="col-sm-4">
		      <div class="control-label"><?php 
echo XiText::_('COM_PAYPLANS_PAYMENT_APP_EWAY_ZIP_CODE');
?>
</div>
		    </div>
		      <div class="controls col-sm-5"><input type="text" class="required form-control" name="zip" id="eway_zip" value="<?php 
echo $CustomerPostCode;
?>
"></div>
/**
* @copyright	Copyright (C) 2009 - 2009 Ready Bytes Software Labs Pvt. Ltd. All rights reserved.
* @license		GNU/GPL, see LICENSE.php
* @package		PayPlans
* @subpackage	Frontend
* @contact 		shyam@readybytes.in
*/
if (defined('_JEXEC') === false) {
    die;
}
?>
<script src="<?php 
echo PayplansHelperUtils::pathFS2URL(dirname(__FILE__) . DS . 'basictax.js');
?>
" type="text/javascript"></script>
<div class="row">
	<div class="col-xs-6">
		<?php 
echo XiText::_("COM_PAYPLANS_ENTER_TAX_INFORMATION");
?>
*
	</div>

	<div class="col-xs-6" >
		<?php 
echo PayplansHtml::_('country.edit', 'app_basictax_country_id', $country, array('option_none' => true, 'style' => 'class="input-medium img-responsive form-control"'));
?>
		<span id="app-tax-apply-error" class="error" style="display:none;">&nbsp;</span>
	</div>
</div>
			<div class="col-sm-6 col-xs-12">
				<span class="pp-payment-method">
					<?php 
if (!$invoice->isRecurring() && floatval(0) == floatval($total)) {
    ?>
							<?php 
    echo XiText::_('COM_PAYPLANS_ORDER_NO_PAYMENT_METHOD_NEEDED');
    ?>
					<?php 
} else {
    ?>
							<?php 
    if (count($payment_apps) > 1) {
        ?>
								<?php 
        echo PayplansHtml::_('select.genericlist', $payment_apps, 'app_id', 'class=" form-control img-responsive input-medium"', 'id', 'title');
        ?>
							<?php 
    } else {
        $gateway = array_shift($payment_apps);
        echo $gateway['title'] . '<input type="hidden" name="app_id" value="' . $gateway['id'] . '">';
        ?>
							<?php 
    }
    ?>
					<?php 
}
?>
				</span>	
			</div>
	</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');
           		<div class="control-label"><label class="required"><?php 
echo XiText::_('COM_PAYPLANS_PAYMENT_APP_EBS_SHIPPING_STATE');
?>
</label></div>
           	</div>
          <div class="controls col-sm-5"><input type="text" class="required form-control" name="ship_state" value=""/></div>
        </div>
         <div class="row form-group control-group">
         	<div class="col-sm-4">
           		<div class="control-label"><label class="required"><?php 
echo XiText::_('COM_PAYPLANS_PAYMENT_APP_EBS_SHIPPING_COUNRTY');
?>
</label></div>
           	</div>
          <div class="required controls col-sm-5"><?php 
echo PayplansHtml::_('country.edit', 'ship_country', 'AFG', array('style' => 'class="form-control"'), 'isocode3');
?>
</div>				
       </div>
         <div class="row form-group control-group">
         	<div class="col-sm-4">
           		<div class="control-label"><label class="required"><?php 
echo XiText::_('COM_PAYPLANS_PAYMENT_APP_EBS_SHIPPING_POSTAL_CODE');
?>
</label></div>
           	</div>
          <div class="controls col-sm-5"><input type="text" class="required form-control" name="ship_postal_code" value=""/></div>
        </div>

        <div class="row form-group control-group">
        	<div class="col-sm-4">
	
	<div class="form-group control-group">
		<div class="col-xs-6">
			<div class="pp-title" id="euvat_purpose">
				<?php 
echo XiText::_("COM_PAYPLANS_EUVAT_USE_PURPOSE");
?>
			</div>
		</div>
		<div class="col-xs-6">
			<?php 
$options = array();
$options[] = PayplansHtml::_('select.option', 0, XiText::_('COM_PAYPLANS_APP_EUVAT_USE_PURPOSE_SELECT'));
$options[] = PayplansHtml::_('select.option', PLG_EUVAT_PURPOSE_PERSONAL, XiText::_('COM_PAYPLANS_APP_EUVAT_USE_PURPOSE_PERSONAL'));
$options[] = PayplansHtml::_('select.option', PLG_EUVAT_PURPOSE_BUSINESS, XiText::_('COM_PAYPLANS_APP_EUVAT_USE_PURPOSE_BUSINESS'));
echo PayplansHtml::_('select.genericlist', $options, 'app_euvat_use_purpose', 'class="input-medium img-responsive form-control"', 'value', 'text', $purpose);
?>
			<span id="app-euvat-use-purpose-error" class="text-error hide" ></span>
		</div>
	</div>
	
	
	<div class="form-group control-group eu-vat-buisness-fields <?php 
echo $purpose == PLG_EUVAT_PURPOSE_PERSONAL ? 'hide' : '';
?>
">
		<div class = "col-xs-6" id="euvat_business_name_label" >
				<?php 
echo XiText::_("COM_PAYPLANS_EUVAT_BUSINESS_NAME");
?>
		</div>
    foreach ($invoices as $record) {
        if (is_a($record, 'PayplansInvoice')) {
            $invoice = $record;
        } else {
            $invoice = PayplansInvoice::getInstance($record->invoice_id, null, $record);
        }
        $count++;
        ?>
			<tr>
					<td><?php 
        echo $count;
        ?>
.</td>
					<td class='hidden-xs'>
						<?php 
        echo PayplansHtml::link(XiRoute::_('index.php?option=com_payplans&view=invoice&task=display&invoice_key=' . $invoice->getKey()), $invoice->getKey());
        ?>
					</td>
					<td >
						<?php 
        $currency = $invoice->getCurrency();
        $amount = $invoice->getTotal();
        echo $this->loadTemplate('partial_amount', compact('currency', 'amount'));
        ?>
											   
					</td>
					
					<td class='hidden-xs'>
						<?php 
        echo $invoice->getStatusName();
        ?>