<div class="freightForwarders view">
<h2><?php  __('FreightForwarder');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $freightForwarder['FreightForwarder']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $freightForwarder['FreightForwarder']['name']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Edit FreightForwarder', true), array('action' => 'edit', $freightForwarder['FreightForwarder']['id'])); ?> </li>
		<li><?php echo $html->link(__('Delete FreightForwarder', true), array('action' => 'delete', $freightForwarder['FreightForwarder']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $freightForwarder['FreightForwarder']['id'])); ?> </li>
		<li><?php echo $html->link(__('List FreightForwarders', true), array('action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New FreightForwarder', true), array('action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Shipments', true), array('controller' => 'shipments', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Shipment', true), array('controller' => 'shipments', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Freight Services', true), array('controller' => 'freight_services', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Freight Service', true), array('controller' => 'freight_services', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Shipments');?></h3>
	<?php if (!empty($freightForwarder['Shipment'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Box Count'); ?></th>
		<th><?php __('Shipment Invoice Count'); ?></th>
		<th><?php __('Freight Forwarder Id'); ?></th>
		<th><?php __('Address Id'); ?></th>
		<th><?php __('Customer Id'); ?></th>
		<th><?php __('Type'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Date Arrived'); ?></th>
		<th><?php __('Date Dispatched'); ?></th>
		<th><?php __('Airway Bill'); ?></th>
		<th><?php __('Comments'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($freightForwarder['Shipment'] as $shipment):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $shipment['id'];?></td>
			<td><?php echo $shipment['box_count'];?></td>
			<td><?php echo $shipment['shipment_invoice_count'];?></td>
			<td><?php echo $shipment['freight_forwarder_id'];?></td>
			<td><?php echo $shipment['address_id'];?></td>
			<td><?php echo $shipment['customer_id'];?></td>
			<td><?php echo $shipment['type'];?></td>
			<td><?php echo $shipment['created'];?></td>
			<td><?php echo $shipment['date_arrived'];?></td>
			<td><?php echo $shipment['date_dispatched'];?></td>
			<td><?php echo $shipment['airway_bill'];?></td>
			<td><?php echo $shipment['comments'];?></td>
			<td class="actions">
				<?php echo $html->link(__('View', true), array('controller' => 'shipments', 'action' => 'view', $shipment['id'])); ?>
				<?php echo $html->link(__('Edit', true), array('controller' => 'shipments', 'action' => 'edit', $shipment['id'])); ?>
				<?php echo $html->link(__('Delete', true), array('controller' => 'shipments', 'action' => 'delete', $shipment['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $shipment['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $html->link(__('New Shipment', true), array('controller' => 'shipments', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Freight Services');?></h3>
	<?php if (!empty($freightForwarder['FreightService'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Freight Forwarder Id'); ?></th>
		<th><?php __('Name'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($freightForwarder['FreightService'] as $freightService):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $freightService['id'];?></td>
			<td><?php echo $freightService['freight_forwarder_id'];?></td>
			<td><?php echo $freightService['name'];?></td>
			<td class="actions">
				<?php echo $html->link(__('View', true), array('controller' => 'freight_services', 'action' => 'view', $freightService['id'])); ?>
				<?php echo $html->link(__('Edit', true), array('controller' => 'freight_services', 'action' => 'edit', $freightService['id'])); ?>
				<?php echo $html->link(__('Delete', true), array('controller' => 'freight_services', 'action' => 'delete', $freightService['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $freightService['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $html->link(__('New Freight Service', true), array('controller' => 'freight_services', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
