<?php $__env->startSection('page-title', trans('app.activities')); ?>

<?php $__env->startSection('content'); ?>
<h1 class="headerSection">Registro de Multimedia <br><small> nuevo</small></h1>
<hr> 
<div class="container bootstrap-iso" style="left: 40; padding:2em;">
    <?php echo Form::open(['route' => 'multimedia.store', 'files' => true, 'id' => 'miltimedia-form']); ?> 
  
        <?php $nameInput='publish_up'; $nameObj='Fecha de Publicación'; ?>
        <div class="form-group col-xs-12 list-group-item <?php if($errors->first($nameInput)): ?> has-error <?php endif; ?>  ">
            <?php echo e(Form::label($nameInput, $nameObj,['class'=>'control-label datepicker','data-provide'=>'datepicker'])); ?>

            <?php echo e(Form::text($nameInput, date('Y-m-d'), ['id'=>$nameInput,'placeholder'=>$nameObj,'class'=>'form-control datepicker', 'required' => 'required'])); ?>

            <?php if($errors->first($nameInput)): ?><div class="new badge red"><?php echo e($errors->first($nameInput)); ?> </div><?php endif; ?>
        </div>

        <?php $nameInput='title'; $nameObj='Título'; ?>
        <div class="form-group col-xs-12 list-group-item <?php if($errors->first($nameInput)): ?> has-error <?php endif; ?>  ">
            <?php echo e(Form::label($nameInput, $nameObj,['class'=>'control-label'])); ?>

            <?php echo e(Form::text($nameInput, '', ['id'=>$nameInput,'placeholder'=>$nameObj,'class'=>'form-control' ])); ?>

            <?php if($errors->first($nameInput)): ?><div class="new badge red"><?php echo e($errors->first($nameInput)); ?> </div><?php endif; ?>
        </div>

        <?php $nameInput='embed'; $nameObj='Código Embed'; ?>
        <div class="form-group col-xs-12 list-group-item <?php if($errors->first($nameInput)): ?> has-error <?php endif; ?>  ">
            <?php echo e(Form::label($nameInput, $nameObj,['class'=>'control-label'])); ?>

            <?php echo e(Form::textarea($nameInput, '', ['id'=>$nameInput,'placeholder'=>$nameObj,'class'=>'materialize-textarea' ])); ?>

            <?php if($errors->first($nameInput)): ?><div class="new badge red"><?php echo e($errors->first($nameInput)); ?> </div><?php endif; ?>
        </div>

       <?php $nameInput='description'; $nameObj='Descripción del recurso'; ?>
        <div class="form-group col-xs-12 list-group-item <?php if($errors->first($nameInput)): ?> has-error <?php endif; ?>  ">
            <?php echo e(Form::label($nameInput, $nameObj,['class'=>'control-label'])); ?>

            <?php echo e(Form::text($nameInput, '', ['id'=>$nameInput,'placeholder'=>$nameObj,'class'=>'form-control' ])); ?>

            <?php if($errors->first($nameInput)): ?><div class="new badge red"><?php echo e($errors->first($nameInput)); ?> </div><?php endif; ?>
        </div>          

      <hr>
      <div class="row">
            <div class="col-md-12">
                    <button type="submit" id="send" onClick="capture()" class="btn btn-primary btn-lg btn-block waves-effect waves-light">
                            <i class="fa fa-save"></i> Guardar Datos
                    </button>
            </div>
      </div>
      <div class="row">
            <div class="col-md-12">
                    <a class="btn btn-danger btn-lg btn-block waves-effect waves-light" href="<?php echo e(route('multimedia.index')); ?>">
                            <i class="fa fa-close"></i> Cancelar
                    </a>
            </div>
      </div>
      <hr>
    <?php echo Form::close(); ?>

</div>

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

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

<?php $__env->startSection('scripts'); ?>

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