<select class="form-control select2" name="{{ $name ?? 'state' }}" id="state" placeHolder="--- Select State ---" @if( ! empty($required) )required="true"@endif>
    <option value="" label="--- select ---"{{ empty($state) ? 'selected="selected"' : '' }}>--- Select State ---</option>
    @foreach($states as $value => $text)
        <option value="{{ $value }}" label="{{ $text }}"{{ ($value == $state) ? ' selected="selected"' : '' }}>{{ $text }}</option>
    @endforeach
</select>
