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

<?php $__env->startSection('titleTable'); ?>
  Relacionar Categorias a Apoyos
<?php $__env->stopSection(); ?>

<?php $__env->startSection('headerTable'); ?>
  <th data-field="number" data-sortable="true">#</th>
  <th data-field="support" data-sortable="true">Apoyo</th>
  <th data-field="product" data-sortable="true">Categoría</th>
  <th data-field="status" data-sortable="true">Estado</th>
  <th data-field="actions" data-events="operateEvents" data-width="80"></th>
<?php $__env->stopSection(); ?>

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

<div class="row">
  <div class="col-md-12">
      <div class="modal fade" tabindex="-1"  data-backdrop="static"  role="dialog" id="modal-register">
          <div class="modal-dialog">
              <div class="modal-content">
                  <div class="modal-header">
                      <h4 class="modal-title"></h4>
                      <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                  </div>
                  <div class="modal-body">
                    <form method="POST" action="<?php echo e(Request::url()); ?>" id="frm" class="needs-validation" enctype="multipart/form-data" novalidate>
                        <?php echo csrf_field(); ?>
                            <input type="hidden" name="action" id="action" value=""/>
                            <input type="hidden" name="id" id="id" value="0">
                            <div class="form-group">
                            <label for="supports_id">Apoyo:</label>
                            <select type="text" class="form-control" id="supports_id" name="supports_id">
                                <option value="">seleccione...</option>
                                <?php if(isset($supports)): ?>
                                    <?php $__currentLoopData = $supports; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $element): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($element['id']); ?>"><?php echo e($element['name']); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <?php endif; ?>
                            </select>
                        </div>
                        <div class="form-group">
                            <label for="categories_id">Categoria de Producto:</label>
                            <select type="text" class="form-control" id="categories_id" name="categories_id">
                                <option value="">seleccione...</option>
                                <?php if(isset($categories)): ?>
                                    <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $element): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($element['id']); ?>"><?php echo e($element['name']); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <?php endif; ?>
                            </select>
                        </div>
                        <div class="form-group" id="activeMain">
                            <label for="active">¿Activo?</label>
                            <div class="custom-control custom-switch">
                              <input type="checkbox" class="custom-control-input" name="active" id="active" checked>
                              <label class="custom-control-label" for="active">Deslice a la derecha para activar</label>
                            </div>
                          </div>
                    </div>
                  <div class="modal-footer">
                      <button type="submit" class="btn btn-primary" id="save">Guardar</button>
                      <button type="button" class="btn btn-secondary" data-dismiss="modal">Cerrar</button>
                  </div>
                </form>
              </div>
          </div>
      </div>
  </div>
</div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('jsForm'); ?>
  <script src="../assets/js/SupportProduct.js"></script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('base.forms', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\laragon\www\ApoyosPresidencia\resources\views/catalogs/supportProduct.blade.php ENDPATH**/ ?>