{$_cron_command = "php {$root_path}cli.php crm worker sources calls"} {$_last_cron_time = crmEmailSourceWorker::getLastCliRunDateTime()} {$_cli_ok = crmEmailSourceWorker::isCliOk()}
{if $_cli_ok}

[`Cron job required for automated email capture and execution of deals is set up properly.`] [`Last execution time:`] {$_last_cron_time|wa_date:'datetime'}

{sprintf_wp( 'The following cron job command is currently in use (%ssetting up a cron job%s):', sprintf('', _w('https://developers.webasyst.com/installation/tips/cron/')), '' )}

{$_cron_command}

{else}

[`No cron job required for automated email capture and execution of deals.`]

[`Without a cron job set up, new mail is captured and deals are executed only as long as you keep CRM open in your browser.`]

{sprintf_wp( 'Please set up a cron job (view instructions) using the command specified below in your web-hosting control panel:', _w('https://developers.webasyst.com/installation/tips/cron/') )}

{$_cron_command}

{if $_last_cron_time}

[`Last execution time:`] {$_last_cron_time|wa_date:'datetime'}

{/if}
{/if}