2018-11-21 19:08:36 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								@ extends ( 'layout.default' )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-05-01 20:19:18 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								@ section ( 'title' ,  $__t ( 'Stock settings' ))  
						 
					
						
							
								
									
										
										
										
											2018-11-21 19:08:36 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								@ section ( 'viewJsName' ,  'stocksettings' )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								@ section ( 'content' )  
						 
					
						
							
								
									
										
										
										
											2020-04-19 08:51:02 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< div  class = " row " >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									< div  class = " col " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										< h2  class = " title " >@ yield ( 'title' ) </ h2 > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										< hr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									</ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								</ div >  
						 
					
						
							
								
									
										
										
										
											2018-11-21 19:08:36 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								< div  class = " row " >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									< div  class = " col-lg-6 col-xs-12 " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										< div  id = " productpresets " > 
							 
						 
					
						
							
								
									
										
										
										
											2019-05-01 20:19:18 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											< h4 > {{  $__t ( 'Presets for new products' )  }} </ h4 > 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-21 19:08:36 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-09-19 17:46:52 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											@ if ( GROCY_FEATURE_FLAG_STOCK_LOCATION_TRACKING ) 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-21 19:08:36 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
											< div  class = " form-group " > 
							 
						 
					
						
							
								
									
										
										
										
											2019-05-01 20:19:18 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												< label  for = " product_presets_location_id " > {{  $__t ( 'Location' )  }} </ label > 
							 
						 
					
						
							
								
									
										
										
										
											2020-08-31 20:32:50 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												< select  class = " form-control user-setting-control " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													id = " product_presets_location_id " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													data - setting - key = " product_presets_location_id " > 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-21 19:08:36 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
													< option  value = " -1 " ></ option > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													@ foreach ( $locations  as  $location ) 
							 
						 
					
						
							
								
									
										
										
										
											2020-08-31 20:32:50 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
													< option  value = " { {   $location->id  }} " > {{  $location -> name  }} </ option > 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-21 19:08:36 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
													@ endforeach 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												</ select > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											</ div > 
							 
						 
					
						
							
								
									
										
										
										
											2019-09-19 17:46:52 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											@ endif 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-21 19:08:36 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											< div  class = " form-group " > 
							 
						 
					
						
							
								
									
										
										
										
											2019-05-01 20:19:18 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												< label  for = " product_presets_product_group_id " > {{  $__t ( 'Product group' )  }} </ label > 
							 
						 
					
						
							
								
									
										
										
										
											2020-08-31 20:32:50 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												< select  class = " form-control user-setting-control " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													id = " product_presets_product_group_id " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													data - setting - key = " product_presets_product_group_id " > 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-21 19:08:36 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
													< option  value = " -1 " ></ option > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													@ foreach ( $productGroups  as  $productGroup ) 
							 
						 
					
						
							
								
									
										
										
										
											2020-08-31 20:32:50 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
													< option  value = " { {   $productGroup->id  }} " > {{  $productGroup -> name  }} </ option > 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-21 19:08:36 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
													@ endforeach 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												</ select > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											</ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											< div  class = " form-group " > 
							 
						 
					
						
							
								
									
										
										
										
											2019-05-01 20:19:18 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												< label  for = " product_presets_qu_id " > {{  $__t ( 'Quantity unit' )  }} </ label > 
							 
						 
					
						
							
								
									
										
										
										
											2020-08-31 20:32:50 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												< select  class = " form-control user-setting-control " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													id = " product_presets_qu_id " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													data - setting - key = " product_presets_qu_id " > 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-21 19:08:36 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
													< option  value = " -1 " ></ option > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													@ foreach ( $quantityunits  as  $quantityunit ) 
							 
						 
					
						
							
								
									
										
										
										
											2020-08-31 20:32:50 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
													< option  value = " { {   $quantityunit->id  }} " > {{  $quantityunit -> name  }} </ option > 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-21 19:08:36 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
													@ endforeach 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												</ select > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											</ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-05-01 20:19:18 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										< h4  class = " mt-2 " > {{  $__t ( 'Stock overview' )  }} </ h4 > 
							 
						 
					
						
							
								
									
										
										
										
											2019-04-20 15:30:45 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										@ include ( 'components.numberpicker' ,  array ( 
							 
						 
					
						
							
								
									
										
										
										
											2020-10-18 06:57:10 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										'id'  =>  'stock_expiring_soon_days' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										'additionalAttributes'  =>  'data-setting-key="stock_expiring_soon_days"' , 
							 
						 
					
						
							
								
									
										
										
										
											2020-08-31 20:32:50 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										'label'  =>  'Expiring soon days' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										'min'  =>  1 , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										'invalidFeedback'  =>  $__t ( 'This cannot be lower than %s' ,  '1' ), 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										'additionalCssClasses'  =>  'user-setting-control' 
							 
						 
					
						
							
								
									
										
										
										
											2019-04-20 15:30:45 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										)) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-05-04 13:19:34 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										< h4  class = " mt-2 " > {{  $__t ( 'Purchase' )  }} </ h4 > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										@ include ( 'components.numberpicker' ,  array ( 
							 
						 
					
						
							
								
									
										
										
										
											2020-08-31 20:32:50 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										'id'  =>  'stock_default_purchase_amount' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										'additionalAttributes'  =>  'data-setting-key="stock_default_purchase_amount"' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										'label'  =>  'Default amount for purchase' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										'min'  =>  0 , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										'invalidFeedback'  =>  $__t ( 'This cannot be lower than %s' ,  '1' ), 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										'additionalCssClasses'  =>  'user-setting-control' 
							 
						 
					
						
							
								
									
										
										
										
											2019-05-04 13:19:34 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										)) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										< h4  class = " mt-2 " > {{  $__t ( 'Consume' )  }} </ h4 > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										@ include ( 'components.numberpicker' ,  array ( 
							 
						 
					
						
							
								
									
										
										
										
											2020-08-31 20:32:50 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										'id'  =>  'stock_default_consume_amount' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										'additionalAttributes'  =>  'data-setting-key="stock_default_consume_amount"' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										'label'  =>  'Default amount for consume' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										'min'  =>  1 , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										'invalidFeedback'  =>  $__t ( 'This cannot be lower than %s' ,  '1' ), 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										'additionalCssClasses'  =>  'user-setting-control' 
							 
						 
					
						
							
								
									
										
										
										
											2019-05-04 13:19:34 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										)) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2020-04-13 18:47:41 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										< div  class = " form-group " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											< div  class = " checkbox " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												< label  for = " show_icon_on_stock_overview_page_when_product_is_on_shopping_list " > 
							 
						 
					
						
							
								
									
										
										
										
											2020-08-31 20:32:50 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
													< input  type = " checkbox " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														class = " user-setting-control " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														id = " show_icon_on_stock_overview_page_when_product_is_on_shopping_list " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														data - setting - key = " show_icon_on_stock_overview_page_when_product_is_on_shopping_list " >  {{  $__t ( 'Show an icon if the product is already on the shopping list' )  }} 
							 
						 
					
						
							
								
									
										
										
										
											2020-04-13 18:47:41 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												</ label > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											</ div > 
							 
						 
					
						
							
								
									
										
										
										
											2020-10-17 03:54:10 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											< div  class = " checkbox " > 
							 
						 
					
						
							
								
									
										
										
										
											2020-10-17 11:03:47 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												< label  for = " show_purchased_date_on_purchase " > 
							 
						 
					
						
							
								
									
										
										
										
											2020-10-17 03:54:10 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
													< input  type = " checkbox " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														class = " user-setting-control " 
							 
						 
					
						
							
								
									
										
										
										
											2020-10-17 11:03:47 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
														id = " show_purchased_date_on_purchase " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														data - setting - key = " show_purchased_date_on_purchase " >  {{  $__t ( 'Show purchased date on purchase form (otherwise the purchased date defaults to today)' )  }} 
							 
						 
					
						
							
								
									
										
										
										
											2020-10-17 03:54:10 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												</ label > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											</ div > 
							 
						 
					
						
							
								
									
										
										
										
											2020-04-13 18:47:41 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2020-08-31 20:32:50 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										< a  href = " { {   $U ('/stockoverview') }} " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											class = " btn btn-success " > {{  $__t ( 'OK' )  }} </ a > 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-21 19:08:36 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									</ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								</ div >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								@ stop