<?php
/** 
 * @package     VikRestaurants
 * @subpackage  core
 * @author      E4J s.r.l.
 * @copyright   Copyright (C) 2023 E4J s.r.l. All Rights Reserved.
 * @license     http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @link        https://vikwp.com
 */

// No direct access
defined('ABSPATH') or die('No script kiddies please!');

/**
 * Layout variables
 * -----------------
 * @var  object  $backup  The backup details object.
 */
extract($displayData);

?>

<div class="addon-order-summary">

    <!-- NAME -->

    <div class="addon-backup-date wide-row">
        <?php echo $backup->date; ?>
    </div>

    <!-- TYPE -->

    <div class="addon-backup-type">
        <span class="addon-order-label">
            <?php echo \JText::translate('VRE_BACKUP_CONFIG_TYPE_LABEL'); ?>
        </span>
        <span class="addon-order-value">
            <?php echo \JText::translate($backup->type->name); ?>
        </span>
    </div>

    <!-- SIZE -->

    <div class="addon-backup-size align-right">
        <span class="addon-order-label">
            <?php echo \JText::translate('VRMANAGEMEDIA13'); ?>
        </span>
        <span class="addon-order-value">
            <?php echo JHtml::fetch('number.bytes', $backup->size); ?>
        </span>
    </div>

</div>
