<div class="subscriptions view">
<h2><?php echo __('Subscription'); ?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($subscription['Subscription']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Profile'); ?></dt>
		<dd>
			<?php echo $this->Html->link($subscription['Profile']['id'], array('controller' => 'profiles', 'action' => 'view', $subscription['Profile']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('SubscriptionId'); ?></dt>
		<dd>
			<?php echo h($subscription['Subscription']['subscriptionId']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('CustomerId'); ?></dt>
		<dd>
			<?php echo h($subscription['Subscription']['customerId']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('StartDate'); ?></dt>
		<dd>
			<?php echo h($subscription['Subscription']['startDate']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('EndDate'); ?></dt>
		<dd>
			<?php echo h($subscription['Subscription']['endDate']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Invoice End Date'); ?></dt>
		<dd>
			<?php echo h($subscription['Subscription']['invoice_end_date']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Network'); ?></dt>
		<dd>
			<?php echo $this->Html->link($subscription['Network']['title'], array('controller' => 'networks', 'action' => 'view', $subscription['Network']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Product'); ?></dt>
		<dd>
			<?php echo $this->Html->link($subscription['Product']['name'], array('controller' => 'products', 'action' => 'view', $subscription['Product']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Userprofile'); ?></dt>
		<dd>
			<?php echo h($subscription['Subscription']['userprofile']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Status'); ?></dt>
		<dd>
			<?php echo h($subscription['Subscription']['status']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Auto Renew'); ?></dt>
		<dd>
			<?php echo h($subscription['Subscription']['auto_renew']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Created'); ?></dt>
		<dd>
			<?php echo h($subscription['Subscription']['created']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Modified'); ?></dt>
		<dd>
			<?php echo h($subscription['Subscription']['modified']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Subscription'), array('action' => 'edit', $subscription['Subscription']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Subscription'), array('action' => 'delete', $subscription['Subscription']['id']), array('confirm' => __('Are you sure you want to delete # %s?', $subscription['Subscription']['id']))); ?> </li>
		<li><?php echo $this->Html->link(__('List Subscriptions'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Subscription'), array('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 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 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 Invoices'), array('controller' => 'invoices', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Invoice'), array('controller' => 'invoices', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Invoices'); ?></h3>
	<?php if (!empty($subscription['Invoice'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Subscription Id'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Invoiceperiod'); ?></th>
		<th><?php echo __('Network Id'); ?></th>
		<th><?php echo __('Network Name'); ?></th>
		<th><?php echo __('Profile Id'); ?></th>
		<th><?php echo __('ProfileEmail'); ?></th>
		<th><?php echo __('InvoiceninjaId'); ?></th>
		<th><?php echo __('ClientId'); ?></th>
		<th><?php echo __('Product Id'); ?></th>
		<th><?php echo __('DisplayInvoiceId'); ?></th>
		<th><?php echo __('ServiceStartDate'); ?></th>
		<th><?php echo __('ServiceEndDate'); ?></th>
		<th><?php echo __('Country Id'); ?></th>
		<th><?php echo __('PaymentGateway'); ?></th>
		<th><?php echo __('MonthlyFee'); ?></th>
		<th><?php echo __('UserCount'); ?></th>
		<th><?php echo __('UsageFee'); ?></th>
		<th><?php echo __('LateFee'); ?></th>
		<th><?php echo __('PaidStatus'); ?></th>
		<th><?php echo __('PaidAmount'); ?></th>
		<th><?php echo __('PaidDate'); ?></th>
		<th><?php echo __('PaidBy'); ?></th>
		<th><?php echo __('BatchProcessDate'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($subscription['Invoice'] as $invoice): ?>
		<tr>
			<td><?php echo $invoice['id']; ?></td>
			<td><?php echo $invoice['subscription_id']; ?></td>
			<td><?php echo $invoice['created']; ?></td>
			<td><?php echo $invoice['invoiceperiod']; ?></td>
			<td><?php echo $invoice['network_id']; ?></td>
			<td><?php echo $invoice['network_name']; ?></td>
			<td><?php echo $invoice['profile_id']; ?></td>
			<td><?php echo $invoice['profileEmail']; ?></td>
			<td><?php echo $invoice['invoiceninjaId']; ?></td>
			<td><?php echo $invoice['clientId']; ?></td>
			<td><?php echo $invoice['product_id']; ?></td>
			<td><?php echo $invoice['displayInvoiceId']; ?></td>
			<td><?php echo $invoice['serviceStartDate']; ?></td>
			<td><?php echo $invoice['serviceEndDate']; ?></td>
			<td><?php echo $invoice['country_id']; ?></td>
			<td><?php echo $invoice['paymentGateway']; ?></td>
			<td><?php echo $invoice['monthlyFee']; ?></td>
			<td><?php echo $invoice['userCount']; ?></td>
			<td><?php echo $invoice['usageFee']; ?></td>
			<td><?php echo $invoice['lateFee']; ?></td>
			<td><?php echo $invoice['paidStatus']; ?></td>
			<td><?php echo $invoice['paidAmount']; ?></td>
			<td><?php echo $invoice['paidDate']; ?></td>
			<td><?php echo $invoice['paidBy']; ?></td>
			<td><?php echo $invoice['batchProcessDate']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'invoices', 'action' => 'view', $invoice['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'invoices', 'action' => 'edit', $invoice['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'invoices', 'action' => 'delete', $invoice['id']), array('confirm' => __('Are you sure you want to delete # %s?', $invoice['id']))); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Invoice'), array('controller' => 'invoices', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Networks'); ?></h3>
	<?php if (!empty($subscription['Network'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('Title'); ?></th>
		<th><?php echo __('Language Id'); ?></th>
		<th><?php echo __('Category Id'); ?></th>
		<th><?php echo __('Accesskey'); ?></th>
		<th><?php echo __('Skill Id'); ?></th>
		<th><?php echo __('Country Id'); ?></th>
		<th><?php echo __('AboutNetwork'); ?></th>
		<th><?php echo __('NetworkObjective'); ?></th>
		<th><?php echo __('Description'); ?></th>
		<th><?php echo __('Ext'); ?></th>
		<th><?php echo __('Link1'); ?></th>
		<th><?php echo __('Link2'); ?></th>
		<th><?php echo __('Network Web'); ?></th>
		<th><?php echo __('Randomkey'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Status'); ?></th>
		<th><?php echo __('Join Status'); ?></th>
		<th><?php echo __('Subscription Status'); ?></th>
		<th><?php echo __('Product Id'); ?></th>
		<th><?php echo __('Subscription Id'); ?></th>
		<th><?php echo __('Subscription Enddate'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($subscription['Network'] as $network): ?>
		<tr>
			<td><?php echo $network['id']; ?></td>
			<td><?php echo $network['user_id']; ?></td>
			<td><?php echo $network['title']; ?></td>
			<td><?php echo $network['language_id']; ?></td>
			<td><?php echo $network['category_id']; ?></td>
			<td><?php echo $network['accesskey']; ?></td>
			<td><?php echo $network['skill_id']; ?></td>
			<td><?php echo $network['country_id']; ?></td>
			<td><?php echo $network['aboutNetwork']; ?></td>
			<td><?php echo $network['networkObjective']; ?></td>
			<td><?php echo $network['description']; ?></td>
			<td><?php echo $network['ext']; ?></td>
			<td><?php echo $network['link1']; ?></td>
			<td><?php echo $network['link2']; ?></td>
			<td><?php echo $network['network_web']; ?></td>
			<td><?php echo $network['randomkey']; ?></td>
			<td><?php echo $network['created']; ?></td>
			<td><?php echo $network['status']; ?></td>
			<td><?php echo $network['join_status']; ?></td>
			<td><?php echo $network['subscription_status']; ?></td>
			<td><?php echo $network['product_id']; ?></td>
			<td><?php echo $network['subscription_id']; ?></td>
			<td><?php echo $network['subscription_enddate']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'networks', 'action' => 'view', $network['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'networks', 'action' => 'edit', $network['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'networks', 'action' => 'delete', $network['id']), array('confirm' => __('Are you sure you want to delete # %s?', $network['id']))); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Network'), array('controller' => 'networks', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
