<?php if ($_GET['page'] == 'packetList'){  ?>
<div class="card">
  <div class="card-body table-responsive">
    <table id="dataTable" class="table table-bordered table-striped">
      <thead>
        <tr>
          <th><?php echo $langArray['TABLE_ORDER_SORT']; ?></th>
          <th><?php echo $langArray['GLOBAL_FORM_TABLE_CATEGORIES']; ?></th>
          <th><?php echo $langArray['GLOBAL_FORM_TABLE_TITLE']; ?></th>
          <th><?php echo $langArray['TABLE_OPERATION']; ?></th>
        </tr>
      </thead>
      <tbody>
        <?php
            $allPackAsk->execute(array(
              'language'        => $getLangCheck['language_id']
            ));
           while ($allPackCheck=$allPackAsk->fetch(PDO::FETCH_ASSOC)){
         ?>
          <tr>
            <td><?php echo $allPackCheck['order_sort']; ?></td>
            <td>
              <?php
                $allCategoriesIdAsk->execute(array(
                  'categories_id' => $allPackCheck["categories"],
                  'categories_type' => "packet_categories",
                  'language'        => $getLangCheck['language_id']
                ));
                while ($allCategoriesCheck=$allCategoriesIdAsk->fetch(PDO::FETCH_ASSOC)){
              ?>
                <?php echo $allCategoriesCheck['title']; ?>
              <?php } ?>
            </td>
            <td><?php echo $allPackCheck['title']; ?></td>
            <td>
               <a class="btn btn-light" href="index.php?page=packetEdit&packet_id=<?php echo $allPackCheck['packet_id'] ?>"><?php echo $langArray['TABLE_EDIT']; ?></a>
               <a class="btn btn-danger" data-toggle="modal" data-target="#dataDelete-<?php echo $allPackCheck['packet_id']?>"><?php echo $langArray['TABLE_DELETE']; ?></a>
               <div class="modal fade" id="dataDelete-<?php echo  $allPackCheck['packet_id'] ?>">
                 <div class="modal-dialog customDialog">
                   <div class="modal-content bg-danger">
                     <div class="modal-header">
                       <h4 class="modal-title"><?php echo $langArray['ARE_YOU_SURE']; ?></h4>
                     </div>
                     <div class="modal-footer justify-content-between">
                       <button type="button" class="btn btn-outline-light" data-dismiss="modal"><?php echo $langArray['CANCEL_FORM']; ?></button>
                       <a href="system/operation.php?packet_id=<?php echo $allPackCheck['packet_id']; ?>&packetDelete=success" class="btn btn-outline-light"><?php echo $langArray['TABLE_DELETE']; ?></a>
                     </div>
                   </div>
                 </div>
               </div>
            </td>
          </tr>
        <?php } ?>
      </tbody>
      <tfoot>
        <tr>
          <th><?php echo $langArray['TABLE_ORDER_SORT']; ?></th>
          <th><?php echo $langArray['GLOBAL_FORM_TABLE_CATEGORIES']; ?></th>
          <th><?php echo $langArray['GLOBAL_FORM_TABLE_TITLE']; ?></th>
          <th><?php echo $langArray['TABLE_OPERATION']; ?></th>
        </tr>
      </tfoot>
    </table>
  </div>
</div>
<?php }elseif($_GET['page'] == 'packetAdd'){  ?>
<div class="card">
  <div class="card-body">
    <form action="system/operation.php" method="post" enctype="multipart/form-data" data-parsley-validate>
      <input type="hidden" name="language_id" value="<?=$getLangCheck["language_id"] ?>">
      <div class="row">
        <div class="col-md-12">
          <div class="card card-secondary">
            <div class="card-body">
              <div class="row">
                <div class="col-md-6">
                  <!-- #form-group -->
                  <div class="form-group">
                    <label for="categories"><?php echo $langArray['GLOBAL_FORM_TABLE_CATEGORIES']; ?></label>
                    <select class="form-control select2" name="categories">
                      <?php
                        $allCategoriesAsk->execute(array(
                          'categories_type' => "packet_categories",
                          'language'        => $getLangCheck['language_id']
                        ));
                        while ($allCategoriesCheck=$allCategoriesAsk->fetch(PDO::FETCH_ASSOC)){
                      ?>
                        <option value="<?php echo $allCategoriesCheck['categories_id']; ?>"><?php echo $allCategoriesCheck['title']; ?></option>
                      <?php } ?>
                    </select>
                  </div>
                </div>
                <div class="col-md-6">
                  <!-- #form-group -->
                  <div class="form-group">
                    <label for="title"><?php echo $langArray['GLOBAL_FORM_TABLE_TITLE']; ?></label>
                    <input type="text" name="title" class="form-control">
                  </div>
                </div>
                <div class="col-md-6">
                  <!-- #form-group -->
                  <div class="form-group">
                    <label for="features"><?php echo $langArray['GLOBAL_PACKET_FEATURES']; ?></label>
                    <select class="form-control select2" name="features[]" multiple="multiple">
                      <?php
                        $allPackFeatureAsk->execute(array(
                          'language'        => $getLangCheck['language_id']
                        ));
                       while ($allPackFeatureCheck=$allPackFeatureAsk->fetch(PDO::FETCH_ASSOC)){
                      ?>
                        <option value="<?php echo $allPackFeatureCheck['feature_id']; ?>"><?php echo $allPackFeatureCheck['title']; ?></option>
                      <?php } ?>
                    </select>
                  </div>
                </div>
                <div class="col-md-6">
                  <!-- #form-group -->
                  <div class="form-group">
                    <label for="price"><?php echo $langArray['GLOBAL_PACKET_PRICE']; ?></label>
                    <input type="text" name="price" class="form-control">
                  </div>
                </div>
                <div class="col-md-6">
                  <!-- #form-group -->
                  <div class="form-group">
                    <label for="option_type"><?php echo $langArray['GLOBAL_PACKET_DATE_TYPE']; ?></label>
                    <input type="text" name="option_type" class="form-control">
                  </div>
                </div>
                <div class="col-md-6">
                  <!-- #form-group -->
                  <div class="form-group">
                    <label for="currency"><?php echo $langArray['GLOBAL_PACKET_CURRENCY']; ?></label>
                    <input type="text" name="currency" class="form-control">
                  </div>
                </div>
                <div class="col-md-3">
                  <!-- #form-group -->
                  <div class="form-group">
                    <label for="suggested"><?php echo $langArray['GLOBAL_PACKET_SUGGESTED']; ?></label>
                    <div class="input-group">
                      <input type="checkbox" id="suggested" name="suggested[]"  data-bootstrap-switch data-off-color="danger" data-on-color="success">
                    </div>
                  </div>
                </div>
                <div class="col-md-3">
                  <!-- #form-group -->
                  <div class="form-group">
                    <label for="status"><?php echo $langArray['TABLE_STATUS']; ?></label>
                    <div class="input-group">
                      <input type="checkbox" id="status" name="status[]" value="" checked data-bootstrap-switch data-off-color="danger" data-on-color="success">
                    </div>
                  </div>
                </div>
                <div class="col-md-6">
                  <!-- #form-group -->
                  <div class="form-group">
                    <label for="order_sort"><?php echo $langArray['TABLE_ORDER_SORT']; ?></label>
                    <input type="number" name="order_sort" class="form-control" value="<?php echo $packetCount+1; ?>">
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="col-12">
            <a href="packetList" class="btn btn-secondary"><?php echo $langArray['CANCEL_FORM']; ?></a>
            <input type="submit" value="<?php echo $langArray['CREATE_FORM']; ?>" class="btn btn-success float-right" name="packetAdd">
          </div>
          <div class="clearfix"></div>
        </div>
      </div>
    </form>
  </div>
</div>
<?php }elseif($_GET['page'] == 'packetEdit'){  ?>
<?php
  $askData=$db->prepare("SELECT * FROM packets where packet_id=:packet_id");
  $askData->execute(array(
    'packet_id' => $_GET["packet_id"]
    ));
  $checkData=$askData->fetch(PDO::FETCH_ASSOC);
  // $_GET null or nothing
  if ($_GET['packet_id'] == null) {
    Header("Location:packetList");
  }elseif($_GET['packet_id'] != $checkData['packet_id']){
    Header("Location:packetList");
  }
?>
<div class="card">
  <div class="card-body">
    <form action="system/operation.php" method="post" enctype="multipart/form-data" data-parsley-validate>
      <input type="hidden" name="packet_id" value="<?=$checkData["packet_id"] ?>">
      <div class="row">
        <div class="col-md-12">
          <div class="card card-secondary">
            <div class="card-body">
              <div class="row">
                <div class="col-md-6">
                  <!-- #form-group -->
                  <div class="form-group">
                    <label for="categories"><?php echo $langArray['GLOBAL_FORM_TABLE_CATEGORIES']; ?></label>
                    <select class="form-control select2" name="categories">
                      <?php
                        $allCategoriesAsk->execute(array(
                          'categories_type' => "packet_categories",
                          'language'        => $getLangCheck['language_id']
                        ));
                        while ($allCategoriesCheck=$allCategoriesAsk->fetch(PDO::FETCH_ASSOC)){
                      ?>
                        <option <?php echo $allCategoriesCheck['categories_id'] == $checkData["categories"] ? 'selected=""' : ''; ?> value="<?php echo $allCategoriesCheck['categories_id']; ?>"><?php echo $allCategoriesCheck['title']; ?></option>
                      <?php } ?>
                    </select>
                  </div>
                </div>
                <div class="col-md-6">
                  <!-- #form-group -->
                  <div class="form-group">
                    <label for="title"><?php echo $langArray['GLOBAL_FORM_TABLE_TITLE']; ?></label>
                    <input type="text" name="title" class="form-control" value="<?php echo $checkData["title"]; ?>">
                  </div>
                </div>
                <div class="col-md-6">
                  <!-- #form-group -->
                  <div class="form-group">
                    <label for="features"><?php echo $langArray['GLOBAL_PACKET_FEATURES']; ?></label>
                    <select class="form-control select2" name="features[]" multiple="multiple">
                      <?php
                        $allPackFeatureAsk->execute(array(
                          'language'        => $getLangCheck['language_id']
                        ));
                       while ($allPackFeatureCheck=$allPackFeatureAsk->fetch(PDO::FETCH_ASSOC)){
                         $tags = explode(",",$checkData['features']);
                      ?>
                        <option value="<?php echo $allPackFeatureCheck['feature_id']; ?>" <?php if(in_array($allPackFeatureCheck['feature_id'], $tags)){ echo ' selected=""'; } ?>><?php echo $allPackFeatureCheck['title']; ?></option>
                      <?php } ?>
                    </select>
                  </div>
                </div>
                <div class="col-md-6">
                  <!-- #form-group -->
                  <div class="form-group">
                    <label for="price"><?php echo $langArray['GLOBAL_PACKET_PRICE']; ?></label>
                    <input type="text" name="price" class="form-control" value="<?php echo $checkData["price"]; ?>">
                  </div>
                </div>
                <div class="col-md-6">
                  <!-- #form-group -->
                  <div class="form-group">
                    <label for="option_type"><?php echo $langArray['GLOBAL_PACKET_DATE_TYPE']; ?></label>
                    <input type="text" name="option_type" class="form-control" value="<?php echo $checkData["option_type"]; ?>">
                  </div>
                </div>
                <div class="col-md-6">
                  <!-- #form-group -->
                  <div class="form-group">
                    <label for="currency"><?php echo $langArray['GLOBAL_PACKET_CURRENCY']; ?></label>
                    <input type="text" name="currency" class="form-control" value="<?php echo $checkData["currency"]; ?>">
                  </div>
                </div>
                <div class="col-md-3">
                  <!-- #form-group -->
                  <div class="form-group">
                    <label for="suggested"><?php echo $langArray['GLOBAL_PACKET_SUGGESTED']; ?></label>
                    <div class="input-group">
                      <input type="checkbox" id="suggested" name="suggested[]"  <?php echo $checkData['suggested'] == "1" ? 'checked=""' : ''; ?>  data-bootstrap-switch data-off-color="danger" data-on-color="success">
                    </div>
                  </div>
                </div>
                <div class="col-md-3">
                  <!-- #form-group -->
                  <div class="form-group">
                    <label for="status"><?php echo $langArray['TABLE_STATUS']; ?></label>
                    <div class="input-group">
                      <input type="checkbox" id="status" name="status[]" value="" <?php echo $checkData['status'] == "1" ? 'checked=""' : ''; ?> data-bootstrap-switch data-off-color="danger" data-on-color="success">
                    </div>
                  </div>
                </div>
                <div class="col-md-6">
                  <!-- #form-group -->
                  <div class="form-group">
                    <label for="order_sort"><?php echo $langArray['TABLE_ORDER_SORT']; ?></label>
                    <input type="number" name="order_sort" class="form-control" value="<?php echo $checkData["order_sort"]; ?>">
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="col-12">
            <a href="packetList" class="btn btn-secondary"><?php echo $langArray['CANCEL_FORM']; ?></a>
            <input type="submit" value="<?php echo $langArray['UPDATE_FORM']; ?>" class="btn btn-warning float-right" name="packetUpdate">
          </div>
          <div class="clearfix"></div>
        </div>
      </div>
    </form>
  </div>
</div>
<?php }elseif ($_GET['page'] == 'packetFeaturesList'){  ?>
<div class="card">
  <div class="card-body">
    <table id="dataTable" class="table table-bordered table-striped">
      <thead>
        <tr>
          <th><?php echo $langArray['TABLE_ORDER_SORT']; ?></th>
          <th><?php echo $langArray['GLOBAL_FORM_TABLE_TITLE']; ?></th>
          <th><?php echo $langArray['TABLE_OPERATION']; ?></th>
        </tr>
      </thead>
      <tbody>
        <?php
            $allPackFeatureAsk->execute(array(
              'language'        => $getLangCheck['language_id']
            ));
           while ($allPackFeatureCheck=$allPackFeatureAsk->fetch(PDO::FETCH_ASSOC)){
        ?>
          <tr>
            <td><?php echo $allPackFeatureCheck['order_sort']; ?></td>
            <td><?php echo $allPackFeatureCheck['title']; ?></td>
            <td>
               <a class="btn btn-light" href="index.php?page=packetFeatureEdit&feature_id=<?php echo $allPackFeatureCheck['feature_id'] ?>"><?php echo $langArray['TABLE_EDIT']; ?></a>
               <a class="btn btn-danger" data-toggle="modal" data-target="#dataDelete-<?php echo $allPackFeatureCheck['feature_id']?>"><?php echo $langArray['TABLE_DELETE']; ?></a>
               <div class="modal fade" id="dataDelete-<?php echo  $allPackFeatureCheck['feature_id'] ?>">
                 <div class="modal-dialog customDialog">
                   <div class="modal-content bg-danger">
                     <div class="modal-header">
                       <h4 class="modal-title"><?php echo $langArray['ARE_YOU_SURE']; ?></h4>
                     </div>
                     <div class="modal-footer justify-content-between">
                       <button type="button" class="btn btn-outline-light" data-dismiss="modal"><?php echo $langArray['CANCEL_FORM']; ?></button>
                       <a href="system/operation.php?feature_id=<?php echo $allPackFeatureCheck['feature_id']; ?>&packetFeatureDelete=success" class="btn btn-outline-light"><?php echo $langArray['TABLE_DELETE']; ?></a>
                     </div>
                   </div>
                 </div>
               </div>
            </td>
          </tr>
        <?php } ?>
      </tbody>
      <tfoot>
        <tr>
          <th><?php echo $langArray['TABLE_ORDER_SORT']; ?></th>
          <th><?php echo $langArray['GLOBAL_FORM_TABLE_TITLE']; ?></th>
          <th><?php echo $langArray['TABLE_OPERATION']; ?></th>
        </tr>
      </tfoot>
    </table>
  </div>
</div>
<?php }elseif($_GET['page'] == 'packetFeatureAdd'){  ?>
<div class="card">
  <div class="card-body">
    <form action="system/operation.php" method="post" enctype="multipart/form-data" data-parsley-validate>
      <input type="hidden" name="language_id" value="<?=$getLangCheck["language_id"] ?>">
      <div class="row">
        <div class="col-md-12">
          <div class="card card-secondary">
            <div class="card-body row">
              <div class="col-md-6">
                <!-- #form-group -->
                <div class="form-group">
                  <label for="title"><?php echo $langArray['GLOBAL_FORM_TABLE_TITLE']; ?></label>
                  <input type="text" name="title" class="form-control">
                </div>
              </div>
              <div class="col-md-6">
                <!-- #form-group -->
                <div class="form-group">
                  <label for="order_sort"><?php echo $langArray['TABLE_ORDER_SORT']; ?></label>
                  <input type="number" name="order_sort" class="form-control" value="<?php echo $packetfeatCount+1; ?>">
                </div>
              </div>
            </div>
          </div>
          <div class="col-12">
            <a href="packetFeaturesList" class="btn btn-secondary"><?php echo $langArray['CANCEL_FORM']; ?></a>
            <input type="submit" value="<?php echo $langArray['CREATE_FORM']; ?>" class="btn btn-success float-right" name="packetFeatureAdd">
          </div>
          <div class="clearfix"></div>
        </div>
      </div>
    </form>
  </div>
</div>
<?php }elseif($_GET['page'] == 'packetFeatureEdit'){  ?>
<?php
  $askData=$db->prepare("SELECT * FROM packet_features where feature_id=:feature_id");
  $askData->execute(array(
    'feature_id' => $_GET["feature_id"]
    ));
  $checkData=$askData->fetch(PDO::FETCH_ASSOC);
  // $_GET null or nothing
  if ($_GET['feature_id'] == null) {
    Header("Location:packetFeaturesList");
  }elseif($_GET['feature_id'] != $checkData['feature_id']){
    Header("Location:packetFeaturesList");
  }
?>
<div class="card">
  <div class="card-body">
    <form action="system/operation.php" method="post" enctype="multipart/form-data" data-parsley-validate>
      <input type="hidden" name="feature_id" value="<?=$checkData["feature_id"] ?>">
      <div class="row">
        <div class="col-md-12">
          <div class="card card-secondary">
            <div class="card-body row">
              <div class="col-md-6">
                <!-- #form-group -->
                <div class="form-group">
                  <label for="title"><?php echo $langArray['GLOBAL_FORM_TABLE_TITLE']; ?></label>
                  <input type="text" name="title" class="form-control" value="<?php echo $checkData["title"]; ?>">
                </div>
              </div>
              <div class="col-md-6">
                <!-- #form-group -->
                <div class="form-group">
                  <label for="order_sort"><?php echo $langArray['TABLE_ORDER_SORT']; ?></label>
                  <input type="number" name="order_sort" class="form-control" value="<?php echo $checkData["order_sort"]; ?>">
                </div>
              </div>
            </div>
          </div>
          <div class="col-12">
            <a href="packetFeaturesList" class="btn btn-secondary"><?php echo $langArray['CANCEL_FORM']; ?></a>
            <input type="submit" value="<?php echo $langArray['UPDATE_FORM']; ?>" class="btn btn-warning float-right" name="packetFeatureUpdate">
          </div>
          <div class="clearfix"></div>
        </div>
      </div>
    </form>
  </div>
</div>
<?php }elseif ($_GET['page'] == 'packetCategoriesList'){  ?>
<div class="card">
  <div class="card-body">
    <table id="dataTable" class="table table-bordered table-striped">
      <thead>
        <tr>
          <th><?php echo $langArray['TABLE_ORDER_SORT']; ?></th>
          <th><?php echo $langArray['GLOBAL_FORM_TABLE_TITLE']; ?></th>
          <th><?php echo $langArray['TABLE_STATUS']; ?></th>
          <th><?php echo $langArray['TABLE_OPERATION']; ?></th>
        </tr>
      </thead>
      <tbody>
        <?php
          $allCategoriesAsk->execute(array(
            'categories_type' => "packet_categories",
            'language'        => $getLangCheck['language_id']
          ));
         while ($allCategoriesCheck=$allCategoriesAsk->fetch(PDO::FETCH_ASSOC)){
         ?>
          <tr>
            <td><?php echo $allCategoriesCheck['order_sort']; ?></td>
            <td><?php echo $allCategoriesCheck['title']; ?></td>
            <td>
              <?php if ($allCategoriesCheck['status']== 1){ ?>
                <i class="fas fa-eye text-success"></i>
              <?php }else{ ?>
                <i class="fas fa-eye-slash text-danger"></i>
              <?php } ?>
            </td>
            <td>
               <a class="btn btn-light" href="index.php?page=packetCategoriesEdit&categories_id=<?php echo $allCategoriesCheck['categories_id'] ?>"><?php echo $langArray['TABLE_EDIT']; ?></a>
               <a class="btn btn-danger" data-toggle="modal" data-target="#dataDelete-<?php echo $allCategoriesCheck['categories_id']?>"><?php echo $langArray['TABLE_DELETE']; ?></a>
               <div class="modal fade" id="dataDelete-<?php echo  $allCategoriesCheck['categories_id'] ?>">
                 <div class="modal-dialog customDialog">
                   <div class="modal-content bg-danger">
                     <div class="modal-header">
                       <h4 class="modal-title"><?php echo $langArray['ARE_YOU_SURE']; ?></h4>
                     </div>
                     <div class="modal-footer justify-content-between">
                       <button type="button" class="btn btn-outline-light" data-dismiss="modal"><?php echo $langArray['CANCEL_FORM']; ?></button>
                       <a href="system/operation.php?categories_id=<?php echo $allCategoriesCheck['categories_id']; ?>&packetCategoriesDelete=success" class="btn btn-outline-light"><?php echo $langArray['TABLE_DELETE']; ?></a>
                     </div>
                   </div>
                 </div>
               </div>
            </td>
          </tr>
        <?php } ?>
      </tbody>
      <tfoot>
        <tr>
          <th><?php echo $langArray['TABLE_ORDER_SORT']; ?></th>
          <th><?php echo $langArray['GLOBAL_FORM_TABLE_TITLE']; ?></th>
          <th><?php echo $langArray['TABLE_STATUS']; ?></th>
          <th><?php echo $langArray['TABLE_OPERATION']; ?></th>
        </tr>
      </tfoot>
    </table>
  </div>
</div>
<?php }elseif($_GET['page'] == 'packetCategoriesAdd'){  ?>
<div class="card">
  <div class="card-body">
    <form action="system/operation.php" method="post" enctype="multipart/form-data" data-parsley-validate>
      <input type="hidden" name="language_id" value="<?=$getLangCheck["language_id"] ?>">
      <div class="row">
        <div class="col-md-4">
          <div class="card card-secondary">
            <div class="card-body">
              <!-- #form-group -->
              <div class="form-group">
                <label for="title"><?php echo $langArray['GLOBAL_FORM_TABLE_TITLE']; ?></label>
                <input type="text" name="title" class="form-control">
              </div>
            </div>
          </div>
          <div class="col-12">
            <a href="referenceCategoriesList" class="btn btn-secondary"><?php echo $langArray['CANCEL_FORM']; ?></a>
            <input type="submit" value="<?php echo $langArray['CREATE_FORM']; ?>" class="btn btn-success float-right" name="packetCategoriesAdd">
          </div>
          <div class="clearfix"></div>
        </div>
        <div class="col-md-8">
          <div class="card card-primary">
            <div class="card-body">
              <div class="row">
                <div class="col-md-6">
                  <!-- #form-group -->
                  <div class="form-group">
                    <label for="status"><?php echo $langArray['TABLE_STATUS']; ?></label>
                    <div class="input-group">
                      <input type="checkbox" id="status" name="status[]" checked data-bootstrap-switch data-off-color="danger" data-on-color="success">
                    </div>
                  </div>
                </div>
                <div class="col-md-6">
                  <!-- #form-group -->
                  <div class="form-group">
                    <label for="order_sort"><?php echo $langArray['TABLE_ORDER_SORT']; ?></label>
                    <input type="number" name="order_sort" class="form-control" value="<?php echo $packetCategoriesCount+1 ?>">
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="clearfix"></div>
      </div>
    </form>
  </div>
</div>
<?php }elseif($_GET['page'] == 'packetCategoriesEdit'){  ?>
<?php
  $askData=$db->prepare("SELECT * FROM categories where categories_id=:categories_id");
  $askData->execute(array(
    'categories_id' => $_GET["categories_id"]
    ));
  $checkData=$askData->fetch(PDO::FETCH_ASSOC);
  $foo = $checkData["categories_top_id"];
  // $_GET null or nothing
  if ($_GET['categories_id'] == null) {
    Header("Location:packetCategoriesList");
  }elseif($_GET['categories_id'] != $checkData['categories_id']){
    Header("Location:packetCategoriesList");
  }
?>
<div class="card">
  <div class="card-body">
    <form action="system/operation.php" method="post" enctype="multipart/form-data" data-parsley-validate>
      <input type="hidden" name="categories_id" value="<?=$checkData["categories_id"] ?>">
      <div class="row">
        <div class="col-md-4">
          <div class="card card-secondary">
            <div class="card-body">
              <!-- #form-group -->
              <div class="form-group">
                <label for="title"><?php echo $langArray['GLOBAL_FORM_TABLE_TITLE']; ?></label>
                <input type="text" name="title" class="form-control" value="<?php echo $checkData['title'] ?>">
              </div>
            </div>
          </div>
          <div class="col-12">
            <a href="packetCategoriesList" class="btn btn-secondary"><?php echo $langArray['CANCEL_FORM']; ?></a>
            <input type="submit" value="<?php echo $langArray['UPDATE_FORM']; ?>" class="btn btn-warning float-right" name="packetCategoriesUpdate">
          </div>
          <div class="clearfix"></div>
        </div>
        <div class="col-md-8">
          <div class="card card-primary">
            <div class="card-body">
              <div class="row">
                <div class="col-md-6">
                  <!-- #form-group -->
                  <div class="form-group">
                    <label for="status"><?php echo $langArray['TABLE_STATUS']; ?></label>
                    <div class="input-group">
                      <input type="checkbox" id="status" name="status[]" <?php echo $checkData['status'] == "1" ? 'checked=""' : ''; ?> data-bootstrap-switch data-off-color="danger" data-on-color="success">
                    </div>
                  </div>
                </div>
                <div class="col-md-6">
                  <!-- #form-group -->
                  <div class="form-group">
                    <label for="order_sort"><?php echo $langArray['TABLE_ORDER_SORT']; ?></label>
                    <input type="number" name="order_sort" class="form-control" value="<?php echo $checkData['order_sort'] ?>">
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="clearfix"></div>
      </div>
    </form>
  </div>
</div>
<?php } ?>
