<div class="row">
    <div class="col-6">
        <div class="form-group">
            <label>Bot</label>
            <?php echo erLhcoreClassRenderHelper::renderCombobox( array (
                'input_name'     => 'bot_id',
                'optional_field' => erTranslationClassLhTranslation::getInstance()->getTranslation('chat/lists/search_panel','Select bot'),
                'selected_id'    => isset($departament->bot_configuration_array['bot_id']) ? $departament->bot_configuration_array['bot_id'] : 0,
                'css_class'      => 'form-control form-control-sm',
                'display_name'   => 'name',
                'list_function'  => 'erLhcoreClassModelGenericBotBot::getList'
            )); ?>
        </div>
    </div>
    <div class="col-6">
        <div class="form-group">
            <label>Translations group</label>
            <?php echo erLhcoreClassRenderHelper::renderCombobox( array (
                'input_name'     => 'bot_tr_id',
                'optional_field' => erTranslationClassLhTranslation::getInstance()->getTranslation('chat/lists/search_panel','Select translations'),
                'selected_id'    => isset($departament->bot_configuration_array['bot_tr_id']) ? $departament->bot_configuration_array['bot_tr_id'] : 0,
                'css_class'      => 'form-control form-control-sm',
                'display_name'   => 'name',
                'list_function'  => 'erLhcoreClassModelGenericBotTrGroup::getList'
            )); ?>
        </div>
    </div>
</div>

<div class="row">
    <div class="col-6">
        <div class="form-group">
            <label><input type="checkbox" name="bot_only_offline" <?php if (isset($departament->bot_configuration_array['bot_only_offline']) && $departament->bot_configuration_array['bot_only_offline'] == true) : ?>checked="checked"<?php endif?>> <?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/lists/search_panel','Transfer to bot only if department is offline')?></label>
        </div>
    </div>
    <div class="col-6">
        <div class="form-group">
            <label><input type="checkbox" name="bot_foh" <?php if (isset($departament->bot_configuration_array['bot_foh']) && $departament->bot_configuration_array['bot_foh'] == true) : ?>checked="checked"<?php endif?>> <?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/lists/search_panel','Bot follows online hours. Department will be offline if there is no online operators or it is outside work hours.')?></label>
        </div>
    </div>
    <div class="col-6">
        <div class="form-group">
            <label><input type="checkbox" name="bot_debug" <?php if (isset($departament->bot_configuration_array['bot_debug']) && $departament->bot_configuration_array['bot_debug'] == true) : ?>checked="checked"<?php endif?>> <?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/lists/search_panel','Enable debug logging')?></label>
        </div>
    </div>
</div>