<?php
/**
 * Webkul Software.
 *
 * @category  Webkul
 * @package   Webkul_Agorae
 * @author    Webkul
 * @copyright Copyright (c) Webkul Software Private Limited (https://webkul.com)
 * @license   https://store.webkul.com/license.html
 */

// @codingStandardsIgnoreFile

/**
 * Seller Policies at seller profile page
 *
 * @var $block \Webkul\Marketplace\Block\Profile
 */
$viewModel = $block->getData("viewModel");
$moduleManager = $viewModel->getModuleManager();
if ($moduleManager->isOutputEnabled('Webkul_Marketplace')) {
$helper = $this->helper('Webkul\Agorae\Helper\Data');
$mpHelper = $this->helper('Webkul\Marketplace\Helper\Data');
$partner=$block->getProfileDetail();
if($mpHelper->getSellerPolicyApproval()){
?>
    <div class="wkag-contact-cont">
        <?php if($partner['return_policy'] != ''){ ?>
            <div class="sellerpolicy">
                <div class="wkagcontactheading">
                    <h1><?php echo __('Return Policy'); ?></h1>
                </div>
                <?php echo $partner['return_policy']; ?>
            </div>
        <?php } ?>
        <?php if($partner['shipping_policy'] != ''){ ?>
            <div class="sellerpolicy <?php if($partner['return_policy'] != ''){ echo "last" ; } ?>">
                <div class="wkagcontactheading">
                    <h1><?php echo __('Shipping Policy'); ?></h1>
                </div>
                <?php echo $partner['shipping_policy']; ?>
            </div>
        <?php } ?>
    </div>
<?php
}
} ?>