<table width="100%">
	<thead>
		<tr>
			<th>Id</th>
			<th>Provider</th>
			<th>Exam</th>
			<th>Date</th>
		</tr>
	</thead>
	<tbody>
		<?php foreach($audits as $audit): ?>
		<tr>
			<td><?php echo $audit->id; ?></td>
			<td>
				<a href="#" onclick="openModal('modal', '<?php echo URL::to('audits/' . $audit->id . '/provider'); ?>')">
    				<?php echo $audit->user_id; ?>
				</a>
			</td>
			<td>
				<a href="#" onclick="openModal('modal', '<?php echo URL::to('audits/' . $audit->id . '/exam'); ?>')">
				<?php echo $audit->exam_id; ?>
				</a>
			</td>
			<td><?php echo $audit->created_at; ?></td>
		</tr>
		<?php endforeach; ?>
	</tbody>
</table>

<div class="pagination-centered">
	<?php echo $audits->appends(Illuminate\Support\Facades\Input::except('page'))->links(); ?>
</div>

<div id="modal" class="reveal-modal" data-reveal></div>