<?php $__env->startSection('title', 'CONFINCA - Noticias'); ?>

<?php $__env->startSection('content'); ?>

                <!-- flat-title -->
                <div class="pt-150 ">
                    <div class="flat-title">
                        <div class="cl-container full">
                            <div class="row">
                                <div class="col-12">
                                    <div class="content">
                                        <h2>Noticias</h2>
                                        <ul class="breadcrumbs">
                                            <li>Noticias del sector inmobiliario</li>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div> 
                </div>
                <!-- /flat-title -->

                <!-- widget-tabs -->
                <div>
                    
                    <div class="widget-content-tab">
                        <div class="widget-content-inner">
                            <!-- grid-blog -->
                            <div class="cl-container">
                                <div class="row">
                                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $posts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>  
                                        <div class="col-xl-4 col-md-6 col-12">
                                            <div class="wg-blog">
                                                <div class="image">
                                                    <img src="<?php echo e(asset('storage/' . $post->cover_image)); ?>" alt="">
                                                </div>
                                                <div class="content">
                                                    <div class="sub-blog">
                                                        <div><?php echo e($post->title); ?></div>
                                                        <div><?php echo e(date('F j, Y', strtotime($post->published_at))); ?></div>
                                                    </div>
                                                    <div class="name">
                                                        <a href="<?php echo e(route('detailpost', $post->slug)); ?>"><?php echo e($post->excerpt); ?></a>
                                                    </div>
                                                    <a href="<?php echo e(route('detailpost', $post->slug)); ?>" class="tf-button-no-bg">
                                                        Leer más
                                                        <i class="icon-arrow-right-add"></i>
                                                    </a>
                                                </div>
                                            </div>
                                        </div>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                                    
                                    <!-- Links de paginación con Bootstrap -->
                                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($posts->hasPages()): ?>
                                        <div class="col-12 mb-50">
                                            <ul class="wg-pagination justify-center wow fadeInUp">
                                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($posts->onFirstPage()): ?>
                                                    <li class="disabled">
                                                        <span><i class="icon-keyboard_arrow_left"></i></span>
                                                    </li>
                                                <?php else: ?>
                                                    <li>
                                                        <a href="<?php echo e($posts->previousPageUrl()); ?>" rel="prev">
                                                            <i class="icon-keyboard_arrow_left"></i>
                                                        </a>
                                                    </li>
                                                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

                                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $posts->links()->elements[0]; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $page => $url): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($page == $posts->currentPage()): ?>
                                                        <li class="active"><a href="<?php echo e($url); ?>"><?php echo e($page); ?></a></li>
                                                    <?php else: ?>
                                                        <li><a href="<?php echo e($url); ?>"><?php echo e($page); ?></a></li>
                                                    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($posts->hasMorePages()): ?>
                                                    <li>
                                                        <a href="<?php echo e($posts->nextPageUrl()); ?>" rel="next">
                                                            <i class="icon-keyboard_arrow_right"></i>
                                                        </a>
                                                    </li>
                                                <?php else: ?>
                                                    <li class="disabled">
                                                        <span><i class="icon-keyboard_arrow_right"></i></span>
                                                    </li>
                                                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                                            </ul>
                                        </div>
                                    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                                </div>    
                            </div>
                        </div>                        
                    </div>
                </div>            

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /var/www/html/confinca/resources/views/post.blade.php ENDPATH**/ ?>