<?php
use yii\base\Object;
use common\models\Ticket;
?>
<style>
.reception-tickets-container{
	max-height: 300px;
	overflow-y: auto;
}
</style>
<div class="reception-tickets-container">
<table class="table table-bordered table-striped">
	<?php $model = new Ticket() ;?>
	<thead>
	<tr>
	<th><?php echo $model->getAttributeLabel('id_ticket_type') ?></th>
	<th><?php echo $model->getAttributeLabel('start') ?></th>
	<th><?php echo $model->getAttributeLabel('end') ?></th>
	</tr>
	</thead>

		<?php if (isset($tickets)  && count($tickets) ) {?>
		<tbody>
		<?php foreach ($tickets  as $ticket){  ?>
			<tr>
				<td>
					<?php echo $ticket->ticketTypeName ?>
				</td>
				<td>
					<?php echo Yii::$app->formatter->asDate( $ticket->start ) ?>
				</td>
				<td>
					<?php echo Yii::$app->formatter->asDate( $ticket->end ) ?>
				</td>
			</tr>
		<?php }?>
		</tbody>
		<?php }?>

</table>
</div>