{$failed_tasks}<br/>
Cron Report generated: {$date}<br/>
<br/>
<br/>
<strong>Invoices</strong><br/>
<u>Invoices Generated ({$invoices_generated_count})</u><br/>
{if $invoices_generated}<br/>
{foreach from=$invoices_generated item=gen_inv}<br/>
        #{$gen_inv.id} - {$gen_inv.client}(ID: {$gen_inv.client_id}) - Total: {$gen_inv.total|price:$currency}<br/>
    {/foreach}<br/>
{else}<br/>
<br/>
{/if}<br/>
<u>Invoices Cancelled ({$invoices_cancelled_count})</u><br/>
{if $invoices_cancelled}<br/>
    {foreach from=$invoices_cancelled item=can_inv}<br/>
        #{$can_inv.id}: {$can_inv.firstname} {$can_inv.lastname}(ID: {$can_inv.client_id}) - Total: {$can_inv.total|price:$currency}, Balance: {$can_inv.balance|price:$currency}<br/>
    {/foreach}<br/>
{else}<br/>
<br/>
{/if}<br/>
<br/>
{if $reminds}<br/>
<strong>Overdue Invoice Reminders Sent ({$reminds_count})</strong><br/>
<br/>
    {foreach from=$reminds item=remind}<br/>
        {if $remind.number == 1}First{elseif $remind.number == 2}Second{else}Third{/if} Remind For {$remind.client}(ID:{$remind.client_id}) - Invoice #{$remind.id}<br/>
    {/foreach}<br/>
<br/>
{/if}<br/>
<br/>
<strong>Accounts</strong><br/>
<u>Accounts Suspended ({$suspended_accounts_count})</u><br/>
{if $suspended_accounts}<br/>
    {foreach from=$suspended_accounts item=sacc}<br/>
        #{$sacc.id}: {$sacc.product_name} - {$sacc.domain} (Server: {$sacc.server_name} - {$sacc.server_ip}, Username: {$sacc.username}) Client: {$sacc.client}(ID:{$sacc.client_id})<br/>
    {/foreach}<br/>
{else}<br/>
<br/>
{/if}<br/>
<u>Accounts Terminated ({$terminated_accounts_count})</u><br/>
{if $terminated_accounts}<br/>
    {foreach from=$terminated_accounts item=tacc}<br/>
        #{$tacc.id}: {$tacc.product_name} - {$tacc.domain} (Server: {$tacc.server_name} - {$tacc.server_ip}, Username: {$tacc.username}) Client: {$tacc.client}(ID:{$tacc.client_id})<br/>
    {/foreach}<br/>
{else}<br/>
<br/>
{/if}<br/>
<br/>
<strong>Addons</strong><br/>
<u>Addons Suspended ({$suspended_addons_count})</u><br/>
{if $suspended_addons}<br/>
    {foreach from=$suspended_addons item=sadd}<br/>
        #{$sadd.id}: {$sadd.name} {if $sadd.product_name}({$sadd.product_name}, {$sadd.domain}){else}(Account ID:{$sadd.account_id}){/if} Client: {$sadd.client}(ID:{$sadd.client_id})<br/>
    {/foreach}<br/>
{else}<br/>
<br/>
{/if}<br/>
<u>Addons Terminated ({$terminated_addons_count})</u><br/>
{if $terminated_addons}<br/>
    {foreach from=$terminated_addons item=tadd}<br/>
        #{$tadd.id}: {$tadd.name} {if $tadd.product_name}({$tadd.product_name}, {$sadd.domain}){else}(Account ID:{$tadd.account_id}){/if} Client: {$tadd.client}(ID:{$tadd.client_id})<br/>
    {/foreach}<br/>
{else}<br/>
<br/>
{/if}<br/>
<br/>
<strong></strong><br/>
<strong>Upcoming Domain Renewal Notifications Sent ({$domain_reminds_count})</strong><br/>
<br/>
{if $domain_reminds}<br/>
	{foreach from=$domain_reminds item=remind}<br/>
	- Client: {$remind.client} (ID:{$remind.client_id}) - {$remind.domain} expiring: {$remind.expires|dateformat:$date_format}<br/>
	 {/foreach}<br/>
{/if}<br/>
<br/>
<br/>
<strong>Cancellation Requests Processing</strong><br/>
<u>Successfull automatic cancellations ({$cancellations_success_count})</u><br/>
{if $cancellations_success}<br/>
	{foreach from=$cancellations_success item=cancel}<br/>
	#Acc ID: {$cancel.account_id} - Client: {$cancel.client} (ID:{$cancel.client_id}) - {$cancel.domain}<br/>
	 {/foreach}<br/>
{/if}<br/>
<br/>
<br/>
<u>Manual cancellation needed ({$cancellations_failed_count})</u><br/>
{if $cancellations_failed} [see errors below]<br/>
	{foreach from=$cancellations_failed item=cancel}<br/>
	#Acc ID: {$cancel.account_id} - Client: {$cancel.client} (ID:{$cancel.client_id}) - {$cancel.domain}<br/>
	 {/foreach}<br/>
{/if}<br/>
<br/>
<br/>
<br/>
<strong>Tickets</strong><br/>
<u>Tickets Automatically Closed ({$tickets_closed_count})</u><br/>
{if $tickets_closed}<br/>
 {foreach from=$tickets_closed item=closed}<br/>
- {$closed.subject}<br/>
{/foreach}<br/>
<br/>
{/if}<br/>
<br/>
<br/>
------------------------------------------------------------------------<br/>
<strong>Errors:</strong><br/>
{if $suspend_errors}<br/>
<br/>
    <u>Failed accounts automatic suspension (<font style="" red\="">{$suspend_errors_count}</font>)</u><br/>
    {foreach from=$suspend_errors item=sus_err}<br/>
        #{$sus_err.id}: {$sus_err.product_name} - {$sus_err.domain} (Server: {$sus_err.server_name} - {$sus_err.server_ip}, Username: {$sus_err.username}) Client: {$sus_err.client}(ID:{$sus_err.client_id})<br/>
        <font style="" red\="">{$sus_err.error}</font><br/>
    {/foreach}<br/>
{/if}<br/>
{if $terminate_errors}<br/>
<br/>
    <u>Failed accounts automatic termination (<font style="" red\="">{$terminate_errors_count}</font>)</u><br/>
    {foreach from=$terminate_errors item=ter_err}<br/>
        #{$ter_err.id}: {$ter_err.product_name} - {$ter_err.domain} (Server: {$ter_err.server_name} - {$ter_err.server_ip}, Username: {$ter_err.username}) Client: {$ter_err.client}(ID:{$ter_err.client_id})<br/>
        <font style="" red\="">{$ter_err.error}</font><br/>
    {/foreach}<br/>
{/if}<br/>
{if $cancellations_failed}<br/>
<br/>
<u>Errors during automatic cancellation requests processing:</u><br/>
	{foreach from=$cancellations_failed item=cancel}<br/>
	#Acc ID: {$cancel.account_id} - Client: {$cancel.client} (ID:{$cancel.client_id}) - {$cancel.domain} <br/>
                           {foreach from=$cancel.errors item=err} <font style="" red\="">{$err}</font><br/>
		{/foreach}<br/>
            {/foreach}<br/>
{/if}<br/>
<br/>
------------------------------------------------------------------------<br/>
<br/>
<br/>
 {$output}<br/>
