<div class="item">
    <a href="<?php echo prep_url($brand->link) ?>">
        <div class="px-0 px-sm-2 hover-opacity brand_img" style="background-image:url(<?php echo base_url($brand->logo) ?>)"></div>
    </a>
</div>