<?php
	$total_columns = count(get_field('logos'));
?>
<?php if(have_rows('logos')): ?>
	<section class="logo-showcase">
		<div class="logo-showcase__container">
			<div class="logo-showcase__logos">
				<div class="logo-showcase__logos__row" data-total-columns="<?php echo e($total_columns); ?>">
					<div class="logo-showcase__logos__column">
						<?php while(have_rows('logos')): ?>
							<?php
								the_row();
								$logo = get_sub_field('logo');
								$link = get_sub_field('link');
							?>
							<?php if($logo): ?>
								<?php if($link): ?>
									<a href="<?php echo e($link); ?>" target="_blank" class="logo-showcase__logos--container">
										<div class="logo-showcase__logos__image">
											<?php echo $__env->make("elements.image", ["image_id" => $logo], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
										</div>
									</a>
								<?php else: ?>
									<div class="logo-showcase__logos--container">
										<div class="logo-showcase__logos__image">
											<?php echo $__env->make("elements.image", ["image_id" => $logo], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
										</div>
									</div>
								<?php endif; ?>
							<?php endif; ?>
						<?php endwhile; ?>
					</div>
				</div>
			</div>			
		</div>
	</section>
<?php endif; ?><?php /**PATH /home/aphea/new/public/app/themes/aphea/resources/views/gutenberg/logo-showcase.blade.php ENDPATH**/ ?>