<div class="right_col" role="main">

        <div class="col-md-12 col-sm-12 col-xs-12">
              <div class="x_panel">
                <div class="x_title">
                  <h2>Formatos - Leyenda</h2>
                  
                  <div class="clearfix"></div>
                </div>
<div class="row">
  <div class="col-md-8 col-lg-8 col-md-offset-1">
    <div class="panel panel-default">
        <div class="panel-body">
          <form action="#" method="POST" id="formLeyenda" accept-charset="UTF-8">
            <?php echo e(csrf_field()); ?>

            
            <div class="form-group">
              <label class="col-md-2 col-xs-12 col-sm-2 control-label">Formato: <span class="required">*</span> </label>
              <div class="col-md-10 col-xs-12 col-sm-10 ">
                <select name="formato" id="formato" class="form-control">
                  <option value="0">Formato</option>
                  <?php $__currentLoopData = $formatos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $f): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <option value="<?php echo e($f->id_for); ?>"><?php echo e($f->nombre_for); ?></option>
                  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </select>
                <div id="errorFormato" style="color: red"></div>
              </div>
              <br><br>
            </div>
            <div class="form-group">
              <label class="col-md-2 col-xs-12 col-sm-2 control-label">Primera leyenda: <span class="required"></span></label>
              <div class="col-md-10 col-xs-12 col-sm-10 ">
                <input type="text" name="izquierda_ley" id="izquierda_ley" class="form-control">
                <div id="errorIzquierda" style="color: red"></div>
              </div>
              <br><br>
            </div>
            <div class="form-group">
              <label class="col-md-2 col-xs-12 col-sm-2 control-label">Segunda leyenda: <span class="required"></span></label>
              <div class="col-md-10 col-xs-12 col-sm-10 ">
                <input type="text" name="derecha_ley" id="derecha_ley" class="form-control">
                <div id="errorDerecha" style="color: red"></div>
              </div>
              <br><br>
            </div>
            <br><br>
            <div class="footer">
              <div class="col-md-6 col-md-offset-4">
                <button type="button" class="btn btn-primary btn-xs" onclick="javascript:registrar_leyenda();"><span class="fa fa-upload"></span> Registrar</button>
              </div>
            </div>
          </form>
        </div>
      </div>
    </div>
  </div>
</div>
</div>

 <!-- MODAL DE MENSAJES -->
    <div class="modal fade" id="msjModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">&times;</span>
            </button>
            <h4 class="modal-title" id="miModalLabel">Información</h4>
          </div>
          <div class="modal-body">
              <h3><p class="mnsj" id="mnsj"></p></h3>

              <div class="modal-footer">
                <button type="button" class="btn btn-warning" data-dismiss="modal">
                  <span class='fa fa-remove'></span> Cerrar
                </button>
              </div>
      </div>
    </div>
  </div>
</div>
</div>