

<a href="/admin/restaurant/settings/tables/add">+ Add Table</a>
<table>

	<tr>
		<th>Table name</th>
		<th>Guests</th>
		<th>Action</th>
		
	</tr>

		<?php foreach ($this->view->tables as $val): ?>
			<tr>

				<td><?php echo $val->name ?></td>
				<td><?php echo $val->number ?></td>
				<td>

					<a title="edit table" href="/admin/restaurant/settings/tables/edit/<?php echo $val->id  ?>"><?php echo $this->image('restaurant/img/edit-4.png', 'edit image') ?></a>&nbsp;
					<a onclick="return confirm('Delete this table?');" href="/admin/restaurant/settings/tables/delete/<?php echo $val->id ?>" title="delete"><?php echo $this->image('restaurant/img/edit-delete-2.png'); ?></a>


				</td>

			</tr>
		<?php endforeach; ?>


</table>
