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