@extends('adm.index')
@section('inicio','active')
@section('inicio_true','true')
@section('inicio_show','show')
@section('form')

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

<form method="post" action="{{route('createslider', $seccion)}}" enctype="multipart/form-data">
<!--<h3>Nuevo Slider</h3>-->
<?php if($seccion == 'inicio'){ ?>
    <h2>Agregar slider para la p&aacute;gina de inicio</h2>
<?php } else { ?>
    <h2>Agregar slider para la p&aacute;gina de empresa</h2>
<?php } ?>
	@csrf
  <div class="form-group">
    <label for="orden">Orden</label>
    <input type="text" class="form-control" id="orden" name="orden" >

  </div>
<?php if($seccion == 'inicio'){ ?>
  <div class="form-group">
    <label for="titulo">Titulo</label>
    <input type="text" class="form-control" id="titulo" name="titulo">
  </div>
  <div class="form-group">
    <label for="descripcion">Contenido</label>
    <textarea class="form-control" name="descripcion" id="descripcion" cols="30" rows="10" value="" ></textarea>
  </div>
  <?php } ?>
  <div class="form-group">
    <label for="imagen">Imagen</label>
    <input type="file" class="form-control-file" required id="imagen" name="imagen">
    <span class="">Seleccione (Tama&ntilde;o recomendado: 1920x810px)</span>
  </div>



 <button type="submit" class="btn btn-success">Agregar</button>
</form>

<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>
@endsection
