<select name="state_id" class="form-control select2">
	<option value="">--Select--</option>
@foreach(\App\Models\State::orderBy('name','ASC')->get() as $state)
	<option value="{{$state->id}}" {{isset($selected_id) ? ($selected_id == $state->id ? 'selected' : '') : (old('state_id') == $state->id ? 'selected' : '')}}>{{$state->name}}</option>
@endforeach
</select>
