{if $mac eq null}
<h3>Line Access</h3>
<div class="row">
    <table class="table">
        <tr>
            <td>Line Username</td>
            <td>{$moduleParams.username|htmlentities}</td>
        </tr>
        <tr>
            <td>Line Password</td>
            <td>{$moduleParams.password|htmlentities}</td>
        </tr>
		<tr>
            <td>Server URL for Smarters and other players<br>/Not for Samsung and LG/</td>
            <td>{$domain}</td>
        </tr>
    </table>
</div>
{else}
<h3>MAG Devices Portal Access</h3>

<div class="row">
    <table class="table">
        <tr>
            <td>MAG Device MAC Address</td>
            <td>{$mac}</td>
        </tr>
        <tr>
            <td>MAG Portal URL</td>
            <td>http://tv66.club</td>
        </tr>
    </table>
</div>
{/if}

<h3>Download Playlist</h3>

<div class="row">
    <table class="table">
        <tr>
            <td>M3U with Options - HLS <br>/best option for kodi/</td>
            <td><input type="text" class="form-control" id="m3uplus" value="{$domain|htmlentities}/get.php?username={$moduleParams.username|htmlentities}&password={$moduleParams.password|htmlentities}&type=m3u_plus&output=m3u8"></td>
        </tr>
        <tr>
            <td>M3U with Options - MPEGTS <br>/best option for Smart IPTV, GSE and other apps/</td>
            <td><input type="text" class="form-control" id="m3uplus" value="{$domain|htmlentities}/get.php?username={$moduleParams.username|htmlentities}&password={$moduleParams.password|htmlentities}&type=m3u_plus&output=ts"></td>
        </tr>
<br>
        <tr>
            <td>EPG Link</td>
            <td><input type="text" class="form-control" id="epg" value="{$domain|htmlentities}/xmltv.php?username={$moduleParams.username|htmlentities}&password={$moduleParams.password|htmlentities}"></td>
        </tr>
<br>

		<tr>
            <td>M3U - HLS</td>
            <td><input type="text" class="form-control" id="vlc" value="{$domain|htmlentities}/get.php?username={$moduleParams.username|htmlentities}&password={$moduleParams.password|htmlentities}&type=m3u&output=m3u8"></td>
        </tr>
        <tr>
            <td>M3U - MPEGTS <br>/best option for VLC/</td>
            <td><input type="text" class="form-control" id="vlv" value="{$domain|htmlentities}/get.php?username={$moduleParams.username|htmlentities}&password={$moduleParams.password|htmlentities}&type=m3u&output=ts"></td>
        </tr>
        <tr>
            <td>WebTV List - HLS</td>
            <td><input type="text" class="form-control" id="webtv" value="{$domain|htmlentities}/get.php?username={$moduleParams.username|htmlentities}&password={$moduleParams.password|htmlentities}&type=webtvlist&output=m3u8"></td>
        </tr>
        <tr>
            <td>WebTV List - MPEGTS</td>
            <td><input type="text" class="form-control" id="webtv" value="{$domain|htmlentities}/get.php?username={$moduleParams.username|htmlentities}&password={$moduleParams.password|htmlentities}&type=webtvlist&output=ts"></td>
        </tr>
        <tr>
            <td>Enigma 2 Auto-Script with user Bouqets</td>
            <td><input type="text" class="form-control" id="e2oe16" value="wget -O /etc/enigma2/setup_iptv.sh '{$domain|htmlentities}/play/enigma-setup-script?username={$moduleParams.username|htmlentities}&password={$moduleParams.password|htmlentities}&type=m3u_plus&output=ts&python=2&keep_old_bouquets=1' && chmod 777 /etc/enigma2/setup_iptv.sh && /etc/enigma2/setup_iptv.sh">
</td>
        </tr>
    </table>
</div>

<br>
<br>

<h3>{$LANG.clientareaproductdetails}</h3>

<hr>

<div class="row">
    <div class="col-sm-5">
        {$LANG.clientareahostingregdate}
    </div>
    <div class="col-sm-7">
        {$regdate}
    </div>
</div>

