| 
									
										
										
										
											2021-07-05 22:49:51 +02:00
										 |  |  | @once | 
					
						
							| 
									
										
										
										
											2019-03-03 18:20:06 +01:00
										 |  |  | @push('componentScripts') | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | <script src="{{ $U('/viewjs/components/recipepicker.js', true) }}?v={{ $version }}"></script> | 
					
						
							| 
									
										
										
										
											2019-03-03 18:20:06 +01:00
										 |  |  | @endpush | 
					
						
							| 
									
										
										
										
											2021-07-05 22:49:51 +02:00
										 |  |  | @endonce | 
					
						
							| 
									
										
										
										
											2019-03-03 18:20:06 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | @php if(empty($prefillByName)) { $prefillByName = ''; } @endphp | 
					
						
							|  |  |  | @php if(empty($prefillById)) { $prefillById = ''; } @endphp | 
					
						
							|  |  |  | @php if(!isset($isRequired)) { $isRequired = true; } @endphp | 
					
						
							|  |  |  | @php if(empty($hint)) { $hint = ''; } @endphp | 
					
						
							| 
									
										
										
										
											2019-09-21 13:08:42 +02:00
										 |  |  | @php if(empty($nextInputSelector)) { $nextInputSelector = ''; } @endphp | 
					
						
							| 
									
										
										
										
											2019-03-03 18:20:06 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | <div class="form-group" | 
					
						
							|  |  |  | 	data-next-input-selector="{{ $nextInputSelector }}" | 
					
						
							|  |  |  | 	data-prefill-by-name="{{ $prefillByName }}" | 
					
						
							|  |  |  | 	data-prefill-by-id="{{ $prefillById }}"> | 
					
						
							| 
									
										
										
										
											2020-11-09 19:25:46 +01:00
										 |  |  | 	<label for="recipe_id">{{ $__t('Recipe') }} | 
					
						
							|  |  |  | 		@if(!empty($hint)) | 
					
						
							| 
									
										
										
										
											2020-11-15 15:23:47 +01:00
										 |  |  | 		<i class="fas fa-question-circle text-muted" | 
					
						
							| 
									
										
										
										
											2020-11-09 19:25:46 +01:00
										 |  |  | 			data-toggle="tooltip" | 
					
						
							| 
									
										
										
										
											2021-06-27 19:34:28 +02:00
										 |  |  | 			data-trigger="hover click" | 
					
						
							| 
									
										
										
										
											2020-11-09 19:25:46 +01:00
										 |  |  | 			title="{{ $hint }}"></i> | 
					
						
							|  |  |  | 		@endif | 
					
						
							|  |  |  | 	</label> | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 	<select class="form-control recipe-combobox" | 
					
						
							|  |  |  | 		id="recipe_id" | 
					
						
							|  |  |  | 		name="recipe_id" | 
					
						
							|  |  |  | 		@if($isRequired) | 
					
						
							|  |  |  | 		required | 
					
						
							|  |  |  | 		@endif> | 
					
						
							| 
									
										
										
										
											2019-03-03 18:20:06 +01:00
										 |  |  | 		<option value=""></option> | 
					
						
							|  |  |  | 		@foreach($recipes as $recipe) | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 		<option value="{{ $recipe->id }}">{{ $recipe->name }}</option> | 
					
						
							| 
									
										
										
										
											2019-03-03 18:20:06 +01:00
										 |  |  | 		@endforeach | 
					
						
							|  |  |  | 	</select> | 
					
						
							| 
									
										
										
										
											2019-05-01 20:19:18 +02:00
										 |  |  | 	<div class="invalid-feedback">{{ $__t('You have to select a recipe') }}</div> | 
					
						
							| 
									
										
										
										
											2019-03-03 18:20:06 +01:00
										 |  |  | </div> |