<div class="invoices view">
<h2><?php echo __('Invoice'); ?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($invoice['Invoice']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Subscription'); ?></dt>
		<dd>
			<?php echo $this->Html->link($invoice['Subscription']['id'], array('controller' => 'subscriptions', 'action' => 'view', $invoice['Subscription']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Created'); ?></dt>
		<dd>
			<?php echo h($invoice['Invoice']['created']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Invoiceperiod'); ?></dt>
		<dd>
			<?php echo h($invoice['Invoice']['invoiceperiod']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Network'); ?></dt>
		<dd>
			<?php echo $this->Html->link($invoice['Network']['title'], array('controller' => 'networks', 'action' => 'view', $invoice['Network']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Network Name'); ?></dt>
		<dd>
			<?php echo h($invoice['Invoice']['network_name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Profile'); ?></dt>
		<dd>
			<?php echo $this->Html->link($invoice['Profile']['id'], array('controller' => 'profiles', 'action' => 'view', $invoice['Profile']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('ProfileEmail'); ?></dt>
		<dd>
			<?php echo h($invoice['Invoice']['profileEmail']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('InvoiceninjaId'); ?></dt>
		<dd>
			<?php echo h($invoice['Invoice']['invoiceninjaId']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('ClientId'); ?></dt>
		<dd>
			<?php echo h($invoice['Invoice']['clientId']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Product'); ?></dt>
		<dd>
			<?php echo $this->Html->link($invoice['Product']['name'], array('controller' => 'products', 'action' => 'view', $invoice['Product']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('DisplayInvoiceId'); ?></dt>
		<dd>
			<?php echo h($invoice['Invoice']['displayInvoiceId']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('ServiceStartDate'); ?></dt>
		<dd>
			<?php echo h($invoice['Invoice']['serviceStartDate']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('ServiceEndDate'); ?></dt>
		<dd>
			<?php echo h($invoice['Invoice']['serviceEndDate']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Country'); ?></dt>
		<dd>
			<?php echo $this->Html->link($invoice['Country']['name'], array('controller' => 'countries', 'action' => 'view', $invoice['Country']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('PaymentGateway'); ?></dt>
		<dd>
			<?php echo h($invoice['Invoice']['paymentGateway']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('MonthlyFee'); ?></dt>
		<dd>
			<?php echo h($invoice['Invoice']['monthlyFee']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('UserCount'); ?></dt>
		<dd>
			<?php echo h($invoice['Invoice']['userCount']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('UsageFee'); ?></dt>
		<dd>
			<?php echo h($invoice['Invoice']['usageFee']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('LateFee'); ?></dt>
		<dd>
			<?php echo h($invoice['Invoice']['lateFee']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('PaidStatus'); ?></dt>
		<dd>
			<?php echo h($invoice['Invoice']['paidStatus']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('PaidAmount'); ?></dt>
		<dd>
			<?php echo h($invoice['Invoice']['paidAmount']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('PaidDate'); ?></dt>
		<dd>
			<?php echo h($invoice['Invoice']['paidDate']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('PaidBy'); ?></dt>
		<dd>
			<?php echo h($invoice['Invoice']['paidBy']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('BatchProcessDate'); ?></dt>
		<dd>
			<?php echo h($invoice['Invoice']['batchProcessDate']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Invoice'), array('action' => 'edit', $invoice['Invoice']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Invoice'), array('action' => 'delete', $invoice['Invoice']['id']), array('confirm' => __('Are you sure you want to delete # %s?', $invoice['Invoice']['id']))); ?> </li>
		<li><?php echo $this->Html->link(__('List Invoices'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Invoice'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Subscriptions'), array('controller' => 'subscriptions', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Subscription'), array('controller' => 'subscriptions', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Networks'), array('controller' => 'networks', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Network'), array('controller' => 'networks', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Profiles'), array('controller' => 'profiles', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Profile'), array('controller' => 'profiles', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Products'), array('controller' => 'products', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Product'), array('controller' => 'products', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Countries'), array('controller' => 'countries', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Country'), array('controller' => 'countries', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Sslpayments'), array('controller' => 'sslpayments', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Sslpayment'), array('controller' => 'sslpayments', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Sslpayments'); ?></h3>
	<?php if (!empty($invoice['Sslpayment'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Invoice Id'); ?></th>
		<th><?php echo __('Network Id'); ?></th>
		<th><?php echo __('Profile Id'); ?></th>
		<th><?php echo __('Status'); ?></th>
		<th><?php echo __('Order Amount'); ?></th>
		<th><?php echo __('Payment Amount'); ?></th>
		<th><?php echo __('Payment Due'); ?></th>
		<th><?php echo __('Currency'); ?></th>
		<th><?php echo __('Transaction Id'); ?></th>
		<th><?php echo __('Val Id'); ?></th>
		<th><?php echo __('Card Type'); ?></th>
		<th><?php echo __('Store Amount'); ?></th>
		<th><?php echo __('Card No'); ?></th>
		<th><?php echo __('Bank Tran Id'); ?></th>
		<th><?php echo __('Tran Date'); ?></th>
		<th><?php echo __('Card Issuer'); ?></th>
		<th><?php echo __('Card Brand'); ?></th>
		<th><?php echo __('Card Issuer Country'); ?></th>
		<th><?php echo __('Card Issuer Country Code'); ?></th>
		<th><?php echo __('Verify Sign'); ?></th>
		<th><?php echo __('Verify Key'); ?></th>
		<th><?php echo __('Currency Amount'); ?></th>
		<th><?php echo __('Currency Rate'); ?></th>
		<th><?php echo __('Base Fair'); ?></th>
		<th><?php echo __('Value A'); ?></th>
		<th><?php echo __('Value B'); ?></th>
		<th><?php echo __('Value C'); ?></th>
		<th><?php echo __('Value D'); ?></th>
		<th><?php echo __('Risk Level'); ?></th>
		<th><?php echo __('Risk Title'); ?></th>
		<th><?php echo __('Error'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($invoice['Sslpayment'] as $sslpayment): ?>
		<tr>
			<td><?php echo $sslpayment['id']; ?></td>
			<td><?php echo $sslpayment['invoice_id']; ?></td>
			<td><?php echo $sslpayment['network_id']; ?></td>
			<td><?php echo $sslpayment['profile_id']; ?></td>
			<td><?php echo $sslpayment['status']; ?></td>
			<td><?php echo $sslpayment['order_amount']; ?></td>
			<td><?php echo $sslpayment['payment_amount']; ?></td>
			<td><?php echo $sslpayment['payment_due']; ?></td>
			<td><?php echo $sslpayment['currency']; ?></td>
			<td><?php echo $sslpayment['transaction_id']; ?></td>
			<td><?php echo $sslpayment['val_id']; ?></td>
			<td><?php echo $sslpayment['card_type']; ?></td>
			<td><?php echo $sslpayment['store_amount']; ?></td>
			<td><?php echo $sslpayment['card_no']; ?></td>
			<td><?php echo $sslpayment['bank_tran_id']; ?></td>
			<td><?php echo $sslpayment['tran_date']; ?></td>
			<td><?php echo $sslpayment['card_issuer']; ?></td>
			<td><?php echo $sslpayment['card_brand']; ?></td>
			<td><?php echo $sslpayment['card_issuer_country']; ?></td>
			<td><?php echo $sslpayment['card_issuer_country_code']; ?></td>
			<td><?php echo $sslpayment['verify_sign']; ?></td>
			<td><?php echo $sslpayment['verify_key']; ?></td>
			<td><?php echo $sslpayment['currency_amount']; ?></td>
			<td><?php echo $sslpayment['currency_rate']; ?></td>
			<td><?php echo $sslpayment['base_fair']; ?></td>
			<td><?php echo $sslpayment['value_a']; ?></td>
			<td><?php echo $sslpayment['value_b']; ?></td>
			<td><?php echo $sslpayment['value_c']; ?></td>
			<td><?php echo $sslpayment['value_d']; ?></td>
			<td><?php echo $sslpayment['risk_level']; ?></td>
			<td><?php echo $sslpayment['risk_title']; ?></td>
			<td><?php echo $sslpayment['error']; ?></td>
			<td><?php echo $sslpayment['created']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'sslpayments', 'action' => 'view', $sslpayment['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'sslpayments', 'action' => 'edit', $sslpayment['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'sslpayments', 'action' => 'delete', $sslpayment['id']), array('confirm' => __('Are you sure you want to delete # %s?', $sslpayment['id']))); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Sslpayment'), array('controller' => 'sslpayments', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
