<!-- Select2 bugou -->
<select class="form-control js-example-basic-multiple" name="<?php e($name); ?>[]" multiple="multiple">
    <?php foreach($select as $key => $sel){ ?>
    <optgroup label="<?php e($key); ?>">
        <?php foreach($sel as $chave => $opt){ ?>
        <option value="<?php e($chave); ?>"><?php e($opt); ?></option>
        <?php } ?>
    </optgroup>
    <?php } ?>
</select>