<select
	name="{{ $name }}"
	@if (isset($id_name))id="{{ $id_name }}"@endif
	class="@if (isset($class)){{ $class }} @else form-control @endif"
	@if (isset($style))style="{{ $style }}" @endif
	@if (isset($required))required="required"@endif
	@if (isset($multiple))multiple="multiple"@endif
>

	@if (isset($list) && count($list))
		@foreach($list as $item)
			<option @if (isset($value) && ($item['id'] == $value)) selected @endif value="{{$item['id']}}">{{ $item['text'] }}</option>
		@endforeach
	@endif

</select>