sub.blade.php 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <!DOCTYPE html>
  2. <html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
  3. <head>
  4. <meta charset="utf-8"/>
  5. <meta name="apple-mobile-web-app-title" content="{{ config('meta_application_name') }}"/>
  6. @if($metaViewport = config('meta_viewport'))
  7. <meta name="viewport" content="{{ $metaViewport }}"/>
  8. @else
  9. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  10. @endif
  11. @if($metaRobots = config('meta_robots'))
  12. <meta name="robots" content="{{ $metaRobots }}"/>
  13. @endif
  14. @if($metaAuthor = config('meta_author'))
  15. <meta name="author" content="{{ $metaAuthor }}"/>
  16. @endif
  17. @if($metaKeywords = config('meta_keywords'))
  18. <meta name="keywords" content="{{ $metaKeywords }}"/>
  19. @endif
  20. @if($metaDescription = config('meta_description'))
  21. <meta name="description" content="{{ $metaDescription }}"/>
  22. @endif
  23. {!! config('meta_adds_info') !!}
  24. <!-- CSRF Token -->
  25. <meta name="csrf-token" content="{{ csrf_token() }}"/>
  26. <title>{{ config('site_title', config('app.name')) }}</title>
  27. @vite(['resources/sass/app.scss', 'resources/js/app.js'])
  28. <link rel="stylesheet" href="{{ asset('css/mobile/layout.css') }}"/>
  29. @stack('styles')
  30. <script>
  31. // 자바스크립트에서 사용하는 전역변수 선언
  32. var BASE_URL = "{{ BASE_URL }}";
  33. var FULL_URL = "{{ FULL_URL }}";
  34. var ADMIN_URL = "{{ ADMIN_URL }}";
  35. var CHARSET = "{{ CHARSET }}";
  36. var DATE = "{{ DATE }}";
  37. var DATETIME = "{{ DATETIME }}";
  38. var IP_ADDRESS = "{{ IP_ADDRESS }}";
  39. var REFERER = "{{ REFERER }}";
  40. var USER_AGENT = "{{ USER_AGENT }}";
  41. var DEVICE = "{{ DEVICE }}";
  42. var PLATFORM = "{{ PLATFORM }}";
  43. var BROWSER = "{{ BROWSER }}";
  44. var IS_USER = {{ IS_USER }};
  45. var IS_ADMIN = {{ IS_ADMIN }};
  46. var IS_FRONT = 1;
  47. var CSRF = "{{ csrf_token() }}";
  48. </script>
  49. <script src="{{ asset('/js/common/common.js') }}" defer></script>
  50. <script src="{{ asset('/js/common/jquery.validate.extension.js') }}" defer></script>
  51. <script src="{{ asset('/js/front.js') }}" defer></script>
  52. </head>
  53. <body>
  54. @yield('content')
  55. @stack('scripts')
  56. @include('component.loading')
  57. @include('component.popup')
  58. @include('component.alert')
  59. </body>
  60. </html>