Your IP : 216.73.216.240


Current Path : /home/juvelize/www/plugins/icagenda/tickets/layouts/
Upload File :
Current File : /home/juvelize/www/plugins/icagenda/tickets/layouts/payment.php

<?php
/**
 *----------------------------------------------------------------------------
 * iCagenda     Plugin iCagenda - Tickets
 *----------------------------------------------------------------------------
 * @version     2.0.0 2024-02-12
 *
 * @package     iCagenda
 * @subpackage  Plugin.Icagenda.Tickets
 * @link        https://www.icagenda.com
 *
 * @author      Cyril Rezé
 * @copyright   (c) 2012-2024 Cyril Rezé / iCagenda. All rights reserved.
 * @license     GNU General Public License version 3 or later; see LICENSE.txt
 *
 * @since       1.0
 *----------------------------------------------------------------------------
*/

use Joomla\CMS\Factory as JFactory;
use Joomla\CMS\Language\Text as JText;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

// Event Registration Payment Options
$itemParams = $displayData['item']->params;

$ticket_price  = $itemParams->get('ticket_price', '0.00');			
$currency_code = $itemParams->get('currency_code', 'USD');			
$payment_info  = $itemParams->get('payment_process_info', '');			

// Registration Data
$regData = JFactory::getApplication()->getUserState('com_icagenda.registration.data', null);

$tickets = $regData['people'];			
$total   = ($tickets * $ticket_price);			
?>

<div class="ic-registration-actions">
	<?php if (count($displayData['actions'])) : ?>
	<div class="well ic-divTable">
		<div class="ic-divRow">
			<div class="ic-divCell ic-label">
				<?php echo JText::plural('PLG_ICAGENDA_TICKETS_ACTIONS_PAYMENT_TICKETS_LABEL', $tickets); ?>
			</div>
			<div class="ic-divCell ic-value">
				<?php echo $tickets; ?>
			</div>
		</div>	
		<div class="ic-divRow">
			<div class="ic-divCell ic-label">
				<?php echo JText::_('PLG_ICAGENDA_TICKETS_ACTIONS_PAYMENT_TOTAL_LABEL'); ?>
			</div>
			<div class="ic-divCell ic-value">
				<?php echo $total . ' ' . $currency_code; ?>
			</div>
		</div>	
	</div>
	<hr />
	<?php if ($payment_info) : ?>
		<div class="alert alert-info">
			<?php echo JText::_($payment_info); ?>
		</div>
	<?php endif; ?>
	<?php foreach ($displayData['actions'] as $payment) : ?>
		<div class="ic-box ic-box-white ic-rounded-4 ic-border-lightgrey">
			<?php echo $payment; ?>
		</div>
	<?php endforeach; ?>
	<br />
	<?php endif; ?>
</div>