<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<div class="panel_s">
	<div class="panel-body">
		<?php if (count($articles) == 0) { ?>
		<p class="no-margin">
			<?= _l('clients_knowledge_base_articles_not_found'); ?>
		</p>
		<?php } ?>
		<?php if (isset($category)) {
		    // Category articles list
		    get_template_part('knowledge_base/category_articles_list', ['articles' => $articles]);
		} elseif (isset($search_results)) {
		    // Search results
		    get_template_part('knowledge_base/search_results', ['articles' => $articles]);
		} else {
		    // Default page
		    get_template_part('knowledge_base/categories', ['articles' => $articles]);
		}
hooks()->do_action('after_kb_groups_customers_area');
?>
	</div>
</div>