<div class="row">
    <div class="col-sm-5">
        {$LANG.orderproduct}
    </div>
    <div class="col-sm-7">
        {$groupname} - {$product}
    </div>
</div>

{if $type eq "server"}
    {if $domain}
        <div class="row">
            <div class="col-sm-5">
                {$LANG.serverhostname}
            </div>
            <div class="col-sm-7">
                {$domain}
            </div>
        </div>
    {/if}
    {if $dedicatedip}
        <div class="row">
            <div class="col-sm-5">
                {$LANG.primaryIP}
            </div>
            <div class="col-sm-7">
                {$dedicatedip}
            </div>
        </div>
    {/if}
    {if $assignedips}
        <div class="row">
            <div class="col-sm-5">
                {$LANG.assignedIPs}
            </div>
            <div class="col-sm-7">
                {$assignedips|nl2br}
            </div>
        </div>
    {/if}
    {if $ns1 || $ns2}
        <div class="row">
            <div class="col-sm-5">
                {$LANG.domainnameservers}
            </div>
            <div class="col-sm-7">
                {$ns1}<br />{$ns2}
            </div>
        </div>
    {/if}
{else}
    {if $domain}
        <div class="row">
            <div class="col-sm-5">
                {$LANG.orderdomain}
            </div>
            <div class="col-sm-7">
                {$domain}
            </div>
        </div>
    {/if}
    {if $username}
        <div class="row">
            <div class="col-sm-5">
                {$LANG.serverusername}
            </div>
            <div class="col-sm-7">
                {$username}
            </div>
        </div>
    {/if}
    {if $serverdata}
        <div class="row">
            <div class="col-sm-5">
                {$LANG.servername}
            </div>
            <div class="col-sm-7">
                {$serverdata.hostname}
            </div>
        </div>
    {/if}
{/if}

{if $dedicatedip}
    <div class="row">
        <div class="col-sm-5">
            {$LANG.domainregisternsip}
        </div>
        <div class="col-sm-7">
            {$dedicatedip}
        </div>
    </div>
{/if}

{foreach from=$configurableoptions item=configoption}
    <div class="row">
        <div class="col-sm-5">
            {$configoption.optionname}
        </div>
        <div class="col-sm-7">
            {if $configoption.optiontype eq 3}
                {if $configoption.selectedqty}
                    {$LANG.yes}
                {else}
                    {$LANG.no}
                {/if}
            {elseif $configoption.optiontype eq 4}
                {$configoption.selectedqty} x {$configoption.selectedoption}
            {else}
                {$configoption.selectedoption}
            {/if}
        </div>
    </div>
{/foreach}

{foreach from=$productcustomfields item=customfield}
    <div class="row">
        <div class="col-sm-5">
            {$customfield.name}
        </div>
        <div class="col-sm-7">
            {$customfield.value}
        </div>
    </div>
{/foreach}

<div class="row">
    <div class="col-sm-5">
        {$LANG.orderpaymentmethod}
    </div>
    <div class="col-sm-7">
        {$paymentmethod}
    </div>
</div>

<div class="row">
    <div class="col-sm-5">
        {$LANG.firstpaymentamount}
    </div>
    <div class="col-sm-7">
        {$firstpaymentamount}
    </div>
</div>

<div class="row">
    <div class="col-sm-5">
        {$LANG.recurringamount}
    </div>
    <div class="col-sm-7">
        {$recurringamount}
    </div>
</div>

<div class="row">
    <div class="col-sm-5">
        {$LANG.clientareahostingnextduedate}
    </div>
    <div class="col-sm-7">
        {$nextduedate}
    </div>
</div>

<div class="row">
    <div class="col-sm-5">
        {$LANG.orderbillingcycle}
    </div>
    <div class="col-sm-7">
        {$billingcycle}
    </div>
</div>

<div class="row">
    <div class="col-sm-5">
        {$LANG.clientareastatus}
    </div>
    <div class="col-sm-7">
        {$status}
    </div>
</div>

{if $suspendreason}
    <div class="row">
        <div class="col-sm-5">
            {$LANG.suspendreason}
        </div>
        <div class="col-sm-7">
            {$suspendreason}
        </div>
    </div>
{/if}

<hr>
