{ $method->exe("service","view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else} {literal} {/literal} {foreach from=$service item=service} {if $form_validation} { $block->display("core:alert_fields") } {/if}
{translate module=service} title_view {/translate} {$service.id}
{if $service.date_next_invoice > 0} {translate module=service} title_recurring {/translate} | {/if} {if $service.type == 'group' || $service.type == 'host_group' || $service.type == 'product_group' } {translate module=service} title_group {/translate} | {/if} {if $service.type == 'domain' } {translate module=service} title_domain {/translate} | {/if} {if $service.type == 'host' || $service.type == 'host_group' } {translate module=service} title_hosting {/translate} | {/if} {if $service.type == 'product' || $service.type == 'product_group' } {translate module=service} title_product {/translate} | {/if} {translate module=service} title_memo {/translate}
{if $service.invoice} {/if}
{if $service.prod_plugin_name eq "VOIP" || $service.prod_plugin_name eq "PREPAID"} {/if}
{translate module=service} field_account_id {/translate} {translate module=service} field_sku {/translate}
  {html_select_account name="service_account_id" default=$service.account_id}  
{translate module=service} field_date_orig {/translate} {translate module=service} field_active {/translate}
  {$list->date_time($service.date_orig)}   { $list->bool("service_active", $service.active, "\" onChange=\"submit()\"") }
{translate module=service} field_date_last {/translate} {translate module=service} field_queue {/translate}
  {$list->date_time($service.date_last)}
{translate module=service} field_service_did {/translate}  
  {voip_did service_id=$service.id}    
{foreach from=$service.invoice item=invoice} {/foreach}
{translate module=account_admin} invoice_overview {/translate}
  {if $invoice.process_status == "1"} {else} {/if} {$invoice.id} {if $invoice.due > 0} {$list->format_currency_num($invoice.total_amt, '')} {else} {$list->format_currency_num($invoice.total_amt, '')} {/if} {if $invoice.due > 0} {$list->format_currency_num($invoice.due, '')} {else} {$list->format_currency_num('0', '')} {/if}     
{translate module=service service=$service.id}invoice_history{/translate}
{if $service.date_next_invoice > 0}
{translate module=service} title_recurring {/translate}
{if $service.recur_type == 1 } {/if} {if $service.account_billing_id > 0} {/if}
{translate module=service} field_date_last_invoice {/translate} {translate module=service} field_date_next_invoice {/translate}
{ $list->calender_view("service_date_last_invoice", $service.date_last_invoice, "form_field", $service.id) } { $list->calender_view("service_date_next_invoice", $service.date_next_invoice, "form_field", $service.id) }
{translate module=service} field_recur_schedule {/translate} {translate module=service} field_taxable {/translate}
{if $recur_price} {else} {/if} { $list->bool("service_taxable", $service.taxable, "\" onChange=\"document.getElementById('service_view').submit()\"") }
{translate module=service} field_price {/translate} {translate module=service} field_recur_type {/translate}
{$list->currency_iso("")} {if $service.recur_type == 0 } {translate module=product} recurr_type_aniv {/translate} {else} {translate module=product} recurr_type_fixed {/translate} {/if}
{translate module=service} field_recur_weekday {/translate} (1-28)
{translate module=service} field_recur_schedule_change {/translate} { $list->bool("service_recur_schedule_change", $service.recur_schedule_change, "\" onChange=\"document.getElementById('service_view').submit()\"") }
{translate module=service} field_recur_cancel {/translate} { $list->bool("service_recur_cancel", $service.recur_cancel, "\" onChange=\"document.getElementById('service_view').submit()\"") }
{translate module=service} field_recur_modify {/translate} { $list->bool("service_recur_modify", $service.recur_modify, "\" onChange=\"document.getElementById('service_view').submit()\"") }
{translate module=service} field_suspend_billing {/translate} { $list->bool("service_suspend_billing", $service.suspend_billing, "\" onChange=\"document.getElementById('service_view').submit()\"") }
{translate module=service} field_account_billing_id {/translate} { $list->menu_cc_admin("service_account_billing_id", $service.account_id, $service.account_billing_id, "form_menu") }
{/if}
{if $service.type == 'group' || $service.type == 'host_group' || $service.type == 'product_group' }
{translate module=service} title_group {/translate}

{translate module=product} assoc_group_limited {/translate}
{translate module=product} assoc_group_subscription {/translate}
{translate module=product} assoc_group_forever {/translate}

{ $list->menu_multi($service.group_grant, "service_group_grant", "group", "name", "10", "", "form_menu") }
{/if}
{if $service.type == 'domain' }
{translate module=service} title_domain {/translate}
{translate module=service} field_domain_name {/translate} {translate module=service} field_domain_term {/translate} {translate module=service} field_domain_date_expire {/translate}
{ $service.domain_name|upper }.{ $service.domain_tld|upper }   Resend Invoice { $service.domain_term } Year(s) {translate module=cart} renew {/translate} { $list->calender_view("service_domain_date_expire", $service.domain_date_expire, "form_field", $service.id) }
{translate module=service} field_domain_type {/translate} {translate module=service} field_domain_host_registrar_id {/translate} {translate module=service} field_domain_host_tld_id {/translate}
{translate module=cart}{$service.domain_type}{/translate} { $list->menu("", "service_domain_host_registrar_id", "host_registrar_plugin", "name", $service.domain_host_registrar_id, "form_menu") } { $list->menu("", "service_domain_host_tld_id", "host_tld", "name", $service.domain_host_tld_id, "form_menu") }
{/if}
{if $service.type == 'host' || $service.type == 'host_group' }
{translate module=service} title_hosting {/translate}
{ if $service.host_ip != "" } {/if}
{translate module=service} field_domain_name {/translate} { $service.domain_name|upper } . { $service.domain_tld|upper }   Resend Invoice
{translate module=service} field_host_server_id {/translate} { $list->menu("", "disabled", "host_server", "name", $service.host_server_id, "\" disabled") }
{translate module=service} field_host_ip {/translate} { $service.host_ip }
{translate module=service} field_host_username {/translate}
{translate module=service} field_host_password {/translate}
{if ($list->smarty_array("host_server","provision_plugin", "", "plugin")) } {foreach from=$plugin item=arr} {if $service.host_server_id == $arr.id} {assign var="product" value=$service} {assign var="afile" value=$arr.provision_plugin} {assign var="ablock" value="host_provision_plugin:plugin_prod_"} {assign var="blockfile" value="$ablock$afile"} { $block->display($blockfile) } {/if} {/foreach} {/if}
{/if}
{if $service.type == 'product' || $service.type == 'product_group' }
{translate module=service} title_product {/translate}
{ if $service.host_ip != "" } {/if}
{translate module=service} product_plugin {/translate} { $service.prod_plugin_name }
{assign var="product" value=$service} {assign var="afile" value=$service.prod_plugin_name} {assign var="ablock" value="product_plugin:plugin_prod_"} {assign var="blockfile" value="$ablock$afile"} { $block->display($blockfile) }
{/if}
{/foreach} {/if}