<?php if(!empty($sql_log)): ?>
	<table>
		<tr>
			<th>No.</th>
			<th>Query</th>
			<th>Bindings</th>
			<th>Time</th>
		</tr>
		<?php foreach($sql_log as $key => $log): ?>
			<tr>
				<td><?php echo e($key+1); ?></td>
				<td><pre class="prettyprint languague-sql"><?php echo e($log['query']); ?></pre></td>
				<td>
				<?php foreach($log['bindings'] as $k => $binding): ?>
					<?php if(is_object($binding) || is_array($binding)): ?>
						<?php $binding = print_r($binding, true); ?>
					<?php endif; ?>
					<?php if($k != count($log['bindings'])-1): ?>
						<?php echo e($binding); ?>,
					<?php else: ?>
						<?php echo e($binding); ?>
					<?php endif; ?>
				<?php endforeach; ?>
				</td>
				<td><?php echo e($log['time']); ?></td>
			</tr>
		<?php endforeach; ?>
	</table>
<?php else: ?>
	<span class="anbu-empty">There have been no SQL queries executed.</span>
<?php endif; ?>