<?php
$categories = $model->productMoneies;

	?>

<table
	class="table table-bordered table-striped table-summary  total-product-by-category">
	<thead>
		<tr>
			<th>Kategória</th>
			<th>Mennyiség</th>
			<th>Összeg</th>
		</tr>
	</thead>
	<tbody>
		<?php foreach ( $categories as $p){?>
							
							<tr>
			<td class='name'><?php echo $p['category_name'] ?></td>
			<td class='count'><?php echo $p['category_count'] ?> Db</td>
			<td class='money'><?php  echo \Yii::$app->formatter->asInteger( $p['product_money'])?> FT</td>
		</tr>
						
						<?php }?>
	</tbody>
</table>
<?php

?>
<div class="row">
	<div class="col-md-12 text-right" style="text-decoration: underline;">
		Összesen:
	    <?php
			echo \Yii::$app->formatter->asInteger( $model->productsByCategory ['total']);
		?> Ft
    </div>
</div>