<?php
/** 
 * @package     VikRentItems - Libraries
 * @subpackage  html.license
 * @author      E4J s.r.l.
 * @copyright   Copyright (C) 2025 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!');

$view = $displayData['view'];

$lookup = [
	'coupons' => [
		'title' => JText::translate('VRIMENUCOUPONS'),
		'desc'  => JText::translate('VRIFREECOUPONSDESCR'),
	],
	'crons' => [
		'title' => JText::translate('VRIMENUCRONS'),
		'desc'  => JText::translate('VRIFREECRONSDESCR'),
	],
	'customers' => [
		'title' => JText::translate('VRIMENUCUSTOMERS'),
		'desc'  => JText::translate('VRIFREECUSTOMERSDESCR'),
	],
	'optionals' => [
		'title' => JText::translate('VRMENUTENFIVE'),
		'desc'  => JText::translate('VRIFREEOPTIONSDESCR'),
	],
	'payments' => [
		'title' => JText::translate('VRMENUTENEIGHT'),
		'desc'  => JText::translate('VRIFREEPAYMENTSDESCR'),
	],
	'restrictions' => [
		'title' => JText::translate('VRMENURESTRICTIONS'),
		'desc'  => JText::translate('VRIFREERESTRSDESCR'),
	],
	'seasons' => [
		'title' => JText::translate('VRMENUTENSEVEN'),
		'desc'  => JText::translate('VRIFREESEASONSDESCR'),
	],
	'locfees' => [
		'title' => JText::translate('VRMENUTENSIX'),
		'desc'  => JText::translate('VRIFREELOCFEESDESCR'),
	],
];

if (!isset($lookup[$view]))
{
	return;
}

// set up toolbar title
JToolbarHelper::title('VikRentItems - ' . $lookup[$view]['title']);

if (empty($lookup[$view]['image']))
{
	// use the default logo image
	$lookup[$view]['image'] = 'vikwp_free_logo.png';
}

?>

<div class="vri-free-nonavail-wrap">

	<div class="vri-free-nonavail-inner">

		<div class="vri-free-nonavail-logo">
			<img src="<?php echo VRI_SITE_URI . 'resources/' . $lookup[$view]['image']; ?>" />
		</div>

		<div class="vri-free-nonavail-expl">
			<h3><?php echo $lookup[$view]['title']; ?></h3>

			<p class="vri-free-nonavail-descr"><?php echo $lookup[$view]['desc']; ?></p>
			
			<p class="vri-free-nonavail-footer-descr">
				<a href="admin.php?option=com_vikrentitems&amp;view=gotopro" class="btn vri-free-nonavail-gopro">
					<?php VikRentItemsIcons::e('rocket'); ?> <span><?php echo JText::translate('VRIGOTOPROBTN'); ?></span>
				</a>
			</p>
		</div>

	</div>

</div>