| 
									
										
										
										
											2015-08-29 22:03:42 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | <select id="{{ $name }}" name="{{ $name }}"> | 
					
						
							|  |  |  |     @foreach($options as $option) | 
					
						
							|  |  |  |         <option value="{{$option->id}}" | 
					
						
							|  |  |  |                 @if($errors->has($name)) class="neg" @endif | 
					
						
							| 
									
										
										
										
											2015-08-31 18:59:10 +08:00
										 |  |  |                 @if(isset($model) || old($name)) @if(old($name) && old($name) === $option->id) selected @elseif(isset($model) && $model->role->id === $option->id) selected @endif @endif | 
					
						
							| 
									
										
										
										
											2015-08-29 22:03:42 +08:00
										 |  |  |                 > | 
					
						
							| 
									
										
										
										
											2015-09-06 00:42:05 +08:00
										 |  |  |             {{ $option->display_name }} | 
					
						
							| 
									
										
										
										
											2015-08-29 22:03:42 +08:00
										 |  |  |         </option> | 
					
						
							|  |  |  |     @endforeach | 
					
						
							|  |  |  | </select> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @if($errors->has($name)) | 
					
						
							|  |  |  |     <div class="text-neg text-small">{{ $errors->first($name) }}</div> | 
					
						
							|  |  |  | @endif |