__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* @package DPCalendar
* @copyright Copyright (C) 2024 Digital Peak GmbH. <https://www.digital-peak.com>
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
*/
\defined('_JEXEC') or die();
use DigitalPeak\Component\DPCalendar\Administrator\Helper\DPCalendarHelper;
if ($this->originalEvent === null || !$this->originalEvent->events_discount) {
return;
}
?>
<div class="dp-booking-info__discount-events dp-info-box">
<?php foreach ($this->originalEvent->events_discount as $discount) { ?>
<div class="dp-events-discount">
<span class="dp-events-discount__label">
<?php echo $discount->label ?: sprintf($this->translate('COM_DPCALENDAR_VIEW_EVENT_MULTIPLE_EVENTS_DISCOUNT_TEXT'), $discount->amount); ?>
</span>
<span class="dp-events-discount__content">
<?php echo $discount->type == 'value' ? DPCalendarHelper::renderPrice($discount->value) : $discount->value . '%'; ?>
</span>
<span class="dp-events-discount__description">
<?php echo $discount->description; ?>
</span>
</div>
<?php } ?>
</div>