2018-07-14 14:43:57 +02:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								@ push ( 'componentScripts' )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									< script  src = " { {   $U ('/viewjs/components/productpicker.js', true) }}?v= { {   $version  }} " ></ script > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								@ endpush  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								@ php  if ( empty ( $disallowAddProductWorkflows ))  {  $disallowAddProductWorkflows  =  false ;  }  @ endphp  
						 
					
						
							
								
									
										
										
										
											2018-07-14 18:23:41 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								@ php  if ( empty ( $prefillByName ))  {  $prefillByName  =  '' ;  }  @ endphp  
						 
					
						
							
								
									
										
										
										
											2018-11-26 19:37:17 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								@ php  if ( empty ( $prefillById ))  {  $prefillById  =  '' ;  }  @ endphp  
						 
					
						
							
								
									
										
										
										
											2018-08-04 07:45:24 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								@ php  if ( ! isset ( $isRequired ))  {  $isRequired  =  true ;  }  @ endphp  
						 
					
						
							
								
									
										
										
										
											2018-07-14 14:43:57 +02:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-11-26 19:37:17 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< div  class = " form-group "  data - next - input - selector = " { {   $nextInputSelector  }} "  data - disallow - add - product - workflows = " { {  BoolToString( $disallowAddProductWorkflows ) }} "  data - prefill - by - name = " { {   $prefillByName  }} "  data - prefill - by - id = " { {   $prefillById  }} " >  
						 
					
						
							
								
									
										
										
										
											2019-05-01 20:19:18 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									< label  for = " product_id " > {{  $__t ( 'Product' )  }}  < i  class = " fas fa-barcode " ></ i >< span  id = " barcode-lookup-disabled-hint "  class = " small text-muted d-none " >  {{  $__t ( 'Barcode lookup is disabled' )  }} </ span ></ label > 
							 
						 
					
						
							
								
									
										
										
										
											2018-08-04 07:45:24 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									< select  class = " form-control product-combobox "  id = " product_id "  name = " product_id "  @ if ( $isRequired )  required  @ endif > 
							 
						 
					
						
							
								
									
										
										
										
											2018-07-14 14:43:57 +02:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										< option  value = " " ></ option > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										@ foreach ( $products  as  $product ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											< option  data - additional - searchdata = " { {   $product->barcode  }} "  value = " { {   $product->id  }} " > {{  $product -> name  }} </ option > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										@ endforeach 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									</ select > 
							 
						 
					
						
							
								
									
										
										
										
											2019-05-01 20:19:18 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									< div  class = " invalid-feedback " > {{  $__t ( 'You have to select a product' )  }} </ div > 
							 
						 
					
						
							
								
									
										
										
										
											2018-07-14 14:43:57 +02:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									< div  id = " custom-productpicker-error "  class = " form-text text-danger d-none " ></ div > 
							 
						 
					
						
							
								
									
										
										
										
											2019-05-01 20:19:18 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									< div  class = " form-text text-info small " > {{  $__t ( 'Type a new product name or barcode and hit TAB to start a workflow' )  }} </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									< div  id = " flow-info-addbarcodetoselection "  class = " form-text text-muted small d-none " >< strong >< span  id = " addbarcodetoselection " ></ span ></ strong >  {{  $__t ( 'will be added to the list of barcodes for the selected product on submit' )  }} </ div > 
							 
						 
					
						
							
								
									
										
										
										
											2018-07-14 14:43:57 +02:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								</ div >