<?php
    $product_view = $this->getConfig('porto_settings/product');
    $block = $this->getLayout()->createBlock('Magento\Cms\Block\Block');
    if($block) {
        $block->setBlockId($product_view['side_custom_block']);
    }
    if($block){
        echo $block->toHtml();
    }
?>