{if $manager}{$manager.fio}{$manager.job}{/if}
{if $all_messages}
    {foreach from=$all_messages item=one_message}
        <div class="livechat_one_message_block">
            {if $one_message.type eq "text"}
            <div class="message__info">
                <img src="images/default-v3.png">
                <span style="display: none;" class="livechat_c_manager_name">{$one_message.manager_fio} ({$one_message.date_prinable})</span>
                <div class="livechat_c_manager_text">{$one_message.message}</div>
            </div>
            <div class="message__time">{$one_message.date_prinable}</div>
            {else}
                {if $config.modules.livechat.show_status_messages_in_client_window}
                    <div class="livechat_c_manager_status">{$one_message.date_prinable}: {$one_message.message}</div>
                {/if}
            {/if}
        </div>
    {/foreach}
{else}NO MESSAGES{/if}