{$_first = [ [ "id" => "", "name" => "" ] ]} {$is_empty_reasons = empty($reasons)} {$_reasons = array_merge($_first,$reasons)} {if $lost_reason_freeform} {$_last = [ [ "id" => "", "name" => "[`Other reason`]..." ] ]} {$_reasons = array_merge($_reasons,$_last)} {/if}

[`Close the deal`]
{$deal.name|escape}

[`Specify the deal closing status.`]

{if $is_empty_reasons} [`Deal loss reasons are not set up.`] [`Manage conditions`] {else}
[`Lost reason`]
{/if}