<h1>Seats List</h1>

<table class="AllBoards">
<tr>
	<td>
		<?php include_partial('seller/horizontalBoard',array('board' => $boards[0]) );?>
		<br />
		<?php include_partial('seller/horizontalBoard',array('board' => $boards[1]) );?>
    <br />
		<?php include_partial('seller/horizontalBoard',array('board' => $boards[2]) );?>
    <br />
	</td>
	<td>
    <br /><br /><br /><br />
		<?php include_partial('seller/horizontalBoard',array('board' => $boards[3]) );?>
		<br />
		<?php include_partial('seller/horizontalBoard',array('board' => $boards[4]) );?>
	</td>
	<td>
		<?php include_partial('seller/horizontalBoard',array('board' => $boards[5]) );?>
		<br />
		<?php include_partial('seller/horizontalBoard',array('board' => $boards[6]) );?>
		<br />
		<?php include_partial('seller/horizontalBoard',array('board' => $boards[7]) );?>
	</td>
	<td>
		<?php include_partial('seller/verticalBoard',array('board' => $boards[8]) );?>
	</td>
</tr>
</table>


    <?php
    $zajete=0;
    $razem=0;
    foreach ($boards as $board)
    {
    	foreach($board->getSeats() as $seat)
    	{
    		  $razem++;
    	 if($seat->getSold())
          $zajete++;
    	}
    }
    ?>
<h2>Zajętych: <?php echo $zajete; ?>/<?php echo $razem; ?></h2>
