<!-- Page Heading -->
<h3 class="sub-settings mt-0">Knowledge Base Settings</h3>

<!-- Number of Categories on the Helpdesk landing page -->
<div class="mb-3 row">
    <label for="settings[kb][categories_per_page]" class="col-sm-2 control-label">Categories Per Page</label>
    <div class="col-sm-4">
        <input type="number" class="form-control" id="settings[kb][categories_per_page]" name="settings[kb][categories_per_page]" placeholder="6" value="{{ old('settings.kb.categories_per_page', setting('kb.categories_per_page', 6)) }}" min="1">
        <div class="small">Set the number of categories on Helpdesk landing page.</div>
    </div>
</div>

<!-- Show / Hide Search Widget in Helpdesk Section -->
<div class="mb-3 row">
    <label for="settings[kb][search_widget]" class="col-sm-2 control-label">Show Search Widget</label>
    <div class="col-sm-4">
        <select class="form-control" id="settings[kb][search_widget]" name="settings[kb][search_widget]">
            <option value="1" @selected(old('settings.kb.search_widget', setting('kb.search_widget')) == '1')>Yes</option>
            <option value="0" @selected(old('settings.kb.search_widget', setting('kb.search_widget')) == '0')>No</option>
        </select>
        <div class="small">Allow you to hide or show search widget in Knowledge Base section.</div>
    </div>
</div>

<!-- Track User Search History for Knowledge Base Articles -->
<div class="mb-3 row">
    <label for="settings[kb][search_history]" class="col-sm-2 control-label">Track Search History</label>
    <div class="col-sm-4">
        <select class="form-control" id="settings[kb][search_history]" name="settings[kb][search_history]">
            <option value="1" @selected(old('settings.kb.search_history', setting('kb.search_history')) == '1')>Yes</option>
            <option value="0" @selected(old('settings.kb.search_history', setting('kb.search_history')) == '0')>No</option>
        </select>
        <div class="small">Enable or disable the tracking of user search history for Knowledge Base articles.</div>
    </div>
</div>

<!-- Show / Hide Need Support Widget in Helpdesk Section -->
<div class="mb-3 row">
    <label for="settings[kb][need_support_widget]" class="col-sm-2 control-label">Show Need Support Widget</label>
    <div class="col-sm-4">
        <select class="form-control" id="settings[kb][need_support_widget]" name="settings[kb][need_support_widget]">
            <option value="1" @selected(old('settings.kb.need_support_widget', setting('kb.need_support_widget')) == '1')>Yes</option>
            <option value="0" @selected(old('settings.kb.need_support_widget', setting('kb.need_support_widget')) == '0')>No</option>
        </select>
        <div class="small">Allow you to hide or show need support widget in Knowledge Base section.</div>
    </div>
</div>

<!-- Show / Hide Popular Articles Widget in Helpdesk Section -->
<div class="mb-3 row">
    <label for="settings[kb][popular_articles_widget]" class="col-sm-2 control-label">Show Popular Articles Widget</label>
    <div class="col-sm-4">
        <select class="form-control" id="settings[kb][popular_articles_widget]" name="settings[kb][popular_articles_widget]">
            <option value="1" @selected(old('settings.kb.popular_articles_widget', setting('kb.popular_articles_widget')) == '1')>Yes</option>
            <option value="0" @selected(old('settings.kb.popular_articles_widget', setting('kb.popular_articles_widget')) == '0')>No</option>
        </select>
        <div class="small">Allow you to hide or show popular articles widget in Knowledge Base section.</div>
    </div>
</div>

<!-- Number of Popular Articles on the Helpdesk landing page -->
<div class="mb-3 row">
    <label for="settings[kb][popular_articles_widget_count]" class="col-sm-2 control-label">Article count</label>
    <div class="col-sm-4">
        <input type="number" class="form-control" id="settings[kb][popular_articles_widget_count]" name="settings[kb][popular_articles_widget_count]" placeholder="5" value="{{ old('settings.kb.popular_articles_widget_count', setting('kb.popular_articles_widget_count', 5)) }}" min="1">
        <div class="small">Set the number of articles in the popular articles widget.</div>
    </div>
</div>

<!-- Show / Hide Categories Widget in Helpdesk Section -->
<div class="mb-3 row">
    <label for="settings[kb][categories_widget]" class="col-sm-2 control-label">Show Categories Widget</label>
    <div class="col-sm-4">
        <select class="form-control" id="settings[kb][categories_widget]" name="settings[kb][categories_widget]">
            <option value="1" @selected(old('settings.kb.categories_widget', setting('kb.categories_widget')) == '1')>Yes</option>
            <option value="0" @selected(old('settings.kb.categories_widget', setting('kb.categories_widget')) == '0')>No</option>
        </select>
        <div class="small">Allow you to hide or show categories widget in Knowledge Base section.</div>
    </div>
</div>

<!-- Number of Categories on the Helpdesk landing page -->
<div class="mb-3 row">
    <label for="settings[kb][categories_widget_count]" class="col-sm-2 control-label">Category count</label>
    <div class="col-sm-4">
        <input type="number" class="form-control" id="settings[kb][categories_widget_count]" name="settings[kb][categories_widget_count]" placeholder="5" value="{{ old('settings.kb.categories_widget_count', setting('kb.categories_widget_count', 5)) }}" min="1">
        <div class="small">Set the number of categories in the categories widget.</div>
    </div>
</div>

<!-- Number of Articles on the Category landing page -->
<div class="mb-3 row">
    <label for="settings[kb][articles_per_page]" class="col-sm-2 control-label">Articles Per Page</label>
    <div class="col-sm-4">
        <input type="number" class="form-control" id="settings[kb][articles_per_page]" name="settings[kb][articles_per_page]" placeholder="8" value="{{ old('settings.kb.articles_per_page', setting('kb.articles_per_page', 8)) }}" min="1">
        <div class="small">Set the number of articles in the Category listing page.</div>
    </div>
</div>

<!-- Enable Feedback in Article landing Page -->
<div class="mb-3 row">
    <label for="settings[kb][feedback]" class="col-sm-2 control-label">Enable Feedback</label>
    <div class="col-sm-4">
        <select class="form-control" id="settings[kb][feedback]" name="settings[kb][feedback]">
            <option value="1" @selected(old('settings.kb.feedback', setting('kb.feedback')) == '1')>Yes</option>
            <option value="0" @selected(old('settings.kb.feedback', setting('kb.feedback')) == '0')>No</option>
        </select>
        <div class="small">Allow user to give feedback on the Knowledge Base articles.</div>
    </div>
</div>
