<div class="flex justify-end pt-2rem">
  <div class="px-1">
    <div class="relative shadow-md">
      <input type="text" id="hs-leading-icon" name="hs-leading-icon"
        class="ti-form-input ltr:pl-11 rtl:pr-11 focus:z-10 " placeholder="Search by No. or Name">
      <div
        class="absolute inset-y-0 ltr:left-0 rtl:right-0 flex items-center pointer-events-none z-20 ltr:pl-4 rtl:pr-4">
        <i class="ri-search-line text-gray"></i>
      </div>
    </div>
  </div>
  <div class="px-1">
    <button type="button" class="ti-btn ti-btn-soft-secondary h-45px m-0 shadow-md"
      data-hs-overlay="#employee-level-modal-add">
      <i class="ri-add-line"></i>
      Add
    </button>
  </div>
  <div class="px-1">
    <button href="javascript:void(0);" class="ti-btn ti-btn-soft-danger h-45px m-0 shadow-md">
      <i class="ri-delete-bin-6-line"></i>
      Delete
    </button>
  </div>
  <div class="px-1">
    <button href="javascript:void(0);" class="ti-btn ti-btn-soft-warning h-45px m-0 shadow-md">
      <i class="ti ti-book fs-l"></i>
      Help
    </button>
  </div>
</div>

<div class="page px-rem">
  <div class="border-b border-gray-200 dark:border-white/10" style="margin-left: 20px;">
    <nav class="flex space-x-2 rtl:space-x-reverse" style="margin-bottom: 10px;">
      <a class="custom-link justify-center rounded-t-sm hs-tab-active:!bg-primary hs-tab-active:border-primary hs-tab-active:!text-white -mb-px py-2 px-3 inline-flex items-center gap-2 text-md font-medium text-center border-2 text-gray-600 hover:text-gray-900 dark:bg-black/20 dark:border-white/10 dark:text-white/70 dark:hover:text-gray-300 active"
        href="javascript:void(0);" id="card-type-item-1" data-hs-tab="#card-type-1" aria-controls="card-type-1">
        นำเข้าข้อมูล
      </a>
      <a class="justify-center  -mb-px  inline-flex items-center gap-2 text-sm font-medium text-center text-secondary border-secondary border-b-2 dark:bg-black/20 dark:border-white/10 dark:text-white/70 dark:hover:text-gray-300 align-items-end"
        href="javascript:void(0);" data-hs-overlay="#employee-level-modal-upload">
        ดาวโหลดตัวอย่างไฟล์
      </a>
    </nav>
  </div>
  <div id="card-type-1" role="tabpanel" aria-labelledby="card-type-item-1">
    <div class="overflow-auto shadow-md">
      <table class="ti-custom-table ti-custom-table-head">
        <thead>
          <tr>
            <ng-container
              *ngFor="let item of ['รหัสลักษณะงาน','รายละเอียด(ไทย) *','รายละเอียด(อังกฤษ)','Action']; let f = first; let l = last; let i = index">
              <th scope="col" class="relative px-10px py-10px bg-soft-secondary text-primary"
                style="text-align: center;" [class.!text-center]="f||l">
                <span class="text-sm">{{ item }}</span>
                <div class="absolute top-1/2 transform -translate-y-1/2 right-0" *ngIf="!f && i==1">
                  <svg class="head-table-icon" xmlns="http://www.w3.org/2000/svg" width="50" height="16"
                    fill="currentColor" viewBox="0 0 16 16">
                    <path
                      d="M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z">
                    </path>
                  </svg>
                </div>
                <div class="absolute top-1/2 transform -translate-y-1/2 right-0" *ngIf="!f && i==2">
                  <svg class="head-table-icon" xmlns="http://www.w3.org/2000/svg" width="170" height="16"
                    fill="currentColor" viewBox="0 0 16 16">
                    <path
                      d="M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z">
                    </path>
                  </svg>
                </div>
              </th>
            </ng-container>
          </tr>
        </thead>
        <tbody>
          <tr *ngFor="let item of[
                    ['001', 'หัวหน้าทีม', 'Team Leander/Supervisor'],
                    ['002', 'ผู้จัดการ', 'Manager'],
                    ['001', 'ผู้บริการระดับสูง', 'Director/Top Management']];let i = index">
            <td style="font-size: 12px; " class="flex justify-center">
              <input type="checkbox" style="margin-right: 20px; transform:scale(0.7)">
              {{item[0]}}
            </td>
            <td style="text-align: center; font-size: 12px;padding-left: 9.7%; padding-right: 50%;">{{item[1]}}</td>
            <td style="text-align: center; font-size: 12px;padding-left: 10.5%; padding-right: 50%;">{{item[2]}}</td>
            <td class="flex justify-center">
              <i class="ti ti-edit cursor-pointer i-gray fs-l px-1" data-hs-overlay="#employee-level-modal-edit"></i>
              <i class="ti ti-trash cursor-pointer i-gray fs-l px-1"></i>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </div>

