
<?php $__env->startSection('inicio','active'); ?>
<?php $__env->startSection('inicio_true','true'); ?>
<?php $__env->startSection('inicio_show','show'); ?>
<?php $__env->startSection('inicio_collapsed','collapsed'); ?>
<?php $__env->startSection('form'); ?>
<style>
    form{
        margin-bottom: 40px !important;
        height: 100%;
    }
    main{
        max-height: none;
    }
</style>

<div class="container">
    <div class="row">
        <div class="col-12">
            <h2>Editar textos y fotos de la pagina de inicio</h2>
        </div>
        <div class="col-12">
            <form method="POST" action="<?= route('editInicio') ?>" enctype="multipart/form-data">
    <?php echo csrf_field(); ?>
    <div class="mb-3">
        <label for="inputTitulo" class="form-label">Titulo</label>
        <input type="text" class="form-control" value="<?= $inicio->titulo ?>" id="inputTitulo" required name="titulo">
    </div>
    <div class="mb-3">
        <label for="descripcion" class="form-label">Descripcion</label>
        <textarea class="form-control" name="descripcion" id="descripcion" cols="30" rows="10" value="<?php echo e($inicio->descripcion); ?>" ><?php echo $inicio->descripcion; ?></textarea>
    </div>
    <div class="form-group">
        <label for="foto">Foto</label>
        <input type="file" class="form-control-file" id="foto" name="foto" value="">
        <span class="">Seleccione (Tama&ntilde;o recomendado: 1400x480px)</span>
        <img src="<?php echo e(asset(Storage::url($inicio->foto))); ?>" class="img-thumbnail mt-4">
    </div>
    <button type="submit" class="btn btn-primary">Confirmar</button>
</form>
        </div>
    </div>
</div>



<script>

  $(document).ready(function() {
       $('textarea').summernote({
           height: 200,
  toolbar: [
    // [groupName, [list of button]]
    ['style', ['bold', 'italic', 'underline', 'clear']],
    ['font', ['strikethrough', 'superscript', 'subscript']],
    ['fontsize', ['fontsize']],
    ['color', ['color']],
    ['para', ['ul', 'ol', 'paragraph']],
    ['height', ['height']],
    ['view', ['fullscreen', 'codeview', 'help']],
],
});
   });

</script>

<?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/inicio/edit.blade.php ENDPATH**/ ?>