<!DOCTYPE html
	PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:th="http://www.thymeleaf.org"
	      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
	      layout:decorate="~{admin/layout/emptylayout}">

<th:block layout:fragment="content">
	<!-- container-fluid -->
	<div class="container-fluid">
		<div class="page-name">
			<h1>에이전시 목록</h1>
		</div>

		<ul class="tabletab">
			<li><a class="active">전체(<em class="num" th:text="${searchVO.tatal_list_count}">0</em>)</a></li>
		</ul>
		<div class="tableserachwrap">
			<div>
				<form class="searchWrap-form" name="searchVO">
					<input type="hidden" id="page" name="page" th:value="${searchVO.page}" />
					<ul class="tableserach">
						<li>
							<div class="input-group">
								<div>
									<label class="input-group-text">기간</label>
								</div>
								<input type="date" name="startDate" th:value="${searchVO.startDate}" />
								<input type="date" name="endDate" th:value="${searchVO.endDate}" />
							</div>
						</li>
						<li>
							<div class="input-group">
								<div>
									<label class="input-group-text">에이전시 아이디</label>
								</div>
								<input type="text" name="searchSiteId" class="br0 mr10" value="검색어" th:value="${searchVO.searchSiteId}" />
							</div>
						</li>
						<li>
							<a class="btn" href="javascript:goSearch()">검색</a>
						</li>
					</ul>
				</form>
			</div>
		</div>
		<div class="table">
			<div class="body">
				<div class="table-responsive">					
					<table class="center">
					  <thead>
					    <tr>
					      <th class="left-align">-</th>
					      <th>WINLOSE</th>
					      <th>BET</th>
					      <th>WIN</th>
					    </tr>
					  </thead>
					  <tbody>
					    <tr class="lowA">
					      	<td class="left-align">EVO [A] 정품</td>
							<td><span class="mr-5 bold" th:text="${#numbers.formatInteger(siteTotal.get('dpcoreWinLose'), 0, 'COMMA')}">딥코어 윈루즈</span></td>					      	
						  	<td><span class="mr-5" th:text="${#numbers.formatInteger(siteTotal.get('dpcoreDebit'), 0, 'COMMA')}">딥코어 베팅금</span></td>
						  	<td><span class="mr-5" th:text="${#numbers.formatInteger(siteTotal.get('dpcoreCredit'), 0, 'COMMA')}">딥코어 당첨금</span></td>						      	
						</tr>
					    <tr class="lowA">
							<td class="left-align">EVO [A] HYB</td>	
							<td><span class="mr-5 bold" th:text="${#numbers.formatInteger(siteTotal.get('dpcoreWinLoseP'), 0, 'COMMA')}">딥코어(파싱) 윈루즈</span></td>
							<td><span class="mr-5" th:text="${#numbers.formatInteger(siteTotal.get('dpcoreDebitP'), 0, 'COMMA')}">딥코어(파싱) 베팅금</span></td>
							<td><span class="mr-5" th:text="${#numbers.formatInteger(siteTotal.get('dpcoreCreditP'), 0, 'COMMA')}">딥코어(파싱) 당첨금</span></td>	
					    </tr>
					    <tr class="lowB">
					      	<td class="left-align">EVO [B] 정품</td>
							<td><span class="mr-5 bold" th:text="${#numbers.formatInteger(siteTotal.get('onixWinLose'), 0, 'COMMA')}">핀트리 윈루즈</span></td>						      	
					      	<td><span class="mr-5" th:text="${#numbers.formatInteger(siteTotal.get('onixDebit'), 0, 'COMMA')}">핀트리 베팅금</span></td>
					      	<td><span class="mr-5" th:text="${#numbers.formatInteger(siteTotal.get('onixCredit'), 0, 'COMMA')}">핀트리 당첨금</span></td>						      	
					    </tr>
					    <tr class="lowB">
					      <td class="center-align">EVO [B] HYB</td>
						  <td><span class="mr-5 bold" th:text="${#numbers.formatInteger(siteTotal.get('onixWinLoseP'), 0, 'COMMA')}">핀트리(파싱) 윈루즈</span></td>					      	
  					      <td><span class="mr-5" th:text="${#numbers.formatInteger(siteTotal.get('onixDebitP'), 0, 'COMMA')}">핀트리(파싱) 베팅금</span></td>
  					      <td><span class="mr-5" th:text="${#numbers.formatInteger(siteTotal.get('onixCreditP'), 0, 'COMMA')}">핀트리(파싱) 당첨금</span></td>
					    </tr>
						  <tr>
						    <td class="left-align">EVO 정품</td>
						    <td><span class="mr-5 bold" th:text="${#numbers.formatInteger(siteTotal.get('genuineWinLose'), 0, 'COMMA')}">EVO 윈루즈</span></td>
						    <td><span class="mr-5" th:text="${#numbers.formatInteger(siteTotal.get('genuineDebit'), 0, 'COMMA')}">EVO 베팅금</span></td>
						    <td><span class="mr-5" th:text="${#numbers.formatInteger(siteTotal.get('genuineCredit'), 0, 'COMMA')}">EVO 당첨금</span></td>						      
						  </tr>
						  <tr>
						    <td class="left-align">EVO [All]</td>
						    <td><span class="mr-5 bold" th:text="${#numbers.formatInteger(siteTotal.get('evoWinLose'), 0, 'COMMA')}">EVO 윈루즈</span></td>
						    <td><span class="mr-5" th:text="${#numbers.formatInteger(siteTotal.get('evoDebit'), 0, 'COMMA')}">EVO 베팅금</span></td>
						    <td><span class="mr-5" th:text="${#numbers.formatInteger(siteTotal.get('evoCredit'), 0, 'COMMA')}">EVO 당첨금</span></td>						      
						  </tr>
						  <tr>
						    <td class="left-align">ProgmaticSlot</td>
						    <td><span class="mr-5 bold" th:text="${#numbers.formatInteger(siteTotal.get('prasWinLose'), 0, 'COMMA')}">PRA 윈루즈</span></td>
						    <td><span class="mr-5" th:text="${#numbers.formatInteger(siteTotal.get('prasDebit'), 0, 'COMMA')}">PRA 베팅금</span></td>
						    <td><span class="mr-5" th:text="${#numbers.formatInteger(siteTotal.get('prasCredit'), 0, 'COMMA')}">PRA 당첨금</span></td>						      
						  </tr>
						  <tr>
						    <td class="left-align">Total</td>
						    <td><span class="mr-5 bold" th:text="${#numbers.formatInteger(siteTotal.get('winLose'), 0, 'COMMA')}">총 윈루즈</span></td>
						    <td><span class="mr-5" th:text="${#numbers.formatInteger(siteTotal.get('debit'), 0, 'COMMA')}">총 베팅금</span></td>
						    <td><span class="mr-5" th:text="${#numbers.formatInteger(siteTotal.get('credit'), 0, 'COMMA')}">총 당첨금</span></td>						      
						  </tr>
						<tr><td colspan="7" class="ps2"></tr>
					  </tbody>
					</table>
				</div>
			</div>
		</div>
		<div class="table">
			<div class="body">
				<div class="table-responsive">					
					<table class="center">
						<th:block th:each="site,siteSeq : ${siteList}">
						  <thead>
						    <tr>
						      <th class="left-align">
								<a th:text="${site.siteId}">아이디</a>
								<a style="color: rgb(128, 0, 64);" th:text="${site.siteName}">에이전시</a><br>
								[<a th:text="${#numbers.formatInteger(site.creditBalance, 0, 'COMMA')}">에이전시</a>]								
							  </th>
						      <th>WINLOSE</th>
						      <th>BET</th>
						      <th>WIN</th>
						    </tr>
						  </thead>
						  <tbody>
						    <tr class="lowA">
						      	<td class="left-align">EVO [A] 정품</td>
								<td><span class="mr-5 bold" th:text="${#numbers.formatInteger(site.get('dpcoreWinLose'), 0, 'COMMA')}">딥코어 윈루즈</span></td>					      	
								<td><span class="mr-5" th:text="${#numbers.formatInteger(site.get('dpcoreDebit'), 0, 'COMMA')}">딥코어 베팅금</span></td>
								<td><span class="mr-5" th:text="${#numbers.formatInteger(site.get('dpcoreCredit'), 0, 'COMMA')}">딥코어 당첨금</span></td>						      	
						    </tr>
						    <tr class="lowA">
								<td class="left-align">EVO [A] HYB</td>
								<td><span class="mr-5 bold" th:text="${#numbers.formatInteger(site.get('dpcoreWinLoseP'), 0, 'COMMA')}">딥코어(파싱) 윈루즈</span></td>
								<td><span class="mr-5" th:text="${#numbers.formatInteger(site.get('dpcoreDebitP'), 0, 'COMMA')}">딥코어(파싱) 베팅금</span></td>
								<td><span class="mr-5" th:text="${#numbers.formatInteger(site.get('dpcoreCreditP'), 0, 'COMMA')}">딥코어(파싱) 당첨금</span></td>					      	
						    </tr>
						    <tr class="lowB">
						      	<td class="left-align">EVO [B] 정품</td>
								<td><span class="mr-5 bold" th:text="${#numbers.formatInteger(site.get('onixWinLose'), 0, 'COMMA')}">핀트리 윈루즈</span></td>						      	
								<td><span class="mr-5" th:text="${#numbers.formatInteger(site.get('onixDebit'), 0, 'COMMA')}">핀트리 베팅금</span></td>
								<td><span class="mr-5" th:text="${#numbers.formatInteger(site.get('onixCredit'), 0, 'COMMA')}">핀트리 당첨금</span></td>
						    </tr>
						    <tr class="lowB">
						      <td class="center-align">EVO [B] HYB</td>
								<td><span class="mr-5 bold" th:text="${#numbers.formatInteger(site.get('onixWinLoseP'), 0, 'COMMA')}">핀트리(파싱) 윈루즈</span></td>					      	
								<td><span class="mr-5" th:text="${#numbers.formatInteger(site.get('onixDebitP'), 0, 'COMMA')}">핀트리(파싱) 베팅금</span></td>
								<td><span class="mr-5" th:text="${#numbers.formatInteger(site.get('onixCreditP'), 0, 'COMMA')}">핀트리(파싱) 당첨금</span></td>
						    </tr>
							<tr>
							  <td class="left-align">EVO 정품</td>
							  <td><span class="mr-5 bold" th:text="${#numbers.formatInteger(site.get('genuineWinLose'), 0, 'COMMA')}">EVO 윈루즈</span></td>
							  <td><span class="mr-5" th:text="${#numbers.formatInteger(site.get('genuineDebit'), 0, 'COMMA')}">EVO 베팅금</span></td>
							  <td><span class="mr-5" th:text="${#numbers.formatInteger(site.get('genuineCredit'), 0, 'COMMA')}">EVO 당첨금</span></td>						      
							</tr>
						    <tr>
						      <td class="left-align">EVO [All]</td>
							  <td><span class="mr-5 bold" th:text="${#numbers.formatInteger(site.get('evoWinLose'), 0, 'COMMA')}">EVO 윈루즈</span></td>
						      <td><span class="mr-5" th:text="${#numbers.formatInteger(site.get('evoDebit'), 0, 'COMMA')}">EVO 베팅금</span></td>
						      <td><span class="mr-5" th:text="${#numbers.formatInteger(site.get('evoCredit'), 0, 'COMMA')}">EVO 당첨금</span></td>						      
						    </tr>
						    <tr>
						      <td class="left-align">ProgmaticSlot</td>
							  <td><span class="mr-5 bold" th:text="${#numbers.formatInteger(site.get('prasWinLose'), 0, 'COMMA')}">PRA 윈루즈</span></td>
						      <td><span class="mr-5" th:text="${#numbers.formatInteger(site.get('prasDebit'), 0, 'COMMA')}">PRA 베팅금</span></td>
						      <td><span class="mr-5" th:text="${#numbers.formatInteger(site.get('prasCredit'), 0, 'COMMA')}">PRA 당첨금</span></td>						      
						    </tr>
						    <tr>
						      <td class="left-align">Total</td>
							  <td><span class="mr-5 bold" th:text="${#numbers.formatInteger(site.get('winLose'), 0, 'COMMA')}">총 윈루즈</span></td>
						      <td><span class="mr-5" th:text="${#numbers.formatInteger(site.get('debit'), 0, 'COMMA')}">총 베팅금</span></td>
						      <td><span class="mr-5" th:text="${#numbers.formatInteger(site.get('credit'), 0, 'COMMA')}">총 당첨금</span></td>						      
						    </tr>
							<tr><td colspan="7" class="ps2"></tr>
						  </tbody>
						</th:block>
					</table>
					<th:block th:utext="${pageInfo}"></th:block>
				</div>
			</div>
		</div>
	</div>
	<!-- container-fluid -->
</th:block>
</html>