flower.blade.php 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. @extends('layouts.app')
  2. @section('content')
  3. <div id="flower" class="container-fluid">
  4. @include('service.navTabs')
  5. <h5>화훼 시세</h5>
  6. <hr/>
  7. <dl>
  8. <dd>한국농수산식품유통공사가 제공하는 화훼 경매 시세 정보입니다.</dd>
  9. <dd>경매정보를 일자별로 비교 분석할 수 있도록 제공합니다.</dd>
  10. <dd>휴일 안내 : 매주 일요일, 신정(1월 1일), 설날 및 추석연휴</dd>
  11. <dd>제공날짜 : 절화(월~토), 난(월/목), 관엽(화/목)</dd>
  12. <dd>제공시간 : 절화(당일 9시이후), 난/관엽/춘란 (익일 오전 10시)</dd>
  13. </dl>
  14. <form name="f_service_flower" id="fServiceFlower" action="{{ route('service.price.flower') }}" method="get" accept-charset="UTF-8">
  15. <input type="hidden" name="page" value="{{ $page }}"/>
  16. <input type="hidden" name="per_page" value="{{ $perPage }}"/>
  17. <input type="hidden" name="p_name" value="{{ $pName }}"/>
  18. <table class="table table-borderless w-auto">
  19. <colgroup>
  20. <col width="80px"/>
  21. <col width="300px"/>
  22. <col width="80px"/>
  23. <col width="300px"/>
  24. </colgroup>
  25. <tr>
  26. <th><label>부류</label></th>
  27. <td>
  28. <div class="form-check-inline">
  29. <input type="radio" name="gubun" id="gubun_1" class="form-check-input" value="1" @if($gubun == '1') checked @endif/>
  30. <label for="gubun_1" class="form-check-label">절화</label>
  31. </div>
  32. <div class="form-check-inline">
  33. <input type="radio" name="gubun" id="gubun_3" class="form-check-input" value="3" @if($gubun == '3') checked @endif/>
  34. <label for="gubun_3" class="form-check-label">난</label>
  35. </div>
  36. <div class="form-check-inline">
  37. <input type="radio" name="gubun" id="gubun_2" class="form-check-input" value="2" @if($gubun == '2') checked @endif/>
  38. <label for="gubun_2" class="form-check-label">관엽</label>
  39. </div>
  40. <div class="form-check-inline">
  41. <input type="radio" name="gubun" id="gubun_4" class="form-check-input" value="4" @if($gubun == '4') checked @endif/>
  42. <label for="gubun_4" class="form-check-label">춘란</label>
  43. </div>
  44. </td>
  45. <th><label for="pName" class="col-form-label">품목명</label></th>
  46. <td>
  47. <select name="pid" id="pid" class="form-select" data-selected="{{ $pid }}">
  48. <option value="">전체</option>
  49. </select>
  50. </td>
  51. </tr>
  52. <tr>
  53. <th><label for="date" class="col-form-label">기준일</label></th>
  54. <td>
  55. <input type="text" name="date" id="date" class="form-control date-picker" value="{{ $date }}" />
  56. </td>
  57. <th><label for="gName" class="col-form-label">품종명</label></th>
  58. <td>
  59. <input type="text" name="g_name" id="gName" class="form-control" value="{{ $gName }}" />
  60. </td>
  61. <td rowspan="2">
  62. <button type="submit" class="btn btn-dark h-100">검색</button>
  63. </td>
  64. </tr>
  65. </table>
  66. </form>
  67. <div class="table-responsive">
  68. <table class="table table-hover table-bordered table-nowrap">
  69. <caption>
  70. <div class="row align-items-end">
  71. <div class="col">
  72. <label>전체 : {{ number_format($total) }}</label>
  73. </div>
  74. <div class="col-auto">
  75. <select name="per_page" id="perPage" class="form-select">
  76. <option value="10" @if($perPage == '10') selected @endif>10개씩</option>
  77. <option value="15" @if($perPage == '15') selected @endif>15개씩</option>
  78. <option value="20" @if($perPage == '20') selected @endif>20개씩</option>
  79. <option value="30" @if($perPage == '30') selected @endif>30개씩</option>
  80. <option value="40" @if($perPage == '40') selected @endif>40개씩</option>
  81. <option value="50" @if($perPage == '50') selected @endif>50개씩</option>
  82. </select>
  83. </div>
  84. </div>
  85. </caption>
  86. <thead>
  87. <tr>
  88. <th>No</th>
  89. <th>경매일자</th>
  90. <th>화훼부류명</th>
  91. <th>품목명</th>
  92. <th>품종명</th>
  93. <th>등급명</th>
  94. <th>최고가</th>
  95. <th>최저가</th>
  96. <th>평균가</th>
  97. <th>총물량</th>
  98. <th>총금액</th>
  99. </tr>
  100. </thead>
  101. <tbody>
  102. @if($total > 0)
  103. @foreach($list as $row)
  104. <tr>
  105. <td>{{ $row['num'] }}</td>
  106. <td>{{ $row['saleDate'] }}</td>
  107. <td>{{ $row['flowerGubn'] }}</td>
  108. <td>{{ $row['pumName'] }}</td>
  109. <td>{{ $row['goodName'] }}</td>
  110. <td>{{ $row['lvNm'] }}</td>
  111. <td>{{ $row['maxAmt'] }}</td>
  112. <td>{{ $row['minAmt'] }}</td>
  113. <td>{{ $row['avgAmt'] }}</td>
  114. <td>{{ $row['totQty'] }}</td>
  115. <td>{{ $row['totAmt'] }}</td>
  116. </tr>
  117. @endforeach
  118. @else
  119. <tr>
  120. <td colspan="11">
  121. No data.
  122. </td>
  123. </tr>
  124. @endif
  125. <tr>
  126. <td colspan="6">합계</td>
  127. <td>{{ $maxAmt }}</td>
  128. <td>{{ $minAmt }}</td>
  129. <td>{{ $avgAmt }}</td>
  130. <td>{{ $totQty }}</td>
  131. <td>{{ $totAmt }}</td>
  132. </tr>
  133. </tbody>
  134. <tfoot>
  135. <tr>
  136. <td colspan="11">
  137. <div class="pagination">
  138. {{ $list->withQueryString()->onEachSide(DEFAULT_LIST_PAGE_COUNT)->links('component.pagination') }}
  139. </div>
  140. </td>
  141. </tr>
  142. </tfoot>
  143. </table>
  144. <p>단위 : 속(분), 원/속(분)</p>
  145. </div>
  146. <dl>
  147. <dt>주의 사항</dt>
  148. <dd><small>화훼류경매시세는 양재동 화훼공판장 중도매인들이 전자식 경매를 통하여 낙찰받은 물량의 가격이며, 중도매인들의 제비용 등이 전혀 포함되어 있지 않으므로 도소매 구입금액과 차이가 있을 수 있습니다.</small></dd>
  149. <dd><small>절화류 화목토 요일은 작은 장인 관계로 거래량이 저조하기 때문에 적정 가격형성이 되지 않습니다. 따라서 화,목,토요일 경매시세는 제공되지 않으며 시세자료 비교시는 거래량이 많은 큰 장인 월,수,금요일 자료를 참조하시기 바랍니다.</small></dd>
  150. </dl>
  151. </div>
  152. @endsection
  153. @push('styles')
  154. <link rel="stylesheet" href="{{ asset('css/desktop/service/index.css') }}"/>
  155. @endpush
  156. @push('scripts')
  157. <script src="{{ asset('js/service/flower.js') }}" defer></script>
  158. @endpush