<div class="">
    <div class="page-title">
        <div class="title_left">
            <h3>CARRUSEL</h3>
        </div>
    </div>

    <div class="clearfix"></div>

    <div class="row">
        <div class="col-md-12 col-sm-12 col-xs-12">
            <div class="x_panel">
                <div class="x_title">
                    <h2>Listado Carrusel</h2>
                    <div class="clearfix"></div>
                </div>
                <div class="x_content">

                    <!--filtrado en caso de ir-->
                    <div class="table-responsive ">
                        <table class="table table-striped jambo_table bulk_action ">
                            <thead>
                                <tr class="headings">
                                    <th class="column-title">No.</th>
                                    <th class="column-title">Imagen </th>
                                    <th class="column-title">Documento(s) o URL</th>
                                    <th class="column-title">Fecha Inicio </th>
                                    <th class="column-title">Fecha Fin </th>
                                    <th class="column-title no-link last"><span class="nobr">Action</span>
                                    </th>
                                    <th class="bulk-actions" colspan="7">
                                        <a class="antoo" style="color:#fff; font-weight:500;">Bulk Actions (
                                            <span class="action-cnt"> </span> ) <i
                                                class="fa fa-chevron-down"></i></a>
                                    </th>
                                </tr>
                            </thead>

                            <tbody>
                                
                                <?php $__currentLoopData = $carrusel; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php 
                                $interar=$loop->iteration;
                                ?>
                                    <tr class="even pointer">
                                        <td class="a-center "><?php echo e($loop->iteration); ?></td>
                                        <td class=" ">
                                            <button type="button" class="btn btn-success btn-xs" data-toggle="modal" data-target=".bs-example-modal-lg<?php echo e($loop->iteration); ?>"><span
                                                class="fa fa-file-image-o"></span></button>
                                            <div class="modal fade bs-example-modal-lg<?php echo e($loop->iteration); ?>" tabindex="-1" role="dialog" aria-hidden="true">
                                                <div class="modal-dialog modal-lg">
                                                  <div class="modal-content">
                                            
                                                    <div class="modal-header">
                                                      <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
                                                      </button>
                                                      <h4 class="modal-title" id="myModalLabel">Imagen</h4>
                                                    </div>
                                                    <div class="modal-body">
                                                      <img src="<?php echo e('img/slider/'. $c->imagen); ?>" width="100%" height="100%">
                                                    </div>
                                                    <div class="modal-footer">
                                                      <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                                                      <!--<button type="button" class="btn btn-primary">Save changes</button>-->
                                                    </div>
                                            
                                                  </div>
                                                </div>
                                              </div>
                                            
                                            
                                        </td>
                                        <td class=" ">
                                            <?php $docus = explode(',', $c->documento);
                                            ?>
                                            <?php if($c->documento!=""): ?>
                                            <?php $__currentLoopData = $docus; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $d): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <button type="button" class="btn btn-primary btn-xs" data-toggle="modal" data-target=".bs-example-modal-lg<?php echo e($interar.$loop->iteration); ?>"><span
                                                class="fa fa-file-pdf-o"></span></button>
                                            <div class="modal fade bs-example-modal-lg<?php echo e($interar.$loop->iteration); ?>" tabindex="-1" role="dialog" aria-hidden="true">
                                                <div class="modal-dialog modal-lg">
                                                  <div class="modal-content">
                                            
                                                    <div class="modal-header">
                                                      <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
                                                      </button>
                                                      <h4 class="modal-title" id="myModalLabel">Documento</h4>
                                                    </div>
                                                    <div class="modal-body">
                                                      <iframe src="pdf/slider/<?php echo e($d); ?>"  width="100%" height="100%"></iframe>
                                                    </div>
                                                    <div class="modal-footer">
                                                      <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                                                      <!--<button type="button" class="btn btn-primary">Save changes</button>-->
                                                    </div>
                                            
                                                  </div>
                                                </div>
                                              </div>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            <?php else: ?>
                                            <?php if($c->url!=""): ?>
                                            <button type="button" class="btn btn-primary btn-xs" data-toggle="modal" data-target=".bs-example-modal-lg<?php echo e($interar.$loop->iteration); ?>">URL</button>
                                            <div class="modal fade bs-example-modal-lg<?php echo e($interar.$loop->iteration); ?>" tabindex="-1" role="dialog" aria-hidden="true">
                                                <div class="modal-dialog modal-lg">
                                                  <div class="modal-content">
                                            
                                                    <div class="modal-header">
                                                      <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
                                                      </button>
                                                      <h4 class="modal-title" id="myModalLabel">URL</h4>
                                                    </div>
                                                    <div class="modal-body">
                                                        <a href="<?php echo e($c->url); ?>"><?php echo e($c->url); ?></a> 
                                                    </div>
                                                    <div class="modal-footer">
                                                      <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                                                      <!--<button type="button" class="btn btn-primary">Save changes</button>-->
                                                    </div>
                                            
                                                  </div>
                                                </div>
                                              </div>
                                            
                                            <?php endif; ?>
                                            <?php endif; ?>
                                        </td>
                                        <td class=" "><?php echo e($c->fecha_inicioaviso); ?></td>
                                        <td class=" "><?php echo e($c->fecha_finaviso); ?></td>
                                        <td class=" ">
                                            <button class="btn btn-danger btn-xs" type="button" title="Eliminar Carrusel"
                                                onclick="delete_carrusel(<?php echo e($c->id); ?>);"><span
                                                    class="fa fa-trash-o"></span></button>
                                        </td>
                                    </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div><?php /**PATH C:\xampp\htdocs\tecitz\resources\views/admin/Carrucel/listado.blade.php ENDPATH**/ ?>