<?php
$convenios = Convenios::listar('',null, 'nome');
$chamada = Chamada::buscar();

?>
<div class="content convenios">
    <div class="container">
        <h1 class="title"><?php echo ($chamada->convenio) ? $chamada->convenio : '';?></h1>
        <div class="content-boxs">
            <div class="row">
                <?php if (count($convenios) > 0) { 
                    foreach ($convenios as $obj) {
                ?>      
                <div class="col-4 col-sm-3 col-lg-2">
                    <div class="box-logo">
                        <img src="externos/convenios/full/<?php echo $obj->imagem;?>" alt="<?php echo $obj->nome;?>">
                    </div>
                </div>
                <?php }} ?>
                
            </div>
        </div>
    </div>
</div><!-- .content -->
