
<?php $__env->startSection('inicio','active'); ?>
<?php $__env->startSection('inicio_true','true'); ?>
<?php $__env->startSection('inicio_show','show'); ?>
<?php $__env->startSection('form'); ?>

<style>
    form{
        margin-bottom: 40px !important;
        height: 100%;
    }
    main{
        max-height: none;
    }
</style>

<div class="container-fluid">
<?php if(session()->has('success')): ?>
<div class="row">
    <div class="col-md-12 col-12">
      <div class="alert alert-success">
        <?php echo e(session()->get('success')); ?>

      </div>
    </div>
  </div>

<?php endif; ?>

<?php if(session()->has('danger')): ?>
<div class="row">
    <div class="col-md-12 col-12">
      <div class="alert alert-danger">
        <?php echo e(session()->get('danger')); ?>

      </div>
    </div>
  </div>
<?php endif; ?>
<div class="row">
    <div class="col-12">
        <div class="d-flex justify-content-between ">
          <?php if($seccion == 'inicio'){ ?>
            <h3 class="listado">Listado de sliders en inicio</h3>
        <?php } else { ?>
            <h3 class="listado">Listado de sliders en empresa</h3>
        <?php } ?>
        <a href="<?php echo e(route('nuevoslider', [ 'seccion' => $seccion ])); ?>" class="btn btn-success" >Nuevo slider</a> 
      </div>
    </div>
  </div>
  <div class="row">
    <div class="col-md-12 col-12">

    <table class="table">
  <thead>
    <tr>
      <th scope="col">Orden</th>
      <th scope="col">Imagen</th>
      <?php if($seccion == 'inicio'){ ?>
        <th scope="col">Titulo</th>
        <th scope="col">Descripcion</th>
    <?php } ?>
      <th scope="col">Accion</th>
    </tr>
  </thead>
 
  <tbody>
  	<?php $__currentLoopData = $slider; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $s): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
	    <tr>
	      <th scope="row"><?php echo e($s->orden); ?></th>
	      <td scope="row"><img src="<?php echo e(asset(Storage::url($s->imagen))); ?>" class="img-thumbnail w-50"></td>
	      <?php if($seccion == 'inicio'){ ?>
	      <td><?php echo $s->titulo; ?></td>
        <td><?php echo $s->descripcion; ?></td>
        <?php } ?>
	      <td>
	      	<a class="btn btn-warning rounded-pill editar" href="<?php echo e(route('editarslider',[$seccion,'id'=>$s->id])); ?>" role="button">
            Editar slider
          </a>
	      	<a class="btn btn-danger rounded-pill eliminar" href="<?php echo e(route('eliminarslider', $s->id)); ?>" role="button">
            Eliminar slider
          </a>

	      </td>
	    </tr>
    
	<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  </tbody>
</table>
    </div>
  </div>

</div>
	


<?php $__env->stopSection(); ?>
<?php echo $__env->make('adm.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/d11osolecom/public_html/grupohelmont/resources/views/adm/slider/listados.blade.php ENDPATH**/ ?>