<!DOCTYPE html>
<html lang="ko" xmlns:th="http://www.thymeleaf.org">
<!--
 *******************************************************************************
 * @source  : OrderCustemerInfoWeb.html
 * @desc    : 고객정보 Page
 *============================================================================
 * STYLE24
 * Copyright(C) 2020 TSIT, All rights reserved.
 *============================================================================
 * VER  DATE         AUTHOR      DESCRIPTION
 * ===  ===========  ==========  =============================================
 * 1.0  2021.02.01   jsh77b     최초 작성
 *******************************************************************************
 -->
<input type="hidden" name="delvFeeCdCnt" th:value="${delvFeeCdCnt}"/>
<input type="hidden" name="shotCnt" th:value="${shotCnt}"/>
<input type="hidden" name="wmsCnt" 	th:value="${wmsCnt}"/>

<div class="od_item_box">
	<th:block th:each="delvAllCart, i : ${delvAllCartList}">
		<th:block th:if="${delvAllCart != null and #lists.size(delvAllCart) > 0}">
			<div class="part_dlvr">
				<th:block th:if="${i.index} == 0">
					<th:block th:if="${delvAllCart != null and #lists.size(delvAllCart) > 0}">
						<h4 class="subH3">STYLE24 총알배송 <span>오늘 자정까지 도착</span></h4>
					</th:block>
				</th:block>
				<th:block th:if="${i.index} == 1">
					<th:block th:if="${delvAllCart != null and #lists.size(delvAllCart) > 0}">
						<h4 class="subH3">STYLE24 일반배송</h4>
					</th:block>
				</th:block>
				<th:block th:if="${i.index} == 2">
					<th:block th:if="${delvAllCart != null and #lists.size(delvAllCart) > 0}">
						<h4 class="subH3">업체직배송</h4>
					</th:block>
				</th:block>
				<th:block th:if="${i.index} == 3">
					<th:block th:if="${delvAllCart != null and #lists.size(delvAllCart) > 0}">
						<h4 class="subH3">예약배송</h4>
					</th:block>
				</th:block>
		
				<div class="gd_list">
					<th:block th:each="goods, i : ${delvAllCart}" th:with="imageUrl=${@environment.getProperty('upload.goods.view')}">
						<div class="item_gd">
							<figure>
								<span class="thumb">
									<img th:src="${imageUrl + '/' + goods.sysImgNm}" src="/" width="100%" alt="">
								</span>
								<figcaption>
									<div class="brand" th:text="${goods.brandGroupNm}"></div>
									<div class="name" th:text="${goods.goodsNm}"></div>									
									<div class="option" th:each="colorNm, index : ${goods.colorNmArr}">
										<th:block th:if="${goods.goodsType} == 'G056_S'">
											<span th:text="${goods.itemNmArr[index.index]}+'/'+${colorNm}+'/'+${goods.optCd2Arr[index.index]}"></span>
										</th:block>
										<th:block th:unless="${goods.goodsType} == 'G056_S'">
											<span th:text="${colorNm}+'/'+${goods.optCd2Arr[index.index]}"></span>
										</th:block>  
									</div>
									<div class="option">
										<span>수량:<em th:text="${goods.goodsQty}"></em>개</span>
									</div>
									<div class="price">
										<th:block th:if="${goods.tmtbDcAmt} > 0">
											<span class="selling_price" th:text="${#numbers.formatInteger(goods.tmtbDcAmt, 1, 'COMMA')}"></span>
										</th:block>
										<th:block th:if="${goods.tmtbDcAmt} < 1">
											<span class="selling_price" th:text="${#numbers.formatInteger((goods.currPrice + goods.optAddPrice) * goods.goodsQty, 1, 'COMMA')}"></span>
										</th:block>
									</div>
								</figcaption>
								<th:block th:if="${goods.delvResDt}">
									<p class="info_reserv">
										<i class="ico ico_calender"></i><span th:text="${goods.delvResDt}"></span> 배송예정상품
									</p>
								</th:block>
							</figure>
						</div>
					</th:block>
				</div>
			</div>
			
		</th:block>
	</th:block>
</div>
