<select name="user_type_id" class="form-control select2">
	<option value="">--Select--</option>
	@if(isset($usertype))
	@foreach(\App\Models\UserType::admin()->get() as $type)
	<option value="{{$type->id}}" {{isset($selected_id) ? ($selected_id==$type->id ? 'selected' : '') :
		''}}>{{$type->name}}</option>
	@endforeach
	@else
	@foreach(\App\Models\UserType::orderBy('name')->get() as $type)
	<option value="{{$type->id}}" {{isset($selected_id) ? ($selected_id==$type->id ? 'selected' : '') :
		''}}>{{$type->name}}</option>
	@endforeach
	@endif

</select>