| 
									
										
										
										
											2021-07-05 22:49:51 +02:00
										 |  |  | @once | 
					
						
							| 
									
										
										
										
											2020-03-25 19:34:56 +01:00
										 |  |  | @push('componentScripts') | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | <script src="{{ $U('/viewjs/components/shoppinglocationpicker.js', true) }}?v={{ $version }}"></script> | 
					
						
							| 
									
										
										
										
											2020-03-25 19:34:56 +01:00
										 |  |  | @endpush | 
					
						
							| 
									
										
										
										
											2021-07-05 22:49:51 +02:00
										 |  |  | @endonce | 
					
						
							| 
									
										
										
										
											2020-03-25 19:34:56 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | @php if(empty($prefillByName)) { $prefillByName = ''; } @endphp | 
					
						
							|  |  |  | @php if(empty($prefillById)) { $prefillById = ''; } @endphp | 
					
						
							|  |  |  | @php if(!isset($isRequired)) { $isRequired = false; } @endphp | 
					
						
							|  |  |  | @php if(empty($hint)) { $hint = ''; } @endphp | 
					
						
							|  |  |  | @php if(empty($nextInputSelector)) { $nextInputSelector = ''; } @endphp | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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-09-14 11:20:29 +02:00
										 |  |  | 	<label for="shopping_location_id">{{ $__t($label) }}  <span @if(!empty($hintId))id="{{ $hintId }}" | 
					
						
							|  |  |  | 			@endif | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 			class="small text-muted">{{ $hint }}</span></label> | 
					
						
							|  |  |  | 	<select class="form-control shopping-location-combobox" | 
					
						
							|  |  |  | 		id="shopping_location_id" | 
					
						
							|  |  |  | 		name="shopping_location_id" | 
					
						
							|  |  |  | 		@if($isRequired) | 
					
						
							|  |  |  | 		required | 
					
						
							|  |  |  | 		@endif> | 
					
						
							| 
									
										
										
										
											2020-03-25 19:34:56 +01:00
										 |  |  | 		<option value=""></option> | 
					
						
							|  |  |  | 		@foreach($shoppinglocations as $shoppinglocation) | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 		<option value="{{ $shoppinglocation->id }}">{{ $shoppinglocation->name }}</option> | 
					
						
							| 
									
										
										
										
											2020-03-25 19:34:56 +01:00
										 |  |  | 		@endforeach | 
					
						
							|  |  |  | 	</select> | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 	<div class="invalid-feedback">{{ $__t('You have to select a store') }}</div> | 
					
						
							| 
									
										
										
										
											2020-03-25 19:34:56 +01:00
										 |  |  | </div> |