Your IP : 216.73.216.224


Current Path : /var/www/html/administrator/modules/mod_mp_statistics/tmpl/
Upload File :
Current File : /var/www/html/administrator/modules/mod_mp_statistics/tmpl/default.php

<?php
/**
 * @package        Joomla
 * @subpackage     Membership Pro
 * @author         Tuan Pham Ngoc
 * @copyright      Copyright (C) 2012 - 2026 Ossolution Team
 * @license        GNU/GPL, see LICENSE.php
 */
defined('_JEXEC') or die ;

use Joomla\CMS\Language\Text;

/**
 * Layout variables
 *
 * @var array $data
 */

$config = OSMembershipHelper::getConfig();
?>
<table class="table table-striped table-bordered">
    <thead>
    <tr>
        <th class="title"><?php echo Text::_('OSM_TIME')?></th>
        <th class="center"><?php echo Text::_('OSM_NUMBER_SUBSCRIPTIONS')?></th>
        <th class="title"><?php echo Text::_('OSM_INCOME')?></th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td>
			<?php echo Text::_('OSM_TODAY'); ?>
        </td>
        <td class="center">
			<?php echo $data['today']['number_subscriptions']; ?>
        </td>
        <td>
			<?php echo OSMembershipHelper::formatCurrency($data['today']['total_amount'], $config) ?>
        </td>
    </tr>
    <tr>
        <td>
			<?php echo Text::_('OSM_YESTERDAY'); ?>
        </td>
        <td class="center">
			<?php echo $data['yesterday']['number_subscriptions']; ?>
        </td>
        <td>
			<?php echo OSMembershipHelper::formatCurrency($data['yesterday']['total_amount'], $config) ?>
        </td>
    </tr>
    <tr>
        <td>
			<?php echo Text::_('OSM_THIS_WEEK'); ?>
        </td>
        <td class="center">
			<?php echo $data['this_week']['number_subscriptions']; ?>
        </td>
        <td>
			<?php echo OSMembershipHelper::formatCurrency($data['this_week']['total_amount'], $config) ?>
        </td>
    </tr>

    <tr>
        <td>
			<?php echo Text::_('OSM_LAST_WEEK'); ?>
        </td>
        <td class="center">
			<?php echo $data['last_week']['number_subscriptions']; ?>
        </td>
        <td>
			<?php echo OSMembershipHelper::formatCurrency($data['last_week']['total_amount'], $config) ?>
        </td>
    </tr>
    <tr>
        <td>
			<?php echo Text::_('OSM_THIS_MONTH'); ?>
        </td>
        <td class="center">
			<?php echo $data['this_month']['number_subscriptions']; ?>
        </td>
        <td>
			<?php echo OSMembershipHelper::formatCurrency($data['this_month']['total_amount'], $config) ?>
        </td>
    </tr>
    <tr>
        <td>
			<?php echo Text::_('OSM_AVERAGE_DAY_THIS_MONTH'); ?>
        </td>
        <td class="center">
			<?php echo OSMembershipHelper::formatAmount($data['average_day_this_month']['number_subscriptions'], $config); ?>
        </td>
        <td>
			<?php echo OSMembershipHelper::formatCurrency($data['average_day_this_month']['total_amount'], $config) ?>
        </td>
    </tr>
    <tr>
        <td>
			<?php echo Text::_('OSM_PROJECTION_THIS_MONTH'); ?>
        </td>
        <td class="center">
			<?php echo OSMembershipHelper::formatAmount($data['projection_this_month']['number_subscriptions'], $config); ?>
        </td>
        <td>
			<?php echo OSMembershipHelper::formatCurrency($data['projection_this_month']['total_amount'], $config) ?>
        </td>
    </tr>
    <tr>
        <td>
			<?php echo Text::_('OSM_LAST_MONTH'); ?>
        </td>
        <td class="center">
			<?php echo $data['last_month']['number_subscriptions']; ?>
        </td>
        <td>
			<?php echo OSMembershipHelper::formatCurrency($data['last_month']['total_amount'], $config) ?>
        </td>
    </tr>
    <tr>
        <td>
			<?php echo Text::_('OSM_THIS_YEAR'); ?>
        </td>
        <td class="center">
			<?php echo $data['this_year']['number_subscriptions']; ?>
        </td>
        <td>
			<?php echo OSMembershipHelper::formatCurrency($data['this_year']['total_amount'], $config) ?>
        </td>
    </tr>
    <tr>
        <td>
			<?php echo Text::_('OSM_LAST_YEAR'); ?>
        </td>
        <td class="center">
			<?php echo $data['last_year']['number_subscriptions']; ?>
        </td>
        <td>
			<?php echo OSMembershipHelper::formatCurrency($data['last_year']['total_amount'], $config) ?>
        </td>
    </tr>
    <tr>
        <td>
			<?php echo Text::_('OSM_TOTAL_SUBSCRIPTIONS'); ?>
        </td>
        <td class="center">
			<?php echo $data['total_subscriptions']['number_subscriptions']; ?>
        </td>
        <td>
			<?php echo OSMembershipHelper::formatCurrency($data['total_subscriptions']['total_amount'], $config) ?>
        </td>
    </tr>
    <tr>
        <td>
			<?php echo Text::_('OSM_ACTIVE_SUBSCRIPTIONS'); ?>
        </td>
        <td class="center">
			<?php echo $data['active_subscriptions']['number_subscriptions']; ?>
        </td>
        <td>
			<?php echo OSMembershipHelper::formatCurrency($data['active_subscriptions']['total_amount'], $config) ?>
        </td>
    </tr>
    <tr>
        <td>
			<?php echo Text::_('OSM_ACTIVE_SUSCRIBERS'); ?>
        </td>
        <td class="center">
			<?php echo $data['active_subscribers']['number_subscriptions']; ?>
        </td>
        <td>
            &nbsp;
        </td>
    </tr>
    </tbody>
</table>