navTabs.blade.php 1.2 KB

12345678910111213141516171819
  1. <div class="row">
  2. <div class="col col-sm-auto">
  3. <select name="service_tab" id="serviceTab" class="form-select">
  4. <option value="{{ route('service.financial.exchange') }}" @if($menuID == 'exchange') selected @endif>환율</option>
  5. <option value="{{ route('service.financial.interest') }}" @if($menuID == 'interest') selected @endif>대출 금리</option>
  6. <option value="{{ route('service.financial.international') }}" @if($menuID == 'international') selected @endif>국제 금리</option>
  7. <option value="{{ route('service.price.flower') }}" @if($menuID == 'flower') selected @endif>화훼 시세</option>
  8. <option value="{{ route('service.anniversary') }}" @if($menuID == 'anniversary') selected @endif>공휴일/특일</option>
  9. <option value="{{ route('service.fifa') }}" @if($menuID == 'fifa') selected @endif>FIFA 순위</option>
  10. <option value="{{ route('service.lotto') }}" @if($menuID == 'lotto') selected @endif>로또 당첨번호</option>
  11. </select>
  12. </div>
  13. </div>
  14. <br/>
  15. <script>
  16. document.getElementById("serviceTab").addEventListener('change', function (e) {
  17. location.href = e.target.value;
  18. });
  19. </script>