mirror of
				https://github.com/grocy/grocy.git
				synced 2025-10-31 10:46:36 +00:00 
			
		
		
		
	
		
			
	
	
		
			32 lines
		
	
	
		
			765 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
		
		
			
		
	
	
			32 lines
		
	
	
		
			765 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
|   | <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main"> | ||
|  | 	<h1 class="page-header">Dashboard</h1> | ||
|  | 
 | ||
|  | 	<h3>Current stock</h3> | ||
|  | 	<div class="table-responsive"> | ||
|  | 		<table class="table table-striped"> | ||
|  | 			<thead> | ||
|  | 				<tr> | ||
|  | 					<th>Product</th> | ||
|  | 					<th>Amount</th> | ||
|  | 					<th>Next best before date</th> | ||
|  | 				</tr> | ||
|  | 			</thead> | ||
|  | 			<tbody> | ||
|  | 				<?php foreach ($currentStock as $currentStockEntry) : ?>
 | ||
|  | 				<tr> | ||
|  | 					<td> | ||
|  | 						<?php echo Grocy::FindObjectInArrayByPropertyValue($products, 'id', $currentStockEntry->product_id)->name; ?>
 | ||
|  | 					</td> | ||
|  | 					<td> | ||
|  | 						<?php echo $currentStockEntry->amount; ?>
 | ||
|  | 					</td> | ||
|  | 					<td> | ||
|  | 						<?php echo $currentStockEntry->best_before_date; ?>
 | ||
|  | 					</td> | ||
|  | 				</tr> | ||
|  | 				<?php endforeach; ?>
 | ||
|  | 			</tbody> | ||
|  | 		</table> | ||
|  | 	</div> | ||
|  | </div> |