{include file="blocks/sidebar.html"} {* ============ Main column ============ *}

User Control Panel

Welcome, {$me.name|default:$me.mail|escape:'html'} — here's everything in your account at a glance.

{* ============ Quick stats ============ *}
Open tickets
{$counts.tickets_open}
{if $counts.tickets_open eq 0}All clear{else}Awaiting our reply{/if}
Products
{$counts.products}
Total orders
Services
{$counts.services}
Managed software stacks
Unpaid invoices
{$counts.invoices_open}
{if $counts.invoices_open eq 0}All settled{else}Across open invoices{/if}
{* ============ A — TICKETS ============ *}
A. Support Tickets
{if $tickets_rows}
{foreach $tickets_rows as $t} {assign var=t_class value='open'} {if $t.status eq 'closed'}{assign var=t_class value='closed'} {elseif $t.status eq 'answered'}{assign var=t_class value='answered'} {/if} {/foreach}
Ticket Subject Department Status Last update Action
T-{$t.id|string_format:'%05d'} {$t.subject|escape:'html'} {$t.cat_name|default:'Support'|escape:'html'} {$t.status|escape:'html'} {$t.last_reply_at|default:$t.created_at|escape:'html'}
{else}

No tickets yet — open one any time and we'll get back fast.

{/if}
{* ============ B — PRODUCTS ============ *}
B. Products New product

Servers, dedicated hardware and VPS plans on your account.

{if $orders}
{foreach $orders as $o} {assign var=o_class value='pending'} {if $o.status eq 'live' || $o.status eq 'provisioned'}{assign var=o_class value='online'} {elseif $o.status eq 'cancelled'}{assign var=o_class value='offline'} {/if} {/foreach}
Product Plan OS Status Renews Price Action
{$o.server_name|default:'Server'|escape:'html'} Order #{$o.id} · {$o.created_at|escape:'html'} {$o.server_sku|default:'—'|escape:'html'} {$o.os_name|default:'—'|escape:'html'} ● {$o.status|escape:'html'} {$o.next_billing_at|default:'—'|escape:'html'} {$o.server_price|default:0|price}/mo Manage
{else}

No products yet — browse VPS or dedicated hardware.

{/if}
{* ============ C — SERVICES ============ *}
C. Services Add service

Managed software stacks attached to your products.

{if $services_rows}
{foreach $services_rows as $sv} {assign var=sv_class value='pending'} {if $sv.quote_status eq 'live' || $sv.quote_status eq 'provisioned'}{assign var=sv_class value='online'} {elseif $sv.quote_status eq 'cancelled'}{assign var=sv_class value='offline'} {/if} {assign var=sv_price value=$sv.price_monthly} {if $sv.billing_cycle eq 'yearly'}{assign var=sv_price value=$sv.price_yearly}{/if} {/foreach}
Service Cycle Attached to Order status Renews Price Action
{$sv.name|escape:'html'} Order #{$sv.quote_id} {if $sv.billing_cycle eq 'yearly'}Yearly{else}Monthly{/if} {$sv.server_name|default:$sv.server_sku|default:'—'|escape:'html'} ● {$sv.quote_status|escape:'html'} {$sv.quote_next_billing|default:'—'|escape:'html'} {$sv_price|default:0|price}/{if $sv.billing_cycle eq 'yearly'}yr{else}mo{/if} Manage
{else}

No managed services on your account yet — browse solutions.

{/if}
{* ============ D — INVOICES ============ *}
D. Invoices

Billing history. Click an invoice to download the PDF.

{if $invoices_rows}
{foreach $invoices_rows as $iv} {assign var=iv_class value='open'} {if $iv.status eq 'paid'}{assign var=iv_class value='online'} {elseif $iv.status eq 'overdue'}{assign var=iv_class value='offline'} {elseif $iv.status eq 'void' || $iv.status eq 'cancelled'}{assign var=iv_class value='closed'} {/if} {/foreach}
Issued Invoice Description Amount Status Due Action
{$iv.issued_at|escape:'html'} {$iv.invoice_number|escape:'html'} {$iv.note|default:$iv.server_name|default:'—'|escape:'html'} {$iv.amount|price} {$iv.status|escape:'html'} {$iv.due_at|default:'—'|escape:'html'}
{else}

No invoices issued yet.

{/if}