<?php
$dates_seminaire = get_field('dates_seminaire_datas');

?>

<section class="homegarde-blocks-dates-seminaire">

	<div class="table_head" aria-hidden="true">
		<p>
			<?php echo __("Date", "homegrade-theme__texte-fonctionnel") ?>
		</p>
		<p>
			<?php echo __("Horaire", "homegrade-theme__texte-fonctionnel") ?>
		</p>
	</div>

	<ul class="homegarde-blocks-dates-seminaire__dates-grid">
		<?php foreach ($dates_seminaire as $date) : ?>

			<li class="homegarde-blocks-dates-seminaire__dates-row date-seminaire-row">
				<?php if ($date['complet']) : ?>
					<div class="date-seminaire-row__is-complet">
						<p>
							<?php echo __("Complet", "homegrade-theme__texte-fonctionnel") ?>
						</p>

					</div>
				<?php endif; ?>
				<p class="date-seminaire-row__date"><?php echo $date['date'] ?></p>
				<p class="date-seminaire-row__plage-horaire"><?php echo $date['plage_horaire'] ?></p>
			</li>
		<?php endforeach; ?>


	</ul>

</section>