</div>


<div id="employee-level-modal-add" class="hs-overlay hidden ti-modal">
  <div class="hs-overlay-open:mt-7 ti-modal-box mt-0 ease-out h-[calc(100%-3.5rem)]">
    <div class="max-h-full overflow-hidden ti-modal-content">
      <div class="ti-modal-header">
        <h3 class="text-xxl font-bold text-primary">
          เพิ่มข้อมูลประเภทพนักงาน(PL)
        </h3>
        <div class="flex justify-end">
          <div class="button-clear">
            <button type="button" class="ti-btn ti-btn-soft-indigo h-45px m-0 shadow-md">
              <svg class="svg-indigo" width="16" height="16" viewBox="0 0 64.00 64.00"
                xmlns="http://www.w3.org/2000/svg" fill="none" stroke="#595BEA" stroke-width="3.84"
                transform="rotate(45)matrix(-1, 0, 0, 1, 0, 0)">
                <g id="SVGRepo_bgCarrier" stroke-width="0"></g>
                <g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
                <g id="SVGRepo_iconCarrier">
                  <path d="M15 49A24 24 0 0 1 32 8"></path>
                  <path d="M49 15a24 24 0 0 1-17 41"></path>
                  <polyline points="15.03 40 15.03 48.97 8 48.97"></polyline>
                  <polyline points="48.97 24 48.97 15.03 56 15.03"></polyline>
                </g>
              </svg>
              Clear
            </button>
          </div>
          <div class="button-help">
            <button href="javascript:void(0);" class="ti-btn ti-btn-soft-warning h-45px m-0 shadow-md">
              <i class="ti ti-book fs-l"></i>
              Help
            </button>
          </div>
          <button type="button" class="hs-dropdown-toggle ti-modal-clode-btn text-danger"
            data-hs-overlay="#employee-level-modal-add">
            <span class="sr-only">Close</span>
            <i class="ti ti-circle-x fs-xxl"></i>
          </button>
        </div>
      </div>
      <div class="ti-modal-body" style="margin-top: 40px;">
        <label for="input-label" class="ti-form-label mt-2rem">รหัสระดับพนักงาน(PL)*</label>
        <input type="text" id="input-label" class="ti-form-input w-1/2" placeholder="">
        <label for="detail_th" class="ti-form-label mt-2rem">รายละเอียด (ไทย)</label>
        <input type="text" id="detail_th" class="ti-form-input h-16" placeholder="">
        <label for="detail_eng" class="ti-form-label mt-2rem">รายละเอียด (อังกฤษ)</label>
        <input type="text" id="detail_eng" class="ti-form-input h-16" placeholder="">
        <div class="flex justify-end mt-2rem mb-1rem space-x-4">
          <button type="button"
            class="hs-dropdown-toggle ti-btn ti-border font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:ring-offset-white focus:ring-primary dark:bg-bgdark dark:hover:bg-black/20 dark:border-white/10 dark:text-white/70 dark:hover:text-white dark:focus:ring-offset-white/10"
            data-hs-overlay="#employee-level-modal-add">
            ย้อนกลับ
          </button>
          <a class="ti-btn ti-btn-success" href="javascript:void(0);">
            บันทึกข้อมูล
          </a>
        </div>
      </div>
    </div>
  </div>
</div>

