<?php $__env->startSection('content'); ?>
	
    <p class="head_inner_nav">
        <a href="<?php echo URL::to('admin/offerings'); ?>">Offerings</a><span>></span> Signatures
    </p> 
    
	<h2>"<?php echo $offering->name; ?>" Offering - Signatures</h2>
		
	<table class="table table-bordered table-striped">
		<thead>
			<tr>
				<th class="text-center">ID</th>
				<th class="col-md-4">Email</th>
				<th class="text-center">Full name</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->email; ?></td>
				<td><?php echo $signature->firstname.' '.$signature->lastname; ?></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/offerings/'.$offering->offering_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(); ?>