{include file="blocks/sidebar.html"}

{$T.acc_h1_a} {$T.acc_h1_b}

{$T.acc_welcome} {$me.name|default:$me.mail|escape:'html'} — {$T.acc_intro}

{$T.dash_stat_tickets}
{$counts.tickets_open}
{if $counts.tickets_open eq 0}{$T.dash_stat_tickets_zero}{else}{$T.dash_stat_tickets_some}{/if}
{$T.th_product}
{$counts.products}
{$T.sb_services}
{$counts.services}
{$T.dash_stat_services_sub}
{$T.dash_stat_unpaid}
{$counts.invoices_open}
{if $counts.invoices_open eq 0}{$T.dash_stat_unpaid_zero}{else}{$T.dash_stat_unpaid_some}{/if}
{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}
{$T.th_ticket}{$T.th_subject}{$T.th_department}{$T.th_status}{$T.th_last_update}{$T.th_action}
T-{$t.id|string_format:'%05d'} {$t.subject|escape:'html'} {$t.cat_name|default:$T.sb_support_grp|escape:'html'} {if $T["st_`$t.status`"]}{$T["st_`$t.status`"]}{else}{$t.status|escape:'html'}{/if} {$t.last_reply_at|default:$t.created_at|escape:'html'}
{else}

{$T.tk_empty_user}

{/if}
{$T.acc_section_b} {$T.acc_new_product}

{$T.acc_b_sub}

{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}
{$T.th_product}{$T.th_plan}{$T.th_os}{$T.th_status}{$T.th_renews}{$T.th_price}{$T.th_action}
{$o.server_name|default:'Server'|escape:'html'}#{$o.id} · {$o.created_at|escape:'html'} {$o.server_sku|default:'—'|escape:'html'} {$o.os_name|default:'—'|escape:'html'} • {if $T["st_`$o.status`"]}{$T["st_`$o.status`"]}{else}{$o.status|escape:'html'}{/if} {$o.next_billing_at|default:'—'|escape:'html'} {$o.server_price|default:0|price}{$T.bill_mo} {$T.acc_manage}
{else}

{$T.pg_servers_empty} — {$T.nav_vps} · {$T.nav_dedicated}

{/if}
{$T.acc_section_c} {$T.acc_add_service}

{$T.acc_c_sub}

{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}
{$T.th_service}{$T.th_cycle}{$T.th_attached_to}{$T.th_order_status}{$T.th_renews}{$T.th_price}{$T.th_action}
{$sv.name|escape:'html'}#{$sv.quote_id} {if $sv.billing_cycle eq 'yearly'}{$T.bc_yearly}{else}{$T.bc_monthly}{/if} {$sv.server_name|default:$sv.server_sku|default:'—'|escape:'html'} • {if $T["st_`$sv.quote_status`"]}{$T["st_`$sv.quote_status`"]}{else}{$sv.quote_status|escape:'html'}{/if} {$sv.quote_next_billing|default:'—'|escape:'html'} {$sv_price|default:0|price}{if $sv.billing_cycle eq 'yearly'}{$T.bill_yr}{else}{$T.bill_mo}{/if} {$T.acc_manage}
{else}

{$T.pg_services_empty} — {$T.nav_solutions}

{/if}
{$T.acc_section_d}

{$T.acc_d_sub}

{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}
{$T.th_issued}{$T.th_invoice}{$T.th_description}{$T.th_amount}{$T.th_status}{$T.th_due}{$T.th_action}
{$iv.issued_at|escape:'html'} {$iv.invoice_number|escape:'html'} {$iv.note|default:$iv.server_name|default:'—'|escape:'html'} {$iv.amount|price} {if $T["st_`$iv.status`"]}{$T["st_`$iv.status`"]}{else}{$iv.status|escape:'html'}{/if} {$iv.due_at|default:'—'|escape:'html'}
{else}

{$T.pg_invoices_empty}

{/if}