	<?php 
					//////////////////////////
					// Termék eladás
					////////////////////////
				?>
				<h3>Termék eladások</h3>
				<table class="table table-bordered table-striped table-summary">
					<thead>
						<tr>
							<th>Kiadva</th>
							<th>Fizetve</th>
							<th>Kassza</th>
							<th>Felhasználó</th>
							<th>Kategória</th>
							<th>Termék</th>
							<th>Egység ár</th>
							<th>Mennyiség</th>
							<th>Összeg</th>
						</tr>
					</thead>
					<tbody>
				    	<?php foreach ($model->products as $p ){?>
				    	<tr>
			    						<td><?php echo $p['product_created_at']?> </td>
			    						<td><?php echo $p['product_paid_at']?> </td>
			    						<td><?php echo $p['account_name']?> </td>
			    						<td><?php echo $p['user_name']?> </td>
			    						<td><?php echo $p['product_category_name'] ?></td>
			    						<td><?php echo $p['product_name'] ?></td>
										<td class='money'><?php echo $p['product_item_price']?> Ft</td>
										<td class='count'><?php echo $p['product_count']?> Db</td>
										<td class='money'><?php echo \Yii::$app->formatter->asInteger( $p['product_money'])?> FT</td>
				    		
					    </tr>
				    	<?php } ?>
				</tbody>
				</table>
						<?php if ( count($model->products ) == 0 ) {
						?>
						Nincs találat
						<?php 
						}else{?>
						
						<div class="row">
			    			<div class="col-md-12 text-right" style="text-decoration: underline;">
			    				Összesen: <?php	echo \Yii::$app->formatter->asInteger( $model->productMoney);	?> Ft
			    			</div>
			    		</div>
						<?php 
						}
						?>