<?php $__env->startSection('content'); ?>
	
    <p class="head_inner_nav">
        <a href="<?php echo URL::to('admin/orders'); ?>">Orders</a><span>></span> Signatures
    </p> 
    
	<h2>Signatures</h2>
		
	<table class="table table-bordered table-striped">
		<thead>
			<tr>
				<th class="text-center">ID</th>
				<th class="text-center col-md-4">Full name</th>
            	<th class="text-center">User</th>
				<th class="text-center">Created</th>
				<th class="text-center" colspan="2">Actions</th>
			</tr>
		</thead>
		<tbody>
		<?php if($signatures): ?>
			<?php foreach($signatures as $signature): ?>
			<tr>
				<td class="text-center"><?php echo $signature->signature_id; ?></td>
				<td><?php echo $signature->full_name; ?></td>
              	<td><a href="<?php echo URL::to('admin/users/'.$signature->user_id.'/edit'); ?>"><?php echo $signature->email; ?></a></td>
				<td class="text-center"><?php echo date('M d, Y, g:ia',strtotime($signature->created_at)); ?></td>
				<td align="center"><a href="<?php echo URL::to('admin/orders/'.$signature->order_id.'/signatures/'.$signature->signature_id); ?>" title="Edit"><i class="glyphicon glyphicon-eye-open"></i></a></td>
			</tr>
			<?php endforeach; ?>
		<?php else: ?>
			<tr>
				<td colspan="6">No signatures yet.</td>
			</tr>
		<?php endif; ?>
		</tbody>
	</table>
    
    <?php echo $signatures->appends(array('query' => Input::get('query')))->links(); ?>
	
<?php $__env->stopSection(); ?>