<?php $__env->startSection('css'); ?>
<?php echo HTML::style('css/back/panel.css'); ?>

<?php echo HTML::style('css/back/homeSlider.css'); ?>

<?php echo HTML::style('css/back/dropZone.min.css'); ?>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('body'); ?>
<?php echo HTML::script('js/back/custom.js'); ?>

<?php $__env->stopSection(); ?>

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

<hr>
 <?php echo Form::open(array('route'=>'panel/home/advertisement', 'method'=>'POST')); ?>

<?php foreach( $ads as $ad ): ?>
   <label for="active">Activo |</label>
   <label for="text">Texto </label>
   <div class="input-group">
      <input name="id" hidden type="number" value="<?php echo e($ad->getId()); ?>">
      <span class="input-group-addon" style="padding: 15px">
         <input type="hidden" name="active" value="0">
         <?php if($ad->getActive()==1): ?>
         <input type="checkbox" name="active" value="1" checked>
         <?php else: ?>
         <input type="checkbox" name="active" value="1">
         <?php endif; ?>
      </span>
      <textarea name="text" class="form-control"><?php echo e($ad->getText()); ?></textarea>
   </div>
   <br>
   <button type="submit" class="btn btn-default">Guardar</button>
<?php endforeach; ?>
<?php echo Form::close(); ?>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.backBase', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>