<!DOCTYPE html>
<html lang="ko" xmlns:th="http://www.thymeleaf.org">
<div class="modal-header">
  <h5 class="modal-title" id="fishingBoatEditModalLabel">불법조업 외국어선 상세정보</h5>
  <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
  <ul class="nav nav-tabs" id="fishingBoatTab" role="tablist">
    <li class="nav-item" role="presentation">
      <button class="nav-link active" id="fishingBoatViewTab" data-bs-toggle="tab" data-bs-target="#fishingBoatViewTabPanel" type="button" role="tab" aria-controls="fishingBoatViewTabPanel" aria-selected="true">최신버전</button>
    </li>
    <li class="nav-item" role="presentation">
      <button class="nav-link" id="fishingBoatVersionTab" data-bs-toggle="tab" data-bs-target="#fishingBoatVersionTabPanel" type="button" role="tab" aria-controls="fishingBoatHistoryTabPanel" aria-selected="false">수정이력</button>
    </li>
  </ul>
  <div class="tab-content border border-top-0">
    <div class="tab-pane fade p-2 mx-2 show active" id="fishingBoatViewTabPanel" role="tabpanel" aria-labelledby="fishingBoatViewTab" tabindex="0">
      <input type="hidden" class="cdsKey" th:value="${crackdownStatus.cdsKey}">
      <div class="row justify-content-between">
        <div class="col-auto" th:text="|선명: ${crackdownStatus.fishingBoat.boatNameKr}|"></div>
        <div class="col-auto" th:text="|최종수정일: ${#temporals.format(crackdownStatus.fishingBoat.wrtDt, 'yyyy-MM-dd HH:mm')}|"></div>
      </div>
      <div class="row py-2">
        <div class="col-auto">■ 기본정보</div>
      </div>
      <div class="row border border-secondary">
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">사건번호</label>
        <div class="col-sm-2 border-end border-secondary">
          <input type="text" class="form-control form-control-sm border-0" readonly th:value="${crackdownStatus.caseNum}">
        </div>
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">압송/현장조사</label>
        <div class="col-sm-2 border-end border-secondary">
          <input type="text" class="form-control form-control-sm border-0" readonly th:value="${crackdownStatus.fieldIvsgt eq 'C'?'압송':'현장조사'}">
        </div>
      </div>
      <div class="row border border-secondary border-top-0">
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">사건담당기관</label>
        <div class="col-sm-2 border-end border-secondary">
          <th:block th:each="code:${ataList}">
            <input type="text" class="form-control form-control-sm border-0" readonly th:if="${code.itemCd eq crackdownStatus.caseAgency}" th:value="${code.itemValue}">
          </th:block>
        </div>
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center fs-11">사건담당경찰관</label>
        <div class="col-sm-2 border-end border-secondary">
          <input type="text" class="form-control form-control-sm border-0" readonly th:value="${crackdownStatus.casePoliceOfficer}">
        </div>
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">단속경찰서</label>
        <div class="col-sm-2 border-end border-secondary">
          <th:block th:each="code:${cpoList}">
            <input type="text" class="form-control form-control-sm border-0" readonly th:if="${code.itemCd eq crackdownStatus.crackdownPolice}" th:value="${code.itemValue}">
          </th:block>
        </div>
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">단속함정</label>
        <div class="col-sm-2">
          <th:block th:each="code:${boatList}">
            <input type="text" class="form-control form-control-sm border-0" readonly th:if="${code.itemCd eq crackdownStatus.crackdownBoat}" th:value="${code.itemValue}">
          </th:block>
        </div>
      </div>
      <div class="row border border-secondary border-top-0">
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">나포일시</label>
        <div class="col-sm-2 border-end border-secondary">
          <input type="text" class="form-control form-control-sm border-0" readonly th:value="${#temporals.format(crackdownStatus.napoDt, 'yyyy-MM-dd')}">
        </div>
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">나포장소</label>
        <div class="col-sm-8">
          <input type="text" class="form-control form-control-sm border-0" readonly th:value="|${crackdownStatus.napoSeaPointLon} ${crackdownStatus.napoSeaPointLat} ${crackdownStatus.napoSeaPointDetail}|">
        </div>
      </div>
      <div class="row py-2">
        <div class="col-auto">■ 선장·선주 정보</div>
      </div>
      <div class="row">
        <th:block th:each="sailor:${crackdownStatus.sailorList}">
          <th:block th:if="${sailor.position eq 'POS001'}">
            <div class="col-6" id="captainDiv">
              <div class="row border border-secondary">
                <label class="col-sm-2 border-end border-secondary col-form-label col-form-label-sm py-2 border-end border-secondary text-center">선장명</label>
                <div class="col-sm-8">
                  <div class="input-group w-auto">
                    <input type="text" class="form-control form-control-sm border-0" readonly th:value="${sailor.sailorNameKr}">
                    <input type="text" class="form-control form-control-sm border-0" readonly th:value="${sailor.sailorNameCn}">
                    <input type="text" class="form-control form-control-sm border-0" readonly th:value="${sailor.sailorNamePinyin}">
                  </div>
                  <th:block th:unless="${#lists.isEmpty(sailor.fileList)}">
                    <div id="fileDownloadDiv" class="d-none">
                      <div class="row justify-content-end">
                        <div class="col-auto">
                          <th:block th:each="file:${sailor.fileList}">
                            <a href="#" class="fileDownLink" data-board="sailor"
                               th:data-parentkey="${file.sailorKey}" th:data-fileseq="${file.fileSeq}" th:text="|${file.origNm}.${file.fileExtn}|"></a>
                            <br>
                          </th:block>
                        </div>
                      </div>
                    </div>
                  </th:block>
                </div>
                <div class="col-sm-2">
                  <th:block th:if="${#lists.isEmpty(sailor.fileList)}">
                    <div>사진 없음</div>
                  </th:block>
                  <th:block th:unless="${#lists.isEmpty(sailor.fileList)}">
                    <img id="captainPhoto" class="w-100" alt="선장 사진" th:src="|/file/fileDisplay?board=sailor&parentKey=${sailor.sailorKey}&fileSeq=1|">
                  </th:block>
                </div>
              </div>
              <div class="row border border-secondary border-top-0">
                <label class="col-sm-2 border-end border-secondary col-form-label col-form-label-sm py-2 border-end border-secondary text-center">생년월일</label>
                  <div class="col-sm-4 border-end border-secondary">
                    <input type="text" class="form-control form-control-sm border-0" readonly th:value="${sailor.birthdate}">
                  </div>
                  <label class="col-sm-2 border-end border-secondary col-form-label col-form-label-sm py-2 border-end border-secondary text-center">연락처</label>
                  <div class="col-sm-4">
                    <input type="text" class="form-control form-control-sm border-0" readonly th:value="${sailor.sailorContact}">
                  </div>
                </div>
                <div class="row border border-secondary border-top-0">
                  <label class="col-sm-2 border-end border-secondary col-form-label col-form-label-sm py-2 border-end border-secondary text-center">주소</label>
                  <div class="col-sm-4 border-end border-secondary">
                    <input type="text" class="form-control form-control-sm border-0" readonly th:value="${sailor.residence}">
                  </div>
                  <label class="col-sm-2 border-end border-secondary col-form-label col-form-label-sm py-2 border-end border-secondary text-center">재범횟수</label>
                  <div class="col-sm-4">
                    <input type="text" class="form-control form-control-sm border-0" readonly th:value="${sailor.arrestHistory}">
                  </div>
                </div>
                <div class="row border border-secondary border-top-0">
                  <label class="col-sm-2 border-end border-secondary col-form-label col-form-label-sm py-2 border-end border-secondary text-center">비고</label>
                  <div class="col-sm-10">
                    <input type="text" class="form-control form-control-sm border-0" readonly th:value="${sailor.note}">
                  </div>
                </div>
              </div>
          </th:block>
        </th:block>
        <th:block th:each="sailor:${crackdownStatus.sailorList}">
          <th:block th:if="${sailor.position eq 'POS004'}">
            <div class="col-6" id="shipOwnerDiv">
              <div class="row border border-secondary border-start-0">
                <label class="col-sm-2 border-end border-secondary col-form-label col-form-label-sm py-2 border-end border-secondary text-center">선주명</label>
                <div class="col-sm-10">
                  <div class="input-group w-auto">
                    <input type="text" class="form-control form-control-sm border-0" readonly th:value="${sailor.sailorNameKr}">
                    <input type="text" class="form-control form-control-sm border-0" readonly th:value="${sailor.sailorNameCn}">
                    <input type="text" class="form-control form-control-sm border-0" readonly th:value="${sailor.sailorNamePinyin}">
                  </div>
                </div>
              </div>
              <div class="row border border-secondary border-start-0 border-top-0">
                <label class="col-sm-2 border-end border-secondary col-form-label col-form-label-sm py-2 border-end border-secondary text-center">생년월일</label>
                <div class="col-sm-4 border-end border-secondary">
                  <input type="text" class="form-control form-control-sm border-0" readonly th:value="${sailor.birthdate}">
                </div>
                <label class="col-sm-2 border-end border-secondary col-form-label col-form-label-sm py-2 border-end border-secondary text-center">연락처</label>
                <div class="col-sm-4">
                  <input type="text" class="form-control form-control-sm border-0" readonly th:value="${sailor.sailorContact}">
                </div>
              </div>
              <div class="row border border-secondary border-start-0 border-top-0">
                <label class="col-sm-2 border-end border-secondary col-form-label col-form-label-sm py-2 border-end border-secondary text-center">주소</label>
                <div class="col-sm-4">
                  <input type="text" class="form-control form-control-sm border-0" readonly th:value="${sailor.residence}">
                </div>
              </div>
              <div class="row border border-secondary border-start-0 border-top-0">
                <label class="col-sm-2 border-end border-secondary col-form-label col-form-label-sm py-2 border-end border-secondary text-center">비고</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control form-control-sm border-0" readonly th:value="${sailor.note}">
                </div>
              </div>
            </div>
          </th:block>
        </th:block>
      </div>
      <div class="row py-2">
        <div class="col-auto">■ 어선 정보</div>
      </div>
      <div class="row border border-secondary">
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">선명</label>
        <div class="col-sm-5 border-end border-secondary">
          <div class="input-group w-auto">
            <input type="text" class="form-control form-control-sm border-0" readonly th:value="${crackdownStatus.fishingBoat.boatNameKr}">
            <input type="text" class="form-control form-control-sm border-0" readonly th:value="${crackdownStatus.fishingBoat.boatNameCn}">
          </div>
        </div>
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">위반사항</label>
        <div class="col-sm-5">
          <div class="row">
            <th:block th:each="code:${vtList}">
              <th:block th:each="violation:${crackdownStatus.violationList}">
                <div class="col-6" th:if="${code.itemCd eq violation.violation}">
                  <input type="text" class="form-control form-control-sm border-0" readonly th:value="${code.itemValue}"/>
                </div>
              </th:block>
            </th:block>
          </div>
        </div>
      </div>
      <div class="row border border-secondary border-top-0">
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">허가번호</label>
        <div class="col-sm-2 border-end border-secondary">
          <input type="text" class="form-control form-control-sm border-0" readonly th:value="${crackdownStatus.fishingBoat.permitNum}">
        </div>
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">국적</label>
        <div class="col-sm-2 border-end border-secondary">
          <input type="text" class="form-control form-control-sm border-0" readonly th:value="${crackdownStatus.fishingBoat.nationality}">
        </div>
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">승선원</label>
        <div class="col-sm-2 border-end border-secondary">
          <input type="text" class="form-control form-control-sm border-0" readonly th:value="|${crackdownStatus.fishingBoat.sailorCnt}인|">
        </div>
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">톤수</label>
        <div class="col-sm-2">
          <input type="text" class="form-control form-control-sm border-0" readonly th:value="|${crackdownStatus.fishingBoat.tonCnt}t|">
        </div>
      </div>
      <div class="row border border-secondary border-top-0">
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">선종</label>
        <div class="col-sm-2 border-end border-secondary">
          <th:block th:each="code:${ftList}">
            <input type="text" class="form-control form-control-sm border-0" readonly th:if="${code.itemCd eq crackdownStatus.fishingBoat.fisheryType}" th:value="${code.itemValue}">
          </th:block>
        </div>
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">선질</label>
        <div class="col-sm-2 border-end border-secondary">
          <th:block th:each="code:${bmList}">
            <input type="text" class="form-control form-control-sm border-0" readonly th:if="${code.itemCd eq crackdownStatus.fishingBoat.boatMaterial}" th:value="${code.itemValue}">
          </th:block>
        </div>
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">선적지</label>
        <div class="col-sm-2 border-end border-secondary">
          <div class="input-group w-auto">
            <input type="text" class="form-control form-control-sm border-0" readonly th:value="${crackdownStatus.fishingBoat.boatNnySung}">
            <input type="text" class="form-control form-control-sm border-0" readonly th:value="${crackdownStatus.fishingBoat.boatNnySi}">
          </div>
        </div>
      </div>
      <div class="row border border-secondary border-top-0">
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">범칙물</label>
        <div class="col-sm-3">
          <input type="text" class="form-control form-control-sm border-0" readonly
                 th:value="|${crackdownStatus.fishingBoat.offenseType} ${crackdownStatus.fishingBoat.offenseWeight}kg|">
        </div>
        <div class="col-sm-2 border-end border-secondary"></div>
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">범칙물 위판량</label>
        <div class="col-sm-2 border-end border-secondary">
          <input type="text" class="form-control form-control-sm border-0" readonly th:value="|${crackdownStatus.fishingBoat.offenseQuantity}kg|">
        </div>
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center fs-11">범칙물 위판금액</label>
        <div class="col-sm-2">
          <input type="text" class="form-control form-control-sm border-0" readonly th:value="|${crackdownStatus.fishingBoat.offenseAmount}원|">
        </div>
      </div>
      <div class="row border border-secondary border-top-0">
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">범칙물 폐기량</label>
        <div class="col-sm-2 border-end border-secondary">
          <input type="text" class="form-control form-control-sm border-0" readonly th:value="|${crackdownStatus.fishingBoat.offenseIllegalWasteQuantity}kg|">
        </div>
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">담보금 미납액</label>
        <div class="col-sm-2 border-end border-secondary">
          <input type="text" class="form-control form-control-sm border-0" readonly th:value="|${crackdownStatus.fishingBoat.damboUnpaidAmount}원|">
        </div>
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">담보금 납부액</label>
        <div class="col-sm-2 border-end border-secondary">
          <input type="text" class="form-control form-control-sm border-0" readonly th:value="|${crackdownStatus.fishingBoat.damboPayment}원|">
        </div>
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center fs-11">담보금 납부일시</label>
        <div class="col-sm-2">
          <input type="text" class="form-control form-control-sm border-0" readonly th:value="${crackdownStatus.fishingBoat.paymentPaymentDt}">
        </div>
      </div>
      <div class="row border border-secondary border-top-0">
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">압수어구</label>
        <div class="col-sm-11">
          <input type="text" class="form-control form-control-sm border-0" readonly
                 th:value="|틀: ${crackdownStatus.fishingBoat.confiscationFrame} 폭: ${crackdownStatus.fishingBoat.confiscationWidth} 조: ${crackdownStatus.fishingBoat.confiscationJo} 개: ${crackdownStatus.fishingBoat.confiscationGae} 기타: ${crackdownStatus.fishingBoat.confiscationEtc}|">
        </div>
      </div>
      <div class="row py-2">
        <div class="col-auto">■ 처리 결과</div>
      </div>
      <div class="row border border-secondary">
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">처리현황</label>
        <div class="col-sm-2 border-end border-secondary">
          <th:block th:each="code:${prList}">
            <input type="text" class="form-control form-control-sm border-0" readonly th:if="${code.itemCd eq crackdownStatus.processResult.processStatus}" th:value="${code.itemValue}">
          </th:block>
        </div>
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">압송소요시간</label>
        <div class="col-sm-2 border-end border-secondary">
          <input type="text" class="form-control form-control-sm border-0" readonly th:value="${crackdownStatus.processResult.pressurizedTimeTaken}">
        </div>
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center fs-10">영장청구 소요시간</label>
        <div class="col-sm-2 border-end border-secondary">
          <input type="text" class="form-control form-control-sm border-0" readonly th:value="${crackdownStatus.processResult.warrantReqTakeTime}">
        </div>
      </div>
      <div class="row border border-secondary border-top-0">
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">수사중지 여부</label>
        <div class="col-sm-2 border-end border-secondary">
          <input type="text" class="form-control form-control-sm border-0" readonly th:value="${crackdownStatus.processResult.isIvsgtStop eq 'Y'?'중지':'수사중'}">
        </div>
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">퇴거일</label>
        <div class="col-sm-2 border-end border-secondary">
          <input type="text" class="form-control form-control-sm border-0" readonly th:value="${crackdownStatus.processResult.evictionDt}">
        </div>
      </div>
      <div class="row border border-secondary border-top-0">
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">직접인계일</label>
        <div class="col-sm-2 border-end border-secondary">
          <input type="text" class="form-control form-control-sm border-0" readonly th:value="${crackdownStatus.processResult.directHandoverDt}">
        </div>
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">인계 해점</label>
        <div class="col-sm-2 border-end border-secondary">
          <div class="input-group w-auto">
            <input type="text" class="form-control form-control-sm border-0" readonly th:value="${crackdownStatus.processResult.handoverSeaPointLon}">
            <input type="text" class="form-control form-control-sm border-0" readonly th:value="${crackdownStatus.processResult.handoverSeaPointLat}">
          </div>
        </div>
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">인계 함정</label>
        <div class="col-sm-2 border-end border-secondary">
          <input type="text" class="form-control form-control-sm border-0" readonly th:value="${crackdownStatus.processResult.handoverBoat}">
        </div>
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">중측 인수함정</label>
        <div class="col-sm-2">
          <input type="text" class="form-control form-control-sm border-0" readonly th:value="${crackdownStatus.processResult.middleTakeoverBoat}">
        </div>
      </div>
      <div class="row border border-secondary border-top-0">
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">위탁시작일</label>
        <div class="col-sm-2 border-end border-secondary">
          <input type="text" class="form-control form-control-sm border-0" readonly th:value="${crackdownStatus.processResult.consignmentStartDt}">
        </div>
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">위탁종료일</label>
        <div class="col-sm-2 border-end border-secondary">
          <input type="text" class="form-control form-control-sm border-0" readonly th:value="${crackdownStatus.processResult.consignmentEndDt}">
        </div>
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">몰수확정일</label>
        <div class="col-sm-2 border-end border-secondary">
          <input type="text" class="form-control form-control-sm border-0" readonly th:value="${crackdownStatus.processResult.confiscationDt}">
        </div>
      </div>
      <div class="row border border-secondary border-top-0">
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">폐선일</label>
        <div class="col-sm-2 border-end border-secondary">
          <input type="text" class="form-control form-control-sm border-0" readonly th:value="${crackdownStatus.processResult.boatDisposalDt}">
        </div>
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">폐선종류</label>
        <div class="col-sm-2 border-end border-secondary">
          <th:block th:each="code:${bdtList}">
            <input type="text" class="form-control form-control-sm border-0" readonly th:if="${code.itemCd eq crackdownStatus.processResult.boatDisposalType}" th:value="${code.itemValue}">
          </th:block>
        </div>
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">환부일</label>
        <div class="col-sm-2 border-end border-secondary">
          <input type="text" class="form-control form-control-sm border-0" readonly th:value="${crackdownStatus.processResult.returnDt}">
        </div>
      </div>
      <div class="row border border-secondary border-top-0">
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">선장구속</label>
        <div class="col-sm-2 border-end border-secondary">
          <th:block th:each="sailor:${crackdownStatus.sailorList}">
            <th:block th:if="${sailor.position eq 'POS001'}">
              <input type="text" class="form-control form-control-sm border-0" readonly th:value="${sailor.isRestriction eq 'Y'?'구속':'불구속'}">
            </th:block>
          </th:block>
        </div>
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">항해장구속</label>
        <div class="col-sm-2 border-end border-secondary">
          <th:block th:each="sailor:${crackdownStatus.sailorList}">
            <th:block th:if="${sailor.position eq 'POS002'}">
              <input type="text" class="form-control form-control-sm border-0" readonly th:value="${sailor.isRestriction eq 'Y'?'구속':'불구속'}">
            </th:block>
          </th:block>
        </div>
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">기관장구속</label>
        <div class="col-sm-2 border-end border-secondary">
          <th:block th:each="sailor:${crackdownStatus.sailorList}">
            <th:block th:if="${sailor.position eq 'POS003'}">
              <input type="text" class="form-control form-control-sm border-0" readonly th:value="${sailor.isRestriction eq 'Y'?'구속':'불구속'}">
            </th:block>
          </th:block>
        </div>
      </div>
      <div class="row border border-secondary border-top-0">
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">선원구속</label>
        <div class="col-sm-11">
          <div class="row">
            <th:block th:each="sailor:${crackdownStatus.sailorList}">
              <th:block th:if="${sailor.position eq 'POS005' or sailor.position eq 'POS006'}">
                <div class="col-4">
                  <input type="text" class="form-control form-control-sm border-0" readonly
                         th:value="|직책: ${sailor.position eq 'POS005'?'기타 간부선원':'일반선원 또는 확인불가'} 구속여부: ${sailor.isRestriction eq 'Y'?'구속':'불구속'} 이름: ${sailor.sailorNameKr}|">
                </div>
              </th:block>
            </th:block>
          </div>
        </div>
      </div>
      <div class="row border border-secondary border-top-0">
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">추방인원</label>
        <div class="col-sm-2 border-end border-secondary">
          <input type="text" class="form-control form-control-sm border-0" readonly th:value="${crackdownStatus.processResult.exileCnt}">
        </div>
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">추방일</label>
        <div class="col-sm-2 border-end border-secondary">
          <input type="text" class="form-control form-control-sm border-0" readonly th:value="${crackdownStatus.processResult.exileDt}">
        </div>
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">항공편</label>
        <div class="col-sm-2 border-end border-secondary">
          <input type="text" class="form-control form-control-sm border-0" readonly th:value="${crackdownStatus.processResult.flight}">
        </div>
      </div>
      <div class="row border border-secondary border-top-0">
        <label class="col-sm-1 col-form-label col-form-label-sm py-2 border-end border-secondary text-center">출입국 담당자</label>
        <div class="col-sm-4">
          <input type="text" class="form-control form-control-sm border-0" readonly
                 th:value="|사무소명: ${crackdownStatus.processResult.immigrationOfficeName} 담당자: ${crackdownStatus.processResult.immigrationOfficeOfficerName} 연락처: ${crackdownStatus.processResult.immigrationOfficeOfficerContact}|">
        </div>
      </div>
    </div>
    <div class="tab-pane fade p-2 mx-2" id="fishingBoatVersionTabPanel" role="tabpanel" aria-labelledby="fishingBoatVersionTab" tabindex="0">
      <div class="row">
        <div class="col-4">
          <table class="table table-hover">
            <thead>
            <tr>
              <td></td>
              <td>수정자</td>
              <td>수정일</td>
            </tr>
            </thead>
            <tbody>
            <tr class="versionInfoTr" th:each="fishingBoat:${crackdownStatus.fishingBoatVersionList}">
              <input type="hidden" class="fbKey" th:value="${fishingBoat.fbKey}">
              <input type="hidden" class="versionNo" th:value="${fishingBoat.versionNo}">
              <td><input type="checkbox" class="versionInfoChkbox"></td>
              <td>
                <th:block th:each="commonCode:${session.commonCode.get('OG')}">
                  <th:block th:if="${fishingBoat.wrtOrgan eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></th:block>
                </th:block>
                <br>
                <th:block th:each="commonCode:${session.commonCode.get('JT')}">
                  <th:block th:if="${fishingBoat.wrtUserGrd eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></th:block>
                </th:block>
                <th:block th:text="${fishingBoat.wrtUserNm}"></th:block>
              </td>
              <td th:text="${#temporals.format(fishingBoat.wrtDt, 'yyyy-MM-dd HH:mm')}"></td>
            </tr>
            </tbody>
          </table>
        </div>
        <div class="col-8" id="fishingBoardVersionInfoDiv">

        </div>
      </div>
    </div>
  </div>
</div>
<div class="modal-footer">
  <th:block th:if="${userSeq eq crackdownStatus.fishingBoat.wrtUserSeq or accessAuth eq 'ACC003'}"><!--작성자일 경우 수정 허용--><!--관리자일 경우 수정 허용-->
    <button type="button" class="btn btn-warning" id="editFishingBoatBtn">수정</button>
  </th:block>
  <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button>
</div>