<div id="employee-level-modal-edit" class="hs-overlay hidden ti-modal">
  <div class="hs-overlay-open:mt-7 ti-modal-box mt-0 ease-out h-[calc(100%-3.5rem)]">
    <div class="max-h-full overflow-hidden ti-modal-content">
      <div class="ti-modal-header">
        <h3 class="text-xxl font-bold text-primary">
          แก้ไขข้อมูลระดับพนักงาน(PL)
        </h3>
        <div class="flex justify-end">
          <div class="button-clear">
            <button type="button" class="ti-btn ti-btn-soft-indigo h-45px m-0 shadow-md">
              <svg class="svg-indigo" width="16" height="16" viewBox="0 0 64.00 64.00"
                xmlns="http://www.w3.org/2000/svg" fill="none" stroke="#595BEA" stroke-width="3.84"
                transform="rotate(45)matrix(-1, 0, 0, 1, 0, 0)">
                <g id="SVGRepo_bgCarrier" stroke-width="0"></g>
                <g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
                <g id="SVGRepo_iconCarrier">
                  <path d="M15 49A24 24 0 0 1 32 8"></path>W
                  <path d="M49 15a24 24 0 0 1-17 41"></path>
                  <polyline points="15.03 40 15.03 48.97 8 48.97"></polyline>
                  <polyline points="48.97 24 48.97 15.03 56 15.03"></polyline>
                </g>
              </svg>
              Clear
            </button>
          </div>
          <div class="button-help">
            <button href="javascript:void(0);" class="ti-btn ti-btn-soft-warning h-45px m-0 shadow-md">
              <i class="ti ti-book fs-l"></i>
              Help
            </button>
          </div>
          <button type="button" class="hs-dropdown-toggle ti-modal-clode-btn text-danger"
            data-hs-overlay="#employee-level-modal-edit">
            <span class="sr-only">Close</span>
            <i class="ti ti-circle-x fs-xxl"></i>
          </button>
        </div>
      </div>
      <div class="ti-modal-body" style="margin-top: 40px;">
        <label for="input-label" class="ti-form-label mt-2rem">รหัสระดับพนักงาน(PL)</label>
        <input type="text" id="input-label" class="ti-form-input w-1/2 bg-input-readonly"
          style="background-color: #B3B3B3;" placeholder="" readonly>
        <label for="detail_th" class="ti-form-label mt-2rem">รายละเอียด (ไทย)</label>
        <input type="text" id="detail_th" class="ti-form-input h-16" placeholder="">
        <label for="detail_eng" class="ti-form-label mt-2rem">รายละเอียด (อังกฤษ)</label>
        <input type="text" id="detail_eng" class="ti-form-input h-16" placeholder="">
        <div class="flex justify-end mt-2rem mb-1rem space-x-4">
          <button type="button"
            class="hs-dropdown-toggle ti-btn ti-border font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:ring-offset-white focus:ring-primary dark:bg-bgdark dark:hover:bg-black/20 dark:border-white/10 dark:text-white/70 dark:hover:text-white dark:focus:ring-offset-white/10"
            data-hs-overlay="#employee-level-modal-edit">
            ย้อนกลับ
          </button>
          <a class="ti-btn ti-btn-success" href="javascript:void(0);">
            บันทึกข้อมูล
          </a>
        </div>
      </div>
    </div>
  </div>
</div>

<div id="employee-level-modal-upload" class="hs-overlay hidden ti-modal">
  <div class="hs-overlay-open:mt-7 ti-modal-box mt-0 ease-out h-[calc(100%-3.5rem)]">
    <div class="max-h-full overflow-hidden ti-modal-content-upload">
      <div class="ti-modal-header-upload bg-primary">
        <h5 class="text-xxl font-bold text-white">
          นำเข้าข้อมูลบริษัท
        </h5>
      </div>
      <h1 class="mt-2" style="text-align: center;">ไฟล์</h1>
      <div class="mt-2 px-2">
        <div class="flex rounded-md">
          <input type="text" id="hs-trailing-button-add-on-with-icon" name="hs-trailing-button-add-on-with-icon"
            class="ti-form-input rounded-none ltr:rounded-l-md rtl:rounded-r-md focus:z-10">
          <button aria-label="button" type="button"
            class="inline-flex flex-shrink-0 justify-center items-center h-[2.875rem] w-[2.875rem] ltr:rounded-r-md rtl:rounded-l-md border border-transparent font-semibold bg-primary text-white hover:bg-primary focus:z-10 focus:outline-none focus:ring-0 focus:ring-primary transition-all text-sm">
            <i class="ti ti-upload"></i>
          </button>
        </div>
        <div class="flex justify-center mt-2rem mb-1rem space-x-4">
            <a class="ti-btn ti-btn-primary" href="javascript:void(0);">
              อัปโหลด
            </a>
        </div>
      </div>
    </div>
  </div>
</div>