master.blade.php 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <script src="{{ csset('/js/plugins/vue/vue@2.6.11.js') }}"></script>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
  9. <meta name="csrf-token" content="{{ csrf_token() }}">
  10. <meta property="og:image" content="/public/themes/kbgolf/pro/resources/images/og_img.png">
  11. <script src="https://t1.kakaocdn.net/kakao_js_sdk/2.1.0/kakao.min.js" integrity="sha384-dpu02ieKC6NUeKFoGMOKz6102CLEWi9+5RQjWSV0ikYSFFd8M3Wp2reIcquJOemx" crossorigin="anonymous"></script>
  12. <script src="https://static.nid.naver.com/js/naveridlogin_js_sdk_2.0.1.js"></script>
  13. <script src="{{ csset('/js/iziToast.js') }}"></script>
  14. <script src="{{ csset('/js/components/screen-size.js') }}"></script>
  15. <?php
  16. // used for RESS
  17. // if ( !Cookie::has('resolution') ) // doesn't work
  18. if ( !isset( $_COOKIE['screenWidth'] ) || !isset( $_COOKIE['screenHeight']) )
  19. {
  20. ?>
  21. <script>get_screen_size()</script>
  22. <?php
  23. }
  24. ?>
  25. @stack('meta')
  26. @php $seoHtml = App\Helpers\Utils::getSeoHtml(); @endphp
  27. @empty ($seoHtml)
  28. <title>{{ env('APP_NAME') }}</title>
  29. <link rel="icon" href="{{ msset(env('FAVICON_PATH')) }}" type="image/x-icon">
  30. @else
  31. {!! $seoHtml !!}
  32. @endempty
  33. <!-- Google Fonts -->
  34. <link href="https://fonts.googleapis.com/css?family=Ubuntu:300,300i,400,400i,500,500i,700,700i&display=swap" rel="stylesheet">
  35. <link href="{{ csset('/css/iziToast.css') }}" rel="stylesheet">
  36. @php $basePath = '/themes/kbgolf/pro/resources'; @endphp
  37. @include('views.partial.site.meta', [ 'basePath' => $basePath ])
  38. @include('views.partial.site.scripts', [ 'basePath' => $basePath ])
  39. @stack('css')
  40. </head>
  41. <!-- page wrapper -->
  42. <body class="boxed_wrapper">
  43. @inject('callApiService', 'App\Services\CallApiService')
  44. @php
  45. $mainMenuPerm = App\Helpers\Utils::getProMainMenu();
  46. $mainMenuPermPage = collect($mainMenuPerm['Page'])->filter(function ($menu) {
  47. return $menu['Sort'] === 'primary';
  48. })->toArray();
  49. $topMenuPermPage = collect($mainMenuPerm['Page'])->filter(function ($menu) {
  50. return $menu['Sort'] === 'top';
  51. })->toArray();
  52. $mainMenuList = App\Helpers\Utils::formatMenuList($mainMenuPermPage, 'MenuCode');
  53. $topMenuList = App\Helpers\Utils::formatMenuList($topMenuPermPage, 'MenuCode');
  54. @endphp
  55. @include('layouts.js-lang')
  56. @include('vendor.lara-izitoast.toast')
  57. <div id="quick-launcher"></div>
  58. <div id="quick-launcher">
  59. <div class="dabory-quick-B quick-launcher quick_kbgolf">
  60. <ul>
  61. <li>
  62. <button type="button" class="return-to-bottom">
  63. <span class="ico ico-bottom"></span>
  64. </button>
  65. </li>
  66. <li>
  67. <dl class="quick_tel">
  68. <dt>회원권 문의</dt>
  69. <dd>
  70. 본사
  71. <div onclick="document.location.href='tel:02-572-1888'"><strong>02-572-1888</strong></div>
  72. <!-- <strong>02-572-1888</strong> -->
  73. </dd>
  74. <dd>
  75. 충청지사
  76. <div onclick="document.location.href='tel:044-863-1889'"><strong>044-863-1889</strong></div>
  77. <!-- <strong>044-863-1889</strong> -->
  78. </dd>
  79. </dl>
  80. </li>
  81. @foreach ($oauth2InfoList as $provider => $oauth2)
  82. @if($provider == 'kakao' || $provider == 'naver')
  83. <li>
  84. <button type="button" id="{{ $provider }}-login-button" onclick="openPopup('{{ route('social.redirectToProvider', ['provider' => $provider, 'target' => 'member']) }}')">
  85. <img src="{{ asset('themes/kbgolf/pro/resources/images/' . ($provider == 'naver' ? 'icn_navertalk.png' : 'icn_kakaotalk.png')) }}" alt="{{ $provider }}">
  86. <p class="txt">{{ $provider == 'naver' ? '네이버 톡톡' : '카카오 플러스 친구' }}</p>
  87. </li>
  88. @endif
  89. @endforeach
  90. <li>
  91. <button type="button" class="return-to-top">
  92. <span class="ico ico-top"></span>
  93. </button>
  94. </li>
  95. </ul>
  96. </div>
  97. </div>
  98. <!-- main header -->
  99. @include('views.layouts.main-header')
  100. <!-- main-header end -->
  101. <!-- Mobile Menu -->
  102. @include('views.layouts.mobile-menu')
  103. <!-- End Mobile Menu -->
  104. <div id="app">
  105. @yield('content')
  106. </div>
  107. <!-- main-footer -->
  108. @include('views.layouts.footer')
  109. <!-- main-footer end -->
  110. <!-- sidebar cart item -->
  111. @include('views.layouts.sidebar')
  112. <!-- END sidebar widget item -->
  113. <!--Scroll to top-->
  114. <button class="scroll-top scroll-to-target" data-target="html">
  115. <span class="fa fa-arrow-up"></span>
  116. </button>
  117. <div id="element_in_which_to_insert">
  118. @yield('modal')
  119. @stack('modal')
  120. </div>
  121. @yield('js')
  122. @stack('js')
  123. <script src="{{ csset($basePath . '/js/script.js') }}"></script>
  124. </body><!-- End of .page_wrapper -->
  125. <script>
  126. window.env = (@json($_ENV));
  127. window.Member = @json(session('member'));
  128. window.CodeTitle = @json($codeTitle ?? '');
  129. </script>
  130. {{--<script src="{{ asset('/dabory/js/widget.js?serverUrl=https://safebanner.daboryhost.com&api23Key=XJAL+1IF4/EgIVcuTvcAOoH9ASKjnQje71boZaGpzwVyVcCoVRsxzyMee5goucaC6cWxzLdEcYfIkfj6bLukvs9+lOeUa3CLqpCbhd7v99Bxm011kxUllDLY8/NrXFVn8aa1e57jygREHo7xF2LWOJ9LHc2idRmQ9rXbI46sgiZBwPmi6E/mACBIjUcKq+uviA==') }}"></script>--}}
  131. <script>
  132. function openPopup(url) {
  133. const width = 600;
  134. const height = 600;
  135. const left = (window.innerWidth / 2) - (width / 2);
  136. const top = (window.innerHeight / 2) - (height / 2);
  137. window.open(url, 'oauthPopup', `width=${width},height=${height},top=${top},left=${left}`);
  138. }
  139. </script>
  140. </html>