<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
  <!-- Content Header (Page header) -->
  <section class="content-header">
    <h1>
      Gérer les
      <small>Staffs</small>
    </h1>
    <ol class="breadcrumb">
      <li><a href="#"><i class="fa fa-dashboard"></i> Accueil</a></li>
      <li class="active">Staff</li>
    </ol>
  </section>

  <!-- modification tandroany al -->

  <?= $this->extend('layouts/adminlte') ?>
  <?= $this->section('content') ?>

  <!-- Main content -->
  <section class="content">
    <!-- Small boxes (Stat box) -->
    <div class="row">
      <div class="col-md-12 col-xs-12">

        <?php if (session()->getFlashdata('success')): ?>
        <div class="alert alert-success alert-dismissible" role="alert">
          <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span
              aria-hidden="true">&times;</span></button>
          <?php echo session()->getFlashdata('success'); ?>
        </div>
        <?php elseif (session()->getFlashdata('error')): ?>
        <div class="alert alert-error alert-dismissible" role="alert">
          <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span
              aria-hidden="true">&times;</span></button>
          <?php echo session()->getFlashdata('error'); ?>
        </div>
        <?php endif; ?>

        <div class="box">
          <div class="box-header">
            <h3 class="box-title">Mise à jour de staff</h3>
          </div>
          <form role="form" action="<?php base_url('groups/update') ?>" method="post">
            <div class="box-body">
              <!-- Voulez-vous vraiment supprimer ? -->

              <!-- validation -->
              <?php if (isset($validation)): ?>
              <div class="alert alert-danger">
                <ul>
                  <?php foreach ($validation->getErrors() as $error): ?>
                  <li><?= esc($error) ?></li>
                  <?php endforeach; ?>
                </ul>
              </div>
              <?php endif; ?>

              <div class="form-group">
                <label for="group_name">Désignation</label>
                <input type="text" class="form-control" id="group_name" name="group_name" placeholder="Enter group name"
                  value="<?php echo $group_data['group_name']; ?>">
              </div>
              <div class="form-group">
                <label for="permission">Permission</label>

                <?php $serialize_permission = unserialize($group_data['permission']); ?>

                <table class="table table-responsive">
                  <thead>
                    <tr>
                      <th></th>
                      <th>Créer</th>
                      <th>Mise à jour</th>
                      <th>Voir</th>
                      <th>Supprimer</th>
                      <th>Assigner</th>
                    </tr>
                  </thead>
                  <tbody>
                    <td>Espace Commercial</td>
                    <td>-</td>
                    <td><input type="checkbox" name="permission[]" id="permission" value="updateCom" class="minimal"
                        <?php if ($serialize_permission) {
                                                          if (in_array('updateCom', $serialize_permission)) {
                                                            echo "checked";
                                                          }
                                                        } ?>>
                    </td>
                    <td><input type="checkbox" name="permission[]" id="permission" value="viewCom" class="minimal"
                        <?php if ($serialize_permission) {
                                                          if (in_array('viewCom', $serialize_permission)) {
                                                            echo "checked";
                                                          }
                                                        } ?>>
                    </td>
                    <td>-</td>
                    <td>-</td>
                    </tr>
                    <tr>
                      <td>Utilisateurs</td>
                      <td><input type="checkbox" class="minimal" name="permission[]" id="permission" class="minimal"
                          value="createUser"
                          <?php if ($serialize_permission) {
                                                            if (in_array('createUser', $serialize_permission)) {
                                                              echo "checked";
                                                            }
                                                          } ?>>
                      </td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="updateUser"
                          <?php
                              if ($serialize_permission) {
                                if (in_array('updateUser', $serialize_permission)) {
                                  echo "checked";
                                }
                              }
                              ?>>
                      </td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="viewUser"
                          <?php
                            if ($serialize_permission) {
                              if (in_array('viewUser', $serialize_permission)) {
                                echo "checked";
                              }
                            }
                            ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="deleteUser"
                          <?php
                            if ($serialize_permission) {
                              if (in_array('deleteUser', $serialize_permission)) {
                                echo "checked";
                              }
                            }
                            ?>></td>
                    <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="assignerUser"
                          <?php
                            if ($serialize_permission) {
                              if (in_array('assignerUser', $serialize_permission)) {
                                echo "checked";
                              }
                            }
                            ?>></td>
                    </tr>
                    <tr>
                      <td>Rôle</td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="createGroup"
                          <?php
                            if ($serialize_permission) {
                              if (in_array('createGroup', $serialize_permission)) {
                                echo "checked";
                              }
                            }
                            ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="updateGroup"
                          <?php
                              if ($serialize_permission) {
                                if (in_array('updateGroup', $serialize_permission)) {
                                  echo "checked";
                                }
                              }
                              ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="viewGroup"
                          <?php
                              if ($serialize_permission) {
                                if (in_array('viewGroup', $serialize_permission)) {
                                  echo "checked";
                                }
                              }
                              ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="deleteGroup"
                          <?php
                              if ($serialize_permission) {
                                if (in_array('deleteGroup', $serialize_permission)) {
                                  echo "checked";
                                }
                              }
                              ?>></td>
                      <td>-</td>
                    </tr>
                    <tr>
                      <td>Marques</td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="createBrand"
                          <?php if ($serialize_permission) {
                                if (in_array('createBrand', $serialize_permission)) {
                                  echo "checked";
                                }
                              } ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="updateBrand"
                          <?php if ($serialize_permission) {
                                if (in_array('updateBrand', $serialize_permission)) {
                                  echo "checked";
                                }
                              } ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="viewBrand"
                          <?php if ($serialize_permission) {
                                  if (in_array('viewBrand', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="deleteBrand"
                          <?php if ($serialize_permission) {
                                  if (in_array('deleteBrand', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td>-</td>
                    </tr>
                    <tr>
                      <td>Categories</td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal"
                          value="createCategory"
                          <?php if ($serialize_permission) {
                                  if (in_array('createCategory', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal"
                          value="updateCategory"
                          <?php if ($serialize_permission) {
                                  if (in_array('updateCategory', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal"
                          value="viewCategory"
                          <?php if ($serialize_permission) {
                                  if (in_array('viewCategory', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal"
                          value="deleteCategory"
                          <?php if ($serialize_permission) {
                                  if (in_array('deleteCategory', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td>-</td>
                    </tr>
                    <tr>
                      <td>Point de ventes</td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="createStore"
                          <?php if ($serialize_permission) {
                                  if (in_array('createStore', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="updateStore"
                          <?php if ($serialize_permission) {
                                  if (in_array('updateStore', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="viewStore"
                          <?php if ($serialize_permission) {
                                  if (in_array('viewStore', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="deleteStore"
                          <?php if ($serialize_permission) {
                                  if (in_array('deleteStore', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="assignStore"
                          <?php if ($serialize_permission) {
                                  if (in_array('assignStore', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                    </tr>

                    <td>Mécanicien</td>
                    <td><input type="checkbox" name="permission[]" id="permission" value="createMecanicien"
                        class="minimal"
                        <?php if ($serialize_permission) {
                                if (in_array('createMecanicien', $serialize_permission)) {
                                  echo "checked";
                                }
                              } ?>>
                    </td>
                    <td><input type="checkbox" name="permission[]" id="permission" value="updateMecanicien"
                        class="minimal"
                        <?php if ($serialize_permission) {
                                if (in_array('updateMecanicien', $serialize_permission)) {
                                  echo "checked";
                                }
                              } ?>>
                    </td>
                    <td><input type="checkbox" name="permission[]" id="permission" value="viewMecanicien"
                        class="minimal"
                        <?php if ($serialize_permission) {
                              if (in_array('viewMecanicien', $serialize_permission)) {
                                echo "checked";
                              }
                            } ?>>
                    </td>
                    <td><input type="checkbox" name="permission[]" id="permission" value="deleteMecanicien"
                        class="minimal"
                        <?php if ($serialize_permission) {
                                if (in_array('deleteMecanicien', $serialize_permission)) {
                                  echo "checked";
                                }
                              } ?>>
                    </td>
                    <td>-</td>
                    </tr>
                    <tr>
                      <td>Attributs</td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal"
                          value="createAttribute"
                          <?php if ($serialize_permission) {
                                    if (in_array('createAttribute', $serialize_permission)) {
                                      echo "checked";
                                    }
                                  } ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal"
                          value="updateAttribute"
                          <?php if ($serialize_permission) {
                                  if (in_array('updateAttribute', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal"
                          value="viewAttribute"
                          <?php if ($serialize_permission) {
                                  if (in_array('viewAttribute', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal"
                          value="deleteAttribute"
                          <?php if ($serialize_permission) {
                                  if (in_array('deleteAttribute', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td>-</td>
                    </tr>
                    <tr>
                      <td>Produits</td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal"
                          value="createProduct"
                          <?php if ($serialize_permission) {
                                  if (in_array('createProduct', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal"
                          value="updateProduct"
                          <?php if ($serialize_permission) {
                                  if (in_array('updateProduct', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="viewProduct"
                          <?php if ($serialize_permission) {
                                  if (in_array('viewProduct', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal"
                          value="deleteProduct"
                          <?php if ($serialize_permission) {
                                  if (in_array('deleteProduct', $serialize_permission)) {
                                  echo "checked";
                                  }
                                  } ?>></td>
                      <td>-</td>
                    </tr>
                    <tr>
                      <td>Commandes</td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="createOrder"
                          <?php if ($serialize_permission) {
                                  if (in_array('createOrder', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="updateOrder"
                          <?php if ($serialize_permission) {
                                  if (in_array('updateOrder', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="viewOrder"
                          <?php if ($serialize_permission) {
                                  if (in_array('viewOrder', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="deleteOrder"
                          <?php if ($serialize_permission) {
                                  if (in_array('deleteOrder', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td>-</td>
                    </tr>
                    <tr>
                      <td>Recouvrement</td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="viewRecouvrement"
                          <?php if ($serialize_permission) {
                                  if (in_array('viewRecouvrement', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="createRecouvrement"
                          <?php if ($serialize_permission) {
                                  if (in_array('createRecouvrement', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="updateRecouvrement"
                          <?php if ($serialize_permission) {
                                  if (in_array('updateRecouvrement', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="deleteRecouvrement"
                          <?php if ($serialize_permission) {
                                  if (in_array('deleteRecouvrement', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td>-</td>
                    </tr>

                    <tr>
                      <td>Sortie caisse</td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="viewSortieCaisse"
                          <?php if ($serialize_permission) {
                                  if (in_array('viewSortieCaisse', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="createSortieCaisse"
                          <?php if ($serialize_permission) {
                                  if (in_array('createSortieCaisse', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="updateSortieCaisse"
                          <?php if ($serialize_permission) {
                                  if (in_array('updateSortieCaisse', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="deleteSortieCaisse"
                          <?php if ($serialize_permission) {
                                  if (in_array('deleteSortieCaisse', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                                <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="validateSortieCaisse"
                          <?php if ($serialize_permission) {
                                  if (in_array('validateSortieCaisse', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                    </tr>
                    <tr>
  <td>Autres encaissements</td>
  <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="createEncaissement"
      <?php if ($serialize_permission) {
            if (in_array('createEncaissement', $serialize_permission)) {
              echo "checked";
            }
          } ?>></td>
  <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="updateEncaissement"
      <?php if ($serialize_permission) {
            if (in_array('updateEncaissement', $serialize_permission)) {
              echo "checked";
            }
          } ?>></td>
  <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="viewEncaissement"
      <?php if ($serialize_permission) {
            if (in_array('viewEncaissement', $serialize_permission)) {
              echo "checked";
            }
          } ?>></td>
  <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="deleteEncaissement"
      <?php if ($serialize_permission) {
            if (in_array('deleteEncaissement', $serialize_permission)) {
              echo "checked";
            }
          } ?>>
</tr>
                    <tr>
                      <td>Remise</td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="viewRemise"
                          <?php if ($serialize_permission) {
                                  if (in_array('viewRemise', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="validateRemise"
                          <?php if ($serialize_permission) {
                                  if (in_array('validateRemise', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="refusedRemise"
                          <?php if ($serialize_permission) {
                                  if (in_array('refusedRemise', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                    </tr>
                    <tr>
                      <td>Validation Commande</td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="validateCommande1"
                          <?php if ($serialize_permission) {
                                  if (in_array('validateCommande1', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="updateCommande1"
                          <?php if ($serialize_permission) {
                                  if (in_array('updateCommande1', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="deleteCommande1"
                          <?php if ($serialize_permission) {
                                  if (in_array('deleteCommande1', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                          
                    </tr>
                    <tr>
                      <td>Sécurité</td>
                
                      <td> <input type="checkbox" name="permission[]" id="permission" class="minimal" value="createSecurite"
                          <?php if ($serialize_permission) {
                                    if (in_array('createSecurite', $serialize_permission)) {
                                      echo "checked";
                                    }
                                  } ?>> </td>

                      <td> <input type="checkbox" name="permission[]" id="permission" class="minimal" value="updateSecurite"
                          <?php if ($serialize_permission) {
                                    if (in_array('updateSecurite', $serialize_permission)) {
                                      echo "checked";
                                    }
                                  } ?>> </td>
                    <td> <input type="checkbox" name="permission[]" id="permission" class="minimal" value="viewSecurite"
                          <?php if ($serialize_permission) {
                                    if (in_array('viewSecurite', $serialize_permission)) {
                                      echo "checked";
                                    }
                                  } ?>> </td>
                    <td> <input type="checkbox" name="permission[]" id="permission" class="minimal" value="deleteSecurite"
                          <?php if ($serialize_permission) {
                                    if (in_array('deleteSecurite', $serialize_permission)) {
                                      echo "checked";
                                    }
                                  } ?>> </td>
                    </tr>
                    
                    <tr>
                      <td>Avances</td>
                
                      <td> <input type="checkbox" name="permission[]" id="permission" class="minimal" value="createAvance"
                          <?php if ($serialize_permission) {
                                    if (in_array('createAvance', $serialize_permission)) {
                                      echo "checked";
                                    }
                                  } ?>> </td>

                      <td> <input type="checkbox" name="permission[]" id="permission" class="minimal" value="updateAvance"
                          <?php if ($serialize_permission) {
                                    if (in_array('updateAvance', $serialize_permission)) {
                                      echo "checked";
                                    }
                                  } ?>> </td>
                    <td> <input type="checkbox" name="permission[]" id="permission" class="minimal" value="viewAvance"
                          <?php if ($serialize_permission) {
                                    if (in_array('viewAvance', $serialize_permission)) {
                                      echo "checked";
                                    }
                                  } ?>> </td>
                    <td> <input type="checkbox" name="permission[]" id="permission" class="minimal" value="deleteAvance"
                          <?php if ($serialize_permission) {
                                    if (in_array('deleteAvance', $serialize_permission)) {
                                      echo "checked";
                                    }
                                  } ?>> </td>
                    </tr>

                    <tr>
                      <td>Rapports</td>
                      <td> - </td>
                      <td> - </td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="viewReports"
                          <?php if ($serialize_permission) {
                                    if (in_array('viewReports', $serialize_permission)) {
                                      echo "checked";
                                    }
                                  } ?>></td>
                      <td> - </td>
                      <td>-</td>
                    </tr>
                    <tr>
                      <td>Entreprise</td>
                      <td> - </td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal"
                          value="updateCompany"
                          <?php if ($serialize_permission) {
                                  if (in_array('updateCompany', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td> - </td>
                      <td> - </td>
                      <td>-</td>
                    </tr>
                    <tr>
                      <td>Profile</td>
                      <td> - </td>
                      <td> - </td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="viewProfile"
                          <?php if ($serialize_permission) {
                                  if (in_array('viewProfile', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td> - </td>
                      <td>-</td>
                    </tr>

                    <tr>
                      <td>Historique</td>
                      <td> - </td>
                      <td> - </td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal" value="viewhistorique"
                          <?php if ($serialize_permission) {
                                  if (in_array('viewhistorique', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td> - </td>
                      <td>-</td>
                    </tr>

                    <tr>
                      <td>Paramètre</td>
                      <td>-</td>
                      <td><input type="checkbox" name="permission[]" id="permission" class="minimal"
                          value="updateSetting"
                          <?php if ($serialize_permission) {
                                  if (in_array('updateSetting', $serialize_permission)) {
                                    echo "checked";
                                  }
                                } ?>></td>
                      <td> - </td>
                      <td> - </td>
                      <td>-</td>
                    </tr>
                  </tbody>
                </table>

              </div>
            </div>
            <!-- /.box-body -->

            <div class="box-footer">
              <button type="submit" class="btn btn-primary">Mettre à jour</button>
              <a href="<?php echo base_url('groups/') ?>" class="btn btn-warning">Retour</a>
            </div>
          </form>
        </div>
        <!-- /.box -->
      </div>
      <!-- col-md-12 -->
    </div>
    <!-- /.row -->


  </section>
  <!-- /.content -->
</div>
<!-- /.content-wrapper -->

<script type="text/javascript">
  $(document).ready(function () {
    $("#mainUserNav").addClass('active');
    $("#manageGroupNav").addClass('active');

    $('input[type="checkbox"].minimal').iCheck({
      checkboxClass: 'icheckbox_minimal-blue',
      radioClass: 'iradio_minimal-blue'
    });
  });
</script>