{$_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} {$_deal_ids = []}{foreach $deals as $_deal}{$_deal_ids[] = $_deal.id}{/foreach}

{_w("Close %d deal", "Close %d deals", count($deals))}

{if $dropped_ids_count > 0}

{_w('%d deal will not be affected by the action due to insufficient access rights', '%d deals will not be affected by the action due to insufficient access rights', $dropped_ids_count)}

{/if} {if $shop_linked}

{_w('%d selected deal are linked to Shop-Script orders.', '%d selected deals are linked to Shop-Script orders.', $shop_linked)}
[`Bulk deal close will not affect to corresponding orders.`]
[`Orders will remain unchanged.`]

{/if}

[`Specify the deal closing status.`]

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