<?php if (!empty($quotes)):?>
<table cellpadding = "0" cellspacing = "0" class="quotetable">
    <tr>
	<th><?php __('Revision'); ?></th>
	<th><?php __('Sale Currency'); ?></th>
	<th><?php __('Date / Time Created'); ?></th>

	<th class="actions"><?php __('Actions');?></th>
    </tr>
	<?php
	$i = 0;
	foreach ($quotes as $quote):
	    $class = null;

	    if ($i % 2 == 0) {
		$class = ' class="altrow"';
	    }
	    if($i == 0) {
		$class = ' class="mostrecent"';
	    }
	    $i++;
	    ?>
    <tr<?php echo $class;?>>
	<td><?php echo $quote['Document']['revision'];?></td>
	<td><?php echo $quote['Currency']['iso4217'];?></td>
	<td><?php echo $time->nice($quote['Quote']['created']);?></td>
	<td class="actions">

		    <?php echo $html->link(__('View', true), array('controller'=> 'documents', 'action'=>'view', $quote['Quote']['document_id'])); ?>
		    <?php echo $html->link(__('Revise', true), array('controller'=>'documents', 'action'=>'revise', $quote['Quote']['document_id']));
		    ?>


	</td>
    </tr>
	<?php endforeach; ?>
</table>
<?php endif; ?>

<div class="actions">
    <button class="addQuote" id="<?=$enquiry['Enquiry']['id'];?>">New Quote</button>
</div>

