{*
 **********************************************************
 * Developed by: Team Theme Metro
 * Website: http://www.thememetro.com
 **********************************************************
*}

{if $overdueinvoice}
    {include file="$template/includes/alert.tpl" type="warning" msg=$LANG.upgradeerroroverdueinvoice}
{elseif $existingupgradeinvoice}
    {include file="$template/includes/alert.tpl" type="warning" msg=$LANG.upgradeexistingupgradeinvoice}
{elseif $upgradenotavailable}
    {include file="$template/includes/alert.tpl" type="warning" msg=$LANG.upgradeNotPossible textcenter=true}
{/if}

{if $overdueinvoice}
{elseif $existingupgradeinvoice}
    <p>  <a href="submitticket.php" class="btn btn-default btn-lg">{$LANG.submitticketdescription}</a>  </p>
{elseif $upgradenotavailable}
    <p> <a href="submitticket.php" class="btn btn-default btn-lg">{$LANG.submitticketdescription}</a> </p>
{else}
    {*
	Mailhosting 			=> gid=1
	File Storage			=> gid=2
	Nextcloud Hosting		=> gid=3
	ThurVServer			> gid=4
	ThurVCloud 			=> gid=5
	Groupware Hosting		=> gid=7
	Mailhosting mit Nextcloud 	=> gid=8
    *}

HERE COMES THE MOUSE
{*


    if {$upgradepackages|@count > 0}
	{if $upgradepackages[0].gid === 1}
	    {include file="$template/thurdata/upgrade_mailhosting.tpl"}
	{elseif $upgradepackages[0].gid === 7}
	    {include file="$template/thurdata/upgrade_groupwarehosting.tpl"}
	{elseif $upgradepackages[0].gid === 4}
	    {include file="$template/thurdata/upgrade_thurvserver.tpl"}
	{else}
	    {include file="$template/thurdata/upgrade_default.tpl"}
	{/fi}
    {else}
        {include file="$template/thurdata/upgrade_default.tpl"}
    {fi}
*}
{/fi}

