<?= $this->extend('layouts/main.php') ?>

<?= $this->section('content') ?>
<div class='page-wrapper'>
	<div class="container-fluid">
		<div class="row page-titles mb-2">
			<div class="col align-self-center">
				<h4 class="text-themecolor">
					Kanban Board
				</h4>				
			</div>
		</div>
		<div class='input-group mb-2'>
			<select class='input-sm' onchange="document.location.href = this.value">
				<option value='#'>Select a board ...</option>
				<?php
				foreach($boards as $qdata) {
					$boardid = $qdata['boardid'];
					$boardname = $qdata['boardname'];
					echo "<option value='".base_url()."/kanban/view/$boardid'>$boardname</option>";
				}
				?>
			</select>
		</div>		
	</div>
</div>
<?= $this->endSection() ?>