<?php $__env->startSection('conteudo'); ?>
<section class="container tm-home-section-1" id="more">
    <div class="section-margin-top" style="margin-top: 30px;">
        <div class="row">				
            <div class="tm-section-header" style="margin-bottom: 30px;">
                <div class="col-lg-3 col-md-3 col-sm-3"><hr></div>
                <div class="col-lg-6 col-md-6 col-sm-6"><h2 class="tm-section-title">Nossos Clientes</h2></div>
                <div class="col-lg-3 col-md-3 col-sm-3"><hr></div>	
            </div>
        </div>
        <div class="row">
            <?php if(count($ordem[2]) > 0 && count($elemento) > 0): ?>

                <?php $__currentLoopData = $ordem[2]; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $id_cliente): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                    <?php $__currentLoopData = $elemento; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cliente): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                        <?php if($id_cliente == $cliente->id): ?>
                            <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
                                <div class="tm-tours-box-1">

                                    <?php if( count($cliente->imagens) > 0): ?>
                                        <div id="myCarousel_<?php echo e($index); ?>" class="carousel slide" data-ride="carousel" style="width:360px; height:162px;">
                                            
                                            <!-- Indices -->
                                            <ol class="carousel-indicators">
                                                <?php $__currentLoopData = $cliente->imagens; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index_img => $imagem): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                        <li data-target="#myCarousel_<?php echo e($index); ?>" data-slide-to="<?php echo e($index_img); ?>" class="active"></li>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </ol>

                                            <!-- Fotos -->
                                            <div class="carousel-inner">
                                                <?php $__currentLoopData = $cliente->imagens; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index_img => $imagem): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <?php if($index_img == 0): ?>
                                                        <div class="item active">
                                                    <?php else: ?>
                                                        <div class="item">
                                                    <?php endif; ?>
                                                            <img src="<?php echo e(asset($imagem->path)); ?>" class="center-block" >
                                                        </div>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </div>

                                            <!-- Setas -->
                                            <a class="left carousel-control" href="#myCarousel_<?php echo e($index); ?>" data-slide="prev">
                                                <span class="glyphicon glyphicon-chevron-left"></span>
                                                <span class="sr-only">Previous</span>
                                            </a>
                                            <a class="right carousel-control" href="#myCarousel_<?php echo e($index); ?>" data-slide="next">
                                                <span class="glyphicon glyphicon-chevron-right"></span>
                                                <span class="sr-only">Next</span>
                                            </a>
                                        </div>     
                                    <?php else: ?>
                                        <img src="<?php echo e(asset($imagem->path)); ?>" style="width:360px; height: 162px;"/>
                                    <?php endif; ?>

                                    <!-- Nome -->
                                    <div class="tm-tours-box-1-link">
                                        <div class="tm-tours-box-1-link-left" style="width: 100%">
                                            <?php echo e($cliente->nome); ?>

                                        </div>							
                                    </div>

                                    <!-- Descrição -->
                                    <div class="tm-tours-box-1-info">
                                        <div class="tm-tours-box-1-info-right">
                                            <p class="gray-text tours-1-description"><?php echo e($cliente->descricao); ?></p>	
                                        </div>							
                                    </div>
                                </div>					
                            </div>
                        <?php endif; ?>

                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                
            <?php elseif(count($elemento) > 0): ?>
                <?php $__currentLoopData = $elemento; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $cliente): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                    <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
                        <div class="tm-tours-box-1">

                            <?php if( count($cliente->imagens) > 0): ?>
                                <div id="myCarousel_<?php echo e($index); ?>" class="carousel slide" data-ride="carousel" style="width:360px; height:162px;">
                                    
                                    <!-- Indices -->
                                    <ol class="carousel-indicators">
                                        <?php $__currentLoopData = $cliente->imagens; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index_img => $imagem): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <li data-target="#myCarousel_<?php echo e($index); ?>" data-slide-to="<?php echo e($index_img); ?>" class="active"></li>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </ol>

                                    <!-- Fotos -->
                                    <div class="carousel-inner">
                                        <?php $__currentLoopData = $cliente->imagens; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index_img => $imagem): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <?php if($index_img == 0): ?>
                                                <div class="item active">
                                            <?php else: ?>
                                                <div class="item">
                                            <?php endif; ?>
                                                    <img src="<?php echo e(asset($imagem->path)); ?>" class="center-block" >
                                                </div>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </div>

                                    <!-- Setas -->
                                    <a class="left carousel-control" href="#myCarousel_<?php echo e($index); ?>" data-slide="prev">
                                        <span class="glyphicon glyphicon-chevron-left"></span>
                                        <span class="sr-only">Previous</span>
                                    </a>
                                    <a class="right carousel-control" href="#myCarousel_<?php echo e($index); ?>" data-slide="next">
                                        <span class="glyphicon glyphicon-chevron-right"></span>
                                        <span class="sr-only">Next</span>
                                    </a>
                                </div>     
                            <?php else: ?>
                                <img src="<?php echo e(asset($imagem->path)); ?>" style="width:360px; height: 162px;"/>
                            <?php endif; ?>

                            <!-- Nome -->
                            <div class="tm-tours-box-1-link">
                                <div class="tm-tours-box-1-link-left" style="width: 100%">
                                    <?php echo e($cliente->nome); ?>

                                </div>							
                            </div>

                            <!-- Descrição -->
                            <div class="tm-tours-box-1-info">
                                <div class="tm-tours-box-1-info-right">
                                    <p class="gray-text tours-1-description"><?php echo e($cliente->descricao); ?></p>	
                                </div>							
                            </div>
                        </div>					
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            <?php else: ?>
                Nenhum Cliente Cadastrado.
            <?php endif; ?>
        </div>
    </section>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('site.template.template', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/eduardo/Documents/projetos/institucional/resources/views/site/clientes.blade.php ENDPATH**/ ?>