<?php
$coleta = Coleta::listar();
?>
<div class="coleta">
    <?php if (count($coleta) > 0) { 
        foreach($coleta as $c) { 
    ?>
    <div class="container --padding">
        <h1 class="title"><?php echo @$c->principal;?></h1>
    </div>

    <div class="band-atendimento">
        <div class="container --padding">
            
            <div class="row">
                <div class="col-lg-6 band-atendimento__text">
                    <!-- <p class="subtitle">Adipiscing elit</p> -->
                    <div class="text-trace"><?php echo htmlspecialchars_decode(@$c->descricao);?>
                    </div>
                    <!-- <p class="subtitle">Atendimentos</p> -->

                    
                </div>
                <?php if (@$c->imagem) { ?>
                <div class="col-lg-5 offset-lg-1 band-atendimento__img">
                    <img src="externos/coleta/full/<?php echo $c->imagem;?>">
                </div>
            <?php } ?>
            </div>
           
        </div>
    </div> 

    <div class="container topics">
        <div class="topic-info">
            <h3 class="topic-info__title">Central</h3>
            <div class="topic-info__description"><?php echo @$c->central;?></div>
        </div>

        
    </div>
    <?php }} ?>
</div>
