<div class="row">
  <div class="col-lg-12 mt-4">
    <div class="card">
    <div class="card-header form-card-header">
        <h4 class="m-b-0 text-light">UPDATE ADMIN</h4>
      </div>
      <?php if($admin !== "No Data"){ ?>
        <div class="card-body">
          <form id="edit_admin" class="form-control-line">
            <div class="form-body">
              <div class="row">
                <div class="col-md-4">
                  <div class="form-group">
                    <label class="control-label">NAME <span>*</span></label>
                    <input type="text" id="name" name="name" class="form-control" value="<?php echo $admin[0]->name; ?>"  style="text-transform: none;">
                    <label for="name" class="error"></label> 
                  </div>
                </div>
                
                <div class="col-md-4">
                  <div class="form-group">
                    <label class="control-label">USERNAME <span>*</span></label>
                    <input type="text" id="username" name="username" class="form-control" value="<?php echo $admin[0]->username; ?>" style="text-transform: none;" >
                    <label for="username" class="error"></label>
                  </div>
                </div>
              
                <div class="col-md-4">
                  <div class="form-group">
                    <label class="control-label">PASSWORD <span>*</span></label>
                    <input type="text" id="pword" name="pword" class="form-control" value="<?php echo $admin[0]->pword; ?>" style="text-transform: none;">
                    <label for="pword" class="error"></label>
                  </div>
                </div>

                <div class="col-md-4">
                  <div class="form-group">
                    <label class="control-label">STATUS <span>*</span></label>
                    <select class="form-control" id="status" name="status">
                      <option value="1" <?php if($admin[0]->status == "1"){ echo 'selected'; } ?>>ACTIVE</option>
                      <option value="0" <?php if($admin[0]->status == "0"){ echo 'selected'; } ?>>DEACTIVE</option>
                    </select>  
                    <label for="status" class="error"></label> 
                    <input type="hidden" id="id" name="id" value="<?php echo $admin[0]->id; ?>">
                  </div>
                </div>
              </div>

              <?php $rights = explode(",", $admin[0]->rights); ?>
              <div class="row">
                <div class="col-md-12">
                  <div class="vtabs customvtab" style="width:100%;">
                    <ul class="nav nav-tabs tabs-vertical" role="tablist">

                      <!-- MANAGE BANNER -->
                      <li class="nav-item"> 
                        <a class="nav-link active show" data-toggle="tab" href="#banner" role="tab" aria-selected="true"><span class="hidden-xs-down">BANNER</span></a>
                      </li>

                      <!-- MANAGE ADVERTISE -->
                      <li class="nav-item"> 
                        <a class="nav-link show" data-toggle="tab" href="#advertise" role="tab" aria-selected="true"><span class="hidden-xs-down">ADVERTISE</span></a>
                      </li>

                      <!-- MANAGE TENDERS -->
                      <li class="nav-item"> 
                        <a class="nav-link show" data-toggle="tab" href="#tenders" role="tab" aria-selected="true"><span class="hidden-xs-down">TENDERS</span></a>
                      </li>

                      <!-- MANAGE BUSINESS / TRADE LEADS -->
                      <li class="nav-item"> 
                        <a class="nav-link show" data-toggle="tab" href="#business" role="tab" aria-selected="true"><span class="hidden-xs-down">TRADE LEADS</span></a>
                      </li>

                      <!-- MANAGE COA -->
                      <li class="nav-item"> 
                        <a class="nav-link show" data-toggle="tab" href="#coa" role="tab" aria-selected="true"><span class="hidden-xs-down">COA</span></a>
                      </li>

                      <!-- MANAGE NOMINEES -->
                      <li class="nav-item"> 
                        <a class="nav-link show" data-toggle="tab" href="#nominees" role="tab" aria-selected="true"><span class="hidden-xs-down">GOV NOMINEES</span></a>
                      </li>

                      <!-- MANAGE SECRETARIAT -->
                      <li class="nav-item"> 
                        <a class="nav-link show" data-toggle="tab" href="#secretariat" role="tab" aria-selected="true"><span class="hidden-xs-down">SECRETARIAT</span></a>
                      </li>

                      <!-- MANAGE MEMORANDUM -->
                      <li class="nav-item"> 
                        <a class="nav-link show" data-toggle="tab" href="#memorandum" role="tab" aria-selected="true"><span class="hidden-xs-down">MEMORANDUM</span></a>
                      </li>

                      <!-- MANAGE ANNUAL REPORT -->
                      <li class="nav-item"> 
                        <a class="nav-link show" data-toggle="tab" href="#anual_report" role="tab" aria-selected="true"><span class="hidden-xs-down">ANNUAL REPORT</span></a>
                      </li>

                      <!-- MANAGE YEAR MASTER -->
                      <li class="nav-item"> 
                        <a class="nav-link show" data-toggle="tab" href="#year_master" role="tab" aria-selected="true"><span class="hidden-xs-down">YEAR MASTER</span></a>
                      </li>

                      <!-- MANAGE EXHIBITIONS -->
                      <li class="nav-item"> 
                        <a class="nav-link show" data-toggle="tab" href="#exhibitions" role="tab" aria-selected="true"><span class="hidden-xs-down">EXHIBITIONS</span></a>
                      </li>

                      <!-- MANAGE SEMINARS -->
                      <li class="nav-item"> 
                        <a class="nav-link show" data-toggle="tab" href="#seminars" role="tab" aria-selected="true"><span class="hidden-xs-down">SEMINARS</span></a>
                      </li>

                      <!-- MANAGE TRADE DELEGATION  -->
                      <li class="nav-item"> 
                        <a class="nav-link show" data-toggle="tab" href="#trade_delegation" role="tab" aria-selected="true"><span class="hidden-xs-down">TRADE DELEGATION </span></a>
                      </li>

                      <!-- MANAGE BSM / RBSM  -->
                      <li class="nav-item"> 
                        <a class="nav-link show" data-toggle="tab" href="#bsm_rbsm" role="tab" aria-selected="true"><span class="hidden-xs-down">BSM / RBSM </span></a>
                      </li>

                      <!-- MANAGE AWARDS  -->
                      <li class="nav-item"> 
                        <a class="nav-link show" data-toggle="tab" href="#awards" role="tab" aria-selected="true"><span class="hidden-xs-down">AWARDS</span></a>
                      </li>

                      <!-- MANAGE FAQ  -->
                      <li class="nav-item"> 
                        <a class="nav-link show" data-toggle="tab" href="#faq" role="tab" aria-selected="true"><span class="hidden-xs-down">FAQ</span></a>
                      </li>

                      <!-- MANAGE CIRCULARS  -->
                      <li class="nav-item"> 
                        <a class="nav-link show" data-toggle="tab" href="#circulars" role="tab" aria-selected="true"><span class="hidden-xs-down">CIRCULARS</span></a>
                      </li>

                      <!-- MANAGE STATISTICS  -->
                      <li class="nav-item"> 
                        <a class="nav-link show" data-toggle="tab" href="#statistics" role="tab" aria-selected="true"><span class="hidden-xs-down">STATISTICS</span></a>
                      </li>

                      <!-- MANAGE GOV REPRESENTATION  -->
                      <li class="nav-item"> 
                        <a class="nav-link show" data-toggle="tab" href="#gov_repre" role="tab" aria-selected="true"><span class="hidden-xs-down">GOV REPRESENTATION</span></a>
                      </li>

                      <!-- MANAGE ARTICLES  -->
                      <li class="nav-item"> 
                        <a class="nav-link show" data-toggle="tab" href="#articles" role="tab" aria-selected="true"><span class="hidden-xs-down">ARTICLES</span></a>
                      </li>

                      <!-- MANAGE MESSAGE  -->
                      <li class="nav-item"> 
                        <a class="nav-link show" data-toggle="tab" href="#message" role="tab" aria-selected="true"><span class="hidden-xs-down">MESSAGE</span></a>
                      </li>

                      <!-- MANAGE TRADE ENQUIRY  -->
                      <li class="nav-item"> 
                        <a class="nav-link show" data-toggle="tab" href="#trade_enquiry" role="tab" aria-selected="true"><span class="hidden-xs-down">TRADE ENQUIRY</span></a>
                      </li>

                      <!-- MANAGE CAREERS  -->
                      <li class="nav-item"> 
                        <a class="nav-link show" data-toggle="tab" href="#careers" role="tab" aria-selected="true"><span class="hidden-xs-down">CAREERS</span></a>
                      </li>

                      <!-- MANAGE NEWSLETTERS -->
                      <!-- <li class="nav-item"> 
                        <a class="nav-link" data-toggle="tab" href="#newsletter" role="tab" aria-selected="false"><span class="hidden-xs-down">NEWSLETTERS</span></a> 
                      </li> -->
                    </ul>
                  
                    <div class="tab-content">
                      <!-- MANAGE BANNER -->
                      <div class="tab-pane active show" id="banner" role="tabpanel">
                        <div class="table-responsive">
                          <table class="table color-table warning-table">
                            <thead>
                              <tr>
                                <th>RIGHTS</th>
                                <th>ALLOW ACCESS</th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td>BANNERS LISTING PAGE</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="1.1" <?php if(in_array("1.1", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>ADD NEW BANNER</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="1.2" <?php if(in_array("1.2", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>UPDATE EXISTING BANNER</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="1.3" <?php if(in_array("1.3", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </div>
                      </div>

                      <!-- MANAGE ADVERTISE -->
                      <div class="tab-pane" id="advertise" role="tabpanel">
                        <div class="table-responsive">
                          <table class="table color-table warning-table">
                            <thead>
                              <tr>
                                <th>RIGHTS</th>
                                <th>ALLOW ACCESS</th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td>ADVERTISE LISTING PAGE</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="18.1" <?php if(in_array("18.1", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>ADD NEW ADDVERTISE</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="18.2" <?php if(in_array("18.2", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>UPDATE EXISTING ADVERTISE</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="18.3" <?php if(in_array("18.3", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>ADVERTISE ENQUIRY LISTING PAGE</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="18.4" <?php if(in_array("18.4", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </div>
                      </div>

                      <!-- MANAGE TENDERS -->
                      <div class="tab-pane" id="tenders" role="tabpanel">
                        <div class="table-responsive">
                          <table class="table color-table warning-table">
                            <thead>
                              <tr>
                                <th>RIGHTS</th>
                                <th>ALLOW ACCESS</th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td>TENDER LISTING PAGE</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="9.1" <?php if(in_array("9.1", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>ADD NEW TENDER</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="9.2" <?php if(in_array("9.2", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>UPDATE EXISTING TENDER</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="9.3" <?php if(in_array("9.3", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </div>
                      </div>

                      <!-- MANAGE BUSINESS / TRADE LEADS -->
                      <div class="tab-pane" id="business" role="tabpanel">
                        <div class="table-responsive">
                          <table class="table color-table warning-table">
                            <thead>
                              <tr>
                                <th>RIGHTS</th>
                                <th>ALLOW ACCESS</th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td>BUSINESS / TRADE LEADS LISTING PAGE</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="10.1" <?php if(in_array("10.1", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>ADD NEW BUSINESS / TRADE LEADS</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="10.2" <?php if(in_array("10.2", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>UPDATE EXISTING BUSINESS / TRADE LEADS</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="10.3" <?php if(in_array("10.3", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </div>
                      </div>

                      <!-- MANAGE COA -->
                      <div class="tab-pane" id="coa" role="tabpanel">
                        <div class="table-responsive">
                          <table class="table color-table warning-table">
                            <thead>
                              <tr>
                                <th>RIGHTS</th>
                                <th>ALLOW ACCESS</th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td>MANAGE COA DESIGNATION MASTER</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="3.4" <?php if(in_array("3.4", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>COA LISTING PAGE</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="3.1" <?php if(in_array("3.1", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>ADD NEW COA</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="3.2" <?php if(in_array("3.2", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>UPDATE EXISTING COA</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="3.3" <?php if(in_array("3.3", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </div>
                      </div>

                      <!-- MANAGE NOMINEES -->
                      <div class="tab-pane" id="nominees" role="tabpanel">
                        <div class="table-responsive">
                          <table class="table color-table warning-table">
                            <thead>
                              <tr>
                                <th>RIGHTS</th>
                                <th>ALLOW ACCESS</th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td>GOVERNMENT NOMINEES LISTING PAGE</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="24.1" <?php if(in_array("24.1", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>ADD NEW GOVERNMENT NOMINEES</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="24.2" <?php if(in_array("24.2", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>UPDATE EXISTING GOVERNMENT NOMINEES</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="24.3" <?php if(in_array("24.3", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </div>
                      </div>

                      <!-- MANAGE SECRETARIAT -->
                      <div class="tab-pane" id="secretariat" role="tabpanel">
                        <div class="table-responsive">
                          <table class="table color-table warning-table">
                            <thead>
                              <tr>
                                <th>RIGHTS</th>
                                <th>ALLOW ACCESS</th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td>MANAGE SECRETARIAT DESIGNATION MASTER</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="4.4" <?php if(in_array("4.4", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>SECRETARIAT LISTING PAGE</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="4.1" <?php if(in_array("4.1", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>ADD NEW SECRETARIAT</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="4.2" <?php if(in_array("4.2", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>UPDATE EXISTING SECRETARIAT</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="4.3" <?php if(in_array("4.3", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </div>
                      </div>

                      <!-- MANAGE MEMORANDUM -->
                      <div class="tab-pane" id="memorandum" role="tabpanel">
                        <div class="table-responsive">
                          <table class="table color-table warning-table">
                            <thead>
                              <tr>
                                <th>RIGHTS</th>
                                <th>ALLOW ACCESS</th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td>MEMORANDUM LISTING PAGE</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="5.1" <?php if(in_array("5.1", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>ADD NEW MEMORANDUM</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="5.2" <?php if(in_array("5.2", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>UPDATE EXISTING MEMORANDUM</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="5.3" <?php if(in_array("5.3", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </div>
                      </div>

                      <!-- MANAGE ANNUAL REPORT -->
                      <div class="tab-pane" id="anual_report" role="tabpanel">
                        <div class="table-responsive">
                          <table class="table color-table warning-table">
                            <thead>
                              <tr>
                                <th>RIGHTS</th>
                                <th>ALLOW ACCESS</th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td>ANNUAL REPORT LISTING PAGE</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="6.1" <?php if(in_array("6.1", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>ADD NEW ANNUAL REPORT</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="6.2" <?php if(in_array("6.2", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>UPDATE EXISTING ANNUAL REPORT</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="6.3" <?php if(in_array("6.3", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </div>
                      </div>

                      <!-- MANAGE YEAR MASTER -->
                      <div class="tab-pane" id="year_master" role="tabpanel">
                        <div class="table-responsive">
                          <table class="table color-table warning-table">
                            <thead>
                              <tr>
                                <th>RIGHTS</th>
                                <th>ALLOW ACCESS</th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td>YEAR MASTER LISTING PAGE</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="13.1" <?php if(in_array("13.1", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>ADD NEW YEAR MASTER</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="13.2" <?php if(in_array("13.2", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>UPDATE EXISTING YEAR MASTER</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="13.3" <?php if(in_array("13.3", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </div>
                      </div>

                      <!-- MANAGE EXHIBITIONS -->
                      <div class="tab-pane" id="exhibitions" role="tabpanel">
                        <div class="table-responsive">
                          <table class="table color-table warning-table">
                            <thead>
                              <tr>
                                <th>RIGHTS</th>
                                <th>ALLOW ACCESS</th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td>EXHIBITIONS LISTING PAGE</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="12.1" <?php if(in_array("12.1", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>ADD NEW EXHIBITIONS</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="12.2" <?php if(in_array("12.2", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>UPDATE EXISTING EXHIBITIONS</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="12.3" <?php if(in_array("12.3", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>EXHIBITIONS ENQUIRY LISTING PAGE</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="12.4" <?php if(in_array("12.4", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </div>
                      </div>

                      <!-- MANAGE SEMINARS -->
                      <div class="tab-pane" id="seminars" role="tabpanel">
                        <div class="table-responsive">
                          <table class="table color-table warning-table">
                            <thead>
                              <tr>
                                <th>RIGHTS</th>
                                <th>ALLOW ACCESS</th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td>SEMINARS LISTING PAGE</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="15.1" <?php if(in_array("15.1", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>ADD NEW SEMINAR</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="15.2" <?php if(in_array("15.2", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>UPDATE EXISTING SEMINAR</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="15.3" <?php if(in_array("15.3", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>SEMINAR ENQUIRY LISTING PAGE</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="15.4" <?php if(in_array("15.4", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </div>
                      </div>

                      <!-- MANAGE TRADE DELEGATION -->
                      <div class="tab-pane" id="trade_delegation" role="tabpanel">
                        <div class="table-responsive">
                          <table class="table color-table warning-table">
                            <thead>
                              <tr>
                                <th>RIGHTS</th>
                                <th>ALLOW ACCESS</th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td>TRADE DELEGATION LISTING PAGE</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="14.1" <?php if(in_array("14.1", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>ADD NEW TRADE DELEGATION</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="14.2" <?php if(in_array("14.2", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>UPDATE EXISTING TRADE DELEGATION</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="14.3" <?php if(in_array("14.3", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>TRADE DELEGATION ENQUIRY LISTING PAGE</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="14.4" <?php if(in_array("14.4", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </div>
                      </div>

                      <!-- MANAGE BSM / RBSM -->
                      <div class="tab-pane" id="bsm_rbsm" role="tabpanel">
                        <div class="table-responsive">
                          <table class="table color-table warning-table">
                            <thead>
                              <tr>
                                <th>RIGHTS</th>
                                <th>ALLOW ACCESS</th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td>BSM / RBSM LISTING PAGE</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="22.1" <?php if(in_array("22.1", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>ADD NEW BSM / RBSM</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="22.2" <?php if(in_array("22.2", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>UPDATE EXISTING BSM / RBSM</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="22.3" <?php if(in_array("22.3", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </div>
                      </div>

                      <!-- MANAGE AWARDS -->
                      <div class="tab-pane" id="awards" role="tabpanel">
                        <div class="table-responsive">
                          <table class="table color-table warning-table">
                            <thead>
                              <tr>
                                <th>RIGHTS</th>
                                <th>ALLOW ACCESS</th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td>AWARDS LISTING PAGE</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="11.1" <?php if(in_array("11.1", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>ADD NEW AWARDS</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="11.2" <?php if(in_array("11.2", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>UPDATE EXISTING AWARDS</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="11.3" <?php if(in_array("11.3", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </div>
                      </div>

                      <!-- MANAGE FAQ -->
                      <div class="tab-pane" id="faq" role="tabpanel">
                        <div class="table-responsive">
                          <table class="table color-table warning-table">
                            <thead>
                              <tr>
                                <th>RIGHTS</th>
                                <th>ALLOW ACCESS</th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td>FAQ LISTING PAGE</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="7.1" <?php if(in_array("7.1", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>ADD NEW FAQ</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="7.2" <?php if(in_array("7.2", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>UPDATE EXISTING FAQ</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="7.3" <?php if(in_array("7.3", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </div>
                      </div>

                      <!-- MANAGE CIRCULARS -->
                      <div class="tab-pane" id="circulars" role="tabpanel">
                        <div class="table-responsive">
                          <table class="table color-table warning-table">
                            <thead>
                              <tr>
                                <th>RIGHTS</th>
                                <th>ALLOW ACCESS</th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td>CIRCULARS LISTING PAGE</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="20.1" <?php if(in_array("20.1", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>ADD NEW CIRCULAR</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="20.2" <?php if(in_array("20.2", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>UPDATE EXISTING CIRCULAR</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="20.3" <?php if(in_array("20.3", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </div>
                      </div>

                      <!-- MANAGE STATISTICS -->
                      <div class="tab-pane" id="statistics" role="tabpanel">
                        <div class="table-responsive">
                          <table class="table color-table warning-table">
                            <thead>
                              <tr>
                                <th>RIGHTS</th>
                                <th>ALLOW ACCESS</th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td>STATISTICS LISTING PAGE</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="8.1" <?php if(in_array("8.1", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>ADD NEW STATISTIC</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="8.2" <?php if(in_array("8.2", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>UPDATE EXISTING STATISTIC</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="8.3" <?php if(in_array("8.3", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </div>
                      </div>

                      <!-- MANAGE GOV REPRESENTATION -->
                      <div class="tab-pane" id="gov_repre" role="tabpanel">
                        <div class="table-responsive">
                          <table class="table color-table warning-table">
                            <thead>
                              <tr>
                                <th>RIGHTS</th>
                                <th>ALLOW ACCESS</th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td>GOV REPRESENTATION LISTING PAGE</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="19.1" <?php if(in_array("19.1", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>ADD NEW GOV REPRESENTATION</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="19.2" <?php if(in_array("19.2", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>UPDATE EXISTING GOV REPRESENTATION</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="19.3" <?php if(in_array("19.3", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </div>
                      </div>

                      <!-- MANAGE ARTICLES -->
                      <div class="tab-pane" id="articles" role="tabpanel">
                        <div class="table-responsive">
                          <table class="table color-table warning-table">
                            <thead>
                              <tr>
                                <th>RIGHTS</th>
                                <th>ALLOW ACCESS</th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td>ARTICLES LISTING PAGE</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="21.1" <?php if(in_array("21.1", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>ADD NEW ARTICLE</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="21.2" <?php if(in_array("21.2", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>UPDATE EXISTING ARTICLE</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="21.3" <?php if(in_array("21.3", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </div>
                      </div>

                      <!-- MANAGE MESSAGE -->
                      <div class="tab-pane" id="message" role="tabpanel">
                        <div class="table-responsive">
                          <table class="table color-table warning-table">
                            <thead>
                              <tr>
                                <th>RIGHTS</th>
                                <th>ALLOW ACCESS</th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td>MESSAGE LISTING PAGE</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="16.1" <?php if(in_array("16.1", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </div>
                      </div>

                      <!-- MANAGE TRADE ENQUIRY -->
                      <div class="tab-pane" id="trade_enquiry" role="tabpanel">
                        <div class="table-responsive">
                          <table class="table color-table warning-table">
                            <thead>
                              <tr>
                                <th>RIGHTS</th>
                                <th>ALLOW ACCESS</th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td>TRADE ENQUIRY LISTING PAGE</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="17.1" <?php if(in_array("17.1", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </div>
                      </div>

                      <!-- MANAGE CAREERS -->
                      <div class="tab-pane" id="careers" role="tabpanel">
                        <div class="table-responsive">
                          <table class="table color-table warning-table">
                            <thead>
                              <tr>
                                <th>RIGHTS</th>
                                <th>ALLOW ACCESS</th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td>CAREERS LISTING PAGE</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="23.1" <?php if(in_array("23.1", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>POST NEW JOB</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="23.2" <?php if(in_array("23.2", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td>UPDATE EXISTING JOB</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="23.3" <?php if(in_array("23.3", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </div>
                      </div>

                      <!-- MANAGE NEWSLETTERS -->
                      <!-- <div class="tab-pane" id="newsletter" role="tabpanel">
                        <div class="table-responsive">
                          <table class="table color-table warning-table">
                            <thead>
                              <tr>
                                <th>RIGHTS</th>
                                <th>ALLOW ACCESS</th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td>NEWSLETTER SUBSCRIBERS LISTING</td>
                                <td>
                                  <div class="switchery-demo">
                                    <input type="checkbox" name="rights[]" value="2.1" <?php if(in_array("2.1", $rights)){ echo 'checked'; }?> class="js-switch" data-color="#009efb" />
                                  </div>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </div>
                      </div> -->
                    </div>
                  </div>
                </div>
                <label for="rights[]" class="error"></label>
              </div>
            </div>

            <?php $_SESSION["token"] = md5(uniqid(mt_rand(), true)); ?>
            <input type="hidden" name="csrfToken" id="csrfreg" value="<?php echo $_SESSION["token"];?>">

            <div class="form-actions m-t-10 d-flex justify-content-center">
              <button type="submit" class="btn btn-rounded btn-outline-success col-md-3 m-r-10">SAVE</button>  
              <button type="button" class="btn btn-rounded btn-outline-danger col-md-3" onclick="window.location.href='<?php echo base_url(); ?>admin/list'">CANCEL</button>  
            </div>
          </form>
        </div>
      <?php }else{ ?>
        <div class="card-body">
          <h1>RECORD DOES NOT EXIST.</h1>
        </div>
      <?php } ?>
    </div>
  </div>
</div>