2018-04-11 19:49:35 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								@ extends ( 'layout.default' )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-05-01 20:19:18 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								@ section ( 'title' ,  $__t ( 'Consume' ))  
						 
					
						
							
								
									
										
										
										
											2018-04-12 21:13:38 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								@ section ( 'activeNav' ,  'consume' )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								@ section ( 'viewJsName' ,  'consume' )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-04-11 19:49:35 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								@ section ( 'content' )  
						 
					
						
							
								
									
										
										
										
											2018-07-10 20:37:13 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< div  class = " row " >  
						 
					
						
							
								
									
										
										
										
											2018-07-12 19:12:31 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									< div  class = " col-xs-12 col-md-6 col-xl-4 pb-3 " > 
							 
						 
					
						
							
								
									
										
										
										
											2018-07-10 20:37:13 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										< h1 >@ yield ( 'title' ) </ h1 > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-07-11 19:43:05 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										< form  id = " consume-form "  novalidate > 
							 
						 
					
						
							
								
									
										
										
										
											2018-07-10 20:37:13 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-07-14 14:43:57 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											@ include ( 'components.productpicker' ,  array ( 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												'products'  =>  $products , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												'nextInputSelector'  =>  '#amount' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												'disallowAddProductWorkflows'  =>  true 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											)) 
							 
						 
					
						
							
								
									
										
										
										
											2018-07-10 20:37:13 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-08 12:04:31 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											@ include ( 'components.numberpicker' ,  array ( 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												'id'  =>  'amount' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												'label'  =>  'Amount' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												'hintId'  =>  'amount_qu_unit' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												'min'  =>  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2019-12-19 12:48:36 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												'value'  =>  0 , 
							 
						 
					
						
							
								
									
										
										
										
											2019-05-01 20:19:18 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												'invalidFeedback'  =>  $__t ( 'The amount cannot be lower than %s' ,  '1' ), 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												'additionalHtmlContextHelp'  =>  '<div id="tare-weight-handling-info" class="text-info font-italic d-none">'  .  $__t ( 'Tare weight handling enabled - please weigh the whole container, the amount to be posted will be automatically calculcated' )  .  '</div>' 
							 
						 
					
						
							
								
									
										
										
										
											2018-09-08 12:04:31 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											)) 
							 
						 
					
						
							
								
									
										
										
										
											2018-07-10 20:37:13 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-12-19 12:48:36 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											@ if ( GROCY_FEATURE_FLAG_STOCK_LOCATION_TRACKING ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                        @ php  /*@ include ( 'components.locationpicker' ,  array ( 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                'id'  =>  'location_id' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                'locations'  =>  $locations , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                'isRequired'  =>  true , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                'label'  =>  'Location' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                        )) */  @ endphp 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                        < div  class = " form-group " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                < label  for = " location_id " > {{  $__t ( 'Location' )  }} </ label > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                < select  required  class = " form-control location-combobox "  id = " location_id "  name = " location_id " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                        < option ></ option > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                        @ foreach ( $locations  as  $location ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                                < option  value = " { {   $location->id  }} " > {{  $location -> name  }} </ option > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                        @ endforeach 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                </ select > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                < div  class = " invalid-feedback " > {{  $__t ( 'A location is required' )  }} </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                        </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											@ else 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											< input  type = " hidden "  name = " location_id "  id = " location_id "  value = " 1 " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											@ endif 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-11-17 17:51:35 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											< div  class = " form-group " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												< label  for = " use_specific_stock_entry " > 
							 
						 
					
						
							
								
									
										
										
										
											2019-05-01 20:19:18 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
													< input  type = " checkbox "  id = " use_specific_stock_entry "  name = " use_specific_stock_entry " >  {{  $__t ( 'Use a specific stock item' )  }} 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													< span  class = " small text-muted " > {{  $__t ( 'The first item in this list would be picked by the default rule which is "First expiring first, then first in first out"' )  }} </ span > 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-17 17:51:35 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												</ label > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												< select  disabled  class = " form-control "  id = " specific_stock_entry "  name = " specific_stock_entry " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													< option ></ option > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												</ select > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											</ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-07-10 20:37:13 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											< div  class = " checkbox " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												< label  for = " spoiled " > 
							 
						 
					
						
							
								
									
										
										
										
											2019-05-01 20:19:18 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
													< input  type = " checkbox "  id = " spoiled "  name = " spoiled " >  {{  $__t ( 'Spoiled' )  }} 
							 
						 
					
						
							
								
									
										
										
										
											2018-07-10 20:37:13 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												</ label > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											</ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-03-03 18:20:06 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											@ if  ( GROCY_FEATURE_FLAG_RECIPES ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											@ include ( 'components.recipepicker' ,  array ( 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												'recipes'  =>  $recipes , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												'isRequired'  =>  false , 
							 
						 
					
						
							
								
									
										
										
										
											2019-05-01 20:19:18 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												'hint'  =>  $__t ( 'This is for statistical purposes only' ) 
							 
						 
					
						
							
								
									
										
										
										
											2019-03-03 18:20:06 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											)) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											@ endif 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-05-01 20:19:18 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											< button  id = " save-consume-button "  class = " btn btn-success " > {{  $__t ( 'OK' )  }} </ button > 
							 
						 
					
						
							
								
									
										
										
										
											2019-09-19 17:46:52 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											@ if ( GROCY_FEATURE_FLAG_STOCK_PRODUCT_OPENED_TRACKING ) 
							 
						 
					
						
							
								
									
										
										
										
											2019-05-01 20:19:18 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											< button  id = " save-mark-as-open-button "  class = " btn btn-secondary " > {{  $__t ( 'Mark as opened' )  }} </ button > 
							 
						 
					
						
							
								
									
										
										
										
											2019-09-19 17:46:52 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											@ endif 
							 
						 
					
						
							
								
									
										
										
										
											2018-07-10 20:37:13 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</ form > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									</ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-09-20 13:37:53 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									< div  class = " col-xs-12 col-md-6 col-xl-4 hide-when-embedded " > 
							 
						 
					
						
							
								
									
										
										
										
											2018-07-10 20:37:13 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										@ include ( 'components.productcard' ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									</ div > 
							 
						 
					
						
							
								
									
										
										
										
											2017-04-19 21:09:28 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								</ div >  
						 
					
						
							
								
									
										
										
										
											2018-04-11 19:49:35 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								@ stop