<?php
/*
 * @package    ECLCDEK shipping plugin СДЭК to RadicalMart
 * @subpackage    ECLCDEK
 * @version    1.0.1
 * @author Econsult Lab.
 * @copyright  Copyright (c) 2025 Econsult Lab. All rights reserved.
 * @license    GNU/GPL license: https://www.gnu.org/copyleft/gpl.html
 * @link       https://econsultlab.ru
 */

use CdekSDK2\Dto\Tariff;
use Joomla\CMS\Language\Text;

extract($displayData);

/**
 * Layout variables
 * -----------------
 *
 * @var  Array   $address     	Данные адреса.
 * @var  string  $deliveryType     Тип доставки.
 * @var  Tariff  $tariff    Тариф доставки.
 *
 */

?>
<div class="card">
    <div class="card-body">
        <h5 class="card-title h4 mb2"><?php echo Text::_("PLG_RADICALMART_SHIPPING_ECLCDEK_CDEK_FROM_ADDRESS_CARD_TITLE");?></h5>
        <p class="card-text"><?php echo $address["formatted"]??"" ?></p>
    </div>
</div>
