master.blade.php 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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 name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
  8. <meta name="csrf-token" content="{{ csrf_token() }}">
  9. <meta property="og:image" content="/public/themes/kbgolf/pro/resources/images/og_img.png">
  10. <script src="https://t1.kakaocdn.net/kakao_js_sdk/2.1.0/kakao.min.js" integrity="sha384-dpu02ieKC6NUeKFoGMOKz6102CLEWi9+5RQjWSV0ikYSFFd8M3Wp2reIcquJOemx" crossorigin="anonymous"></script>
  11. @stack('meta')
  12. @php $seoHtml = App\Helpers\Utils::getSeoHtml(); @endphp
  13. @empty ($seoHtml)
  14. <title>{{ env('APP_NAME') }}</title>
  15. <link rel="icon" href="{{ msset(env('FAVICON_PATH')) }}" type="image/x-icon">
  16. @else
  17. {!! $seoHtml !!}
  18. @endempty
  19. <!-- Google Fonts -->
  20. <link href="https://fonts.googleapis.com/css?family=Ubuntu:300,300i,400,400i,500,500i,700,700i&display=swap" rel="stylesheet">
  21. @php $basePath = '/themes/kbgolf/pro/resources'; @endphp
  22. @include('views.partial.site.meta', [ 'basePath' => $basePath ])
  23. @include('views.partial.site.scripts', [ 'basePath' => $basePath ])
  24. @stack('css')
  25. </head>
  26. <!-- page wrapper -->
  27. <body class="boxed_wrapper">
  28. @inject('callApiService', 'App\Services\CallApiService')
  29. @php
  30. $mainMenuPerm = App\Helpers\Utils::getProMainMenu();
  31. $mainMenuPermPage = collect($mainMenuPerm['Page'])->filter(function ($menu) {
  32. return $menu['Sort'] === 'primary';
  33. })->toArray();
  34. $topMenuPermPage = collect($mainMenuPerm['Page'])->filter(function ($menu) {
  35. return $menu['Sort'] === 'top';
  36. })->toArray();
  37. $mainMenuList = App\Helpers\Utils::formatMenuList($mainMenuPermPage, 'MenuCode');
  38. $topMenuList = App\Helpers\Utils::formatMenuList($topMenuPermPage, 'MenuCode');
  39. @endphp
  40. @include('layouts.js-lang')
  41. @include('vendor.lara-izitoast.toast')
  42. <div id="quick-launcher"></div>
  43. <div id="quick-launcher">
  44. <div class="dabory-quick-B quick-launcher quick_kbgolf">
  45. <ul>
  46. <li>
  47. <button type="button" class="return-to-bottom">
  48. <span class="ico ico-bottom"></span>
  49. </button>
  50. </li>
  51. <li>
  52. <dl class="quick_tel">
  53. <dt> 회원권 문의</dt>
  54. <dd>
  55. 본사
  56. <strong>02-572-1888</strong>
  57. </dd>
  58. <dd>
  59. 충청지사
  60. <strong>044-863-1889</strong>
  61. </dd>
  62. </dl>
  63. </li>
  64. <li>
  65. <button type="button" class="show-widget-btn" data-widget="coupon">
  66. <img src="/themes/kbgolf/pro/resources/images/icn_navertalk.png" alt="네네이버 톡톡">
  67. <p class="txt">네이버 톡톡</p>
  68. </button>
  69. </li>
  70. <li>
  71. <button type="button" class="show-widget-btn" id="kakao-plus-friend-btn" data-widget="contact-us">
  72. <img src="/themes/kbgolf/pro/resources/images/icn_kakaotalk.png" alt="카톡 플러스 친구">
  73. <p class="txt">카톡 플러스 친구</p>
  74. </button>
  75. </li>
  76. <li>
  77. <button type="button" class="return-to-top">
  78. <span class="ico ico-top"></span>
  79. </button>
  80. </li>
  81. </ul>
  82. </div>
  83. </div>
  84. <!-- main header -->
  85. @include('views.layouts.main-header')
  86. <!-- main-header end -->
  87. <!-- Mobile Menu -->
  88. @include('views.layouts.mobile-menu')
  89. <!-- End Mobile Menu -->
  90. <div id="app">
  91. @yield('content')
  92. </div>
  93. <!-- main-footer -->
  94. @include('views.layouts.footer')
  95. <!-- main-footer end -->
  96. <!-- sidebar cart item -->
  97. @include('views.layouts.sidebar')
  98. <!-- END sidebar widget item -->
  99. <!--Scroll to top-->
  100. <button class="scroll-top scroll-to-target" data-target="html">
  101. <span class="fa fa-arrow-up"></span>
  102. </button>
  103. <div id="element_in_which_to_insert">
  104. @yield('modal')
  105. @stack('modal')
  106. </div>
  107. @yield('js')
  108. @stack('js')
  109. <script src="{{ csset($basePath . '/js/script.js') }}"></script>
  110. </body><!-- End of .page_wrapper -->
  111. <script>
  112. window.apiKey = {
  113. KAKAO_REST_API_KEY: "{{ env('KAKAO_REST_API_KEY') }}"
  114. };
  115. window.env = (@json($_ENV));
  116. window.Member = @json(session('member'));
  117. window.CodeTitle = @json($codeTitle ?? '');
  118. </script>
  119. {{--<script src="{{ asset('/dabory/js/widget.js?serverUrl=https://safebanner.daboryhost.com&api23Key=XJAL+1IF4/EgIVcuTvcAOoH9ASKjnQje71boZaGpzwVyVcCoVRsxzyMee5goucaC6cWxzLdEcYfIkfj6bLukvs9+lOeUa3CLqpCbhd7v99Bxm011kxUllDLY8/NrXFVn8aa1e57jygREHo7xF2LWOJ9LHc2idRmQ9rXbI46sgiZBwPmi6E/mACBIjUcKq+uviA==') }}"></script>--}}
  120. <script>
  121. Kakao.init(window.apiKey.KAKAO_REST_API_KEY); // 여기에 실제 앱 키를 입력하세요.
  122. $(document).ready(function () {
  123. // $.fn.widget.loadModule(function () {
  124. // $('#quick-launcher').quick()
  125. // })
  126. $('#kakao-plus-friend-btn').on('click', function() {
  127. var channelId = '_aAAGj';
  128. var appKey = window.apiKey.KAKAO_REST_API_KEY;
  129. var origin = encodeURIComponent(window.location.origin);
  130. var referer = encodeURIComponent(window.location.href);
  131. var kakaoAgent = encodeURIComponent('sdk/2.1.0 os/javascript sdk_type/javascript lang/ko-KR device/Win32 origin/' + origin);
  132. var redirectUri = `https://pf.kakao.com/${channelId}/chat?api_ver=1.1&kakao_agent=${kakaoAgent}&app_key=${appKey}&referer=${referer}`;
  133. if (Kakao.Auth.getAccessToken()) {
  134. window.open(redirectUri, '_blank');
  135. } else {
  136. Kakao.Auth.authorize({
  137. redirectUri: redirectUri
  138. });
  139. }
  140. });
  141. });
  142. </script>
  143. </html>