<?php
$lab = Laboratorio::listar();
?>
<div class="laboratorio">
	<?php if (count($lab) > 0) { 
        foreach($lab as $l) { 
    ?>
	<div class="container --padding">
		<h1 class="title"><?php echo $l->principal;?></h1>
	</div>


	<div class="box-unity">
		<div class="container --padding">
			<div class="row">
				<div class="col-lg-5 item-lab-text">
					<h2 class="title --small"><?php echo $l->cordialidade;?></h2>
					<div class="text-trace">
						<?php echo $l->descricaocord;?>
					</div>
				</div>
				<div class="col-lg-7 item-lab-img">
					<?php if ($l->imagemcord) { ?>
					<img src="externos/laboratorio/full/<?php echo $l->imagemcord;?>">
					<?php } ?>
				</div>
			</div>
			</div>
		</div>
	</div>
	<div class="box-unity --bg-right">
		<div class="container --padding">
			<div class="row">
				<div class="col-lg-5 offset-lg-1 order-lg-1 item-lab-text">
					<h2 class="title --small"><?php echo $l->historico;?></h2>
					<div class="text-trace">
						<?php echo $l->descricaohist;?>
					</div>
				</div>
				<div class="col-lg-5 item-lab-img">
					<?php if ($l->imagemhist) { ?>
					<img src="externos/laboratorio/full/<?php echo $l->imagemhist;?>">
					<?php } ?>
				</div>
			</div>
			</div>
		</div>
	</div>
	<?php }} ?>
</div>

