<?php
/**
 * @var $categories
 */
?>

<div class="categories-icon-carousel-wrapper">

	<?php if ( $categories ) { ?>

		<div class="owl-carousel carousel-content js-carousel-content">

			<?php foreach ( $categories as $key => $category ) {

				if ( $category->slug != 'other' ) { ?>

					<div class="carousel-item-wrapper">

						<a href="<?php echo get_category_link( $category->term_id ); ?>" title="" class="item-content">

							<img src="<?php echo get_template_directory_uri() . '/assets/images/homepage/' . $category->slug . '.svg'; ?>" alt="">

							<p class="item-title"><?php echo $category->name; ?></p>

						</a>

					</div>

				<?php }

			} ?>

		</div>

	<?php } ?>

</div>