<?php $__env->startSection('content'); ?>
<?php if($tests->post_count): ?>
<h1 class="main-title main-title-red"><?php echo(single_cat_title()); ?></h1>
<?php else: ?>
<h1 class="main-title"><?php echo(single_cat_title()); ?></h1>
<?php endif; ?>
<div class="info-container">

	<?php if($image = $category->getAcf('image')): ?>
		<img src="<?php echo($image); ?>">
	<?php endif; ?>

    <?php if($description = category_description( $category_id )): ?>
    <p><?php echo($description); ?></p>

    <?php endif; ?>


    <?php if(is_array($benefits = $category->getAcf('benefits')) && count($benefits)): ?>
		<div class="info-block bg-bordered">
			<span class="title"><?php echo($category->getAcf('benefits_title')); ?></span>
			<ul>
				<?php foreach($benefits as $benefit): ?>
					<li><?php echo($benefit['benefit']); ?></li>
				<?php endforeach; ?>
			</ul>
		</div>
	<?php endif; ?>

	<?php if($table = $category->getAcf('table')): ?>
		<?php echo($table); ?>	<?php endif; ?>

	<?php if($tests->post_count): ?>
		<div class="table table-list responsive-table">
			<div class="thead">
				<div class="tr">
					<div class="th"><?php echo(__('Name', THEMOSIS_TEXTDOMAIN)); ?></div>
					<div class="th"><?php echo(__('Description', THEMOSIS_TEXTDOMAIN)); ?></div>
					<div class="th"><?php echo(__('Sample', THEMOSIS_TEXTDOMAIN)); ?></div>
					<div class="th"><?php echo(__('Format', THEMOSIS_TEXTDOMAIN)); ?></div>
					<div class="th"><?php echo(__('Instructions', THEMOSIS_TEXTDOMAIN)); ?></div>
				</div>
			</div>
			<div class="tbody">
				<?php $themosisQuery = (is_array(($tests))) ? new WP_Query(($tests)) : ($tests); if($themosisQuery->have_posts()){ while($themosisQuery->have_posts()){ $themosisQuery->the_post(); ?>
					<?php $test = new TestEntity(get_post()); ?>
					<?php echo $__env->make('tests._partials.item', ['test' => $test], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
				<?php }} wp_reset_postdata(); ?>
			</div>
		</div>
	<?php endif; ?>

	<?php if($sets->post_count): ?>
		<div class="panels-container">
			<div class="row">
				<?php $themosisQuery = (is_array(($sets))) ? new WP_Query(($sets)) : ($sets); if($themosisQuery->have_posts()){ while($themosisQuery->have_posts()){ $themosisQuery->the_post(); ?>
					<?php $set = new SetEntity(get_post()); ?>
					<?php echo $__env->make('sets._partials.item', ['set' => $set], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
				<?php }} wp_reset_postdata(); ?>
			</div>
		</div>
	<?php endif; ?>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.2cols', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>