layout.blade.php 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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/common/layout.css') }}"/>
  29. @stack('styles')
  30. <script>
  31. // 자바스크립트에서 사용하는 전역변수 선언
  32. var UID = {{ UID }};
  33. var BASE_URL = "{{ BASE_URL }}";
  34. var FULL_URL = "{{ FULL_URL }}";
  35. var ADMIN_URL = "{{ ADMIN_URL }}";
  36. var CHARSET = "{{ CHARSET }}";
  37. var DATE = "{{ DATE }}";
  38. var DATETIME = "{{ DATETIME }}";
  39. var IP_ADDRESS = "{{ IP_ADDRESS }}";
  40. var REFERER = "{{ REFERER }}";
  41. var USER_AGENT = "{{ USER_AGENT }}";
  42. var DEVICE = "{{ DEVICE }}";
  43. var PLATFORM = "{{ PLATFORM }}";
  44. var BROWSER = "{{ BROWSER }}";
  45. var IS_USER = {{ IS_USER }};
  46. var IS_ADMIN = {{ IS_ADMIN }};
  47. var IS_FRONT = 1;
  48. var CSRF = "{{ csrf_token() }}";
  49. </script>
  50. <!--[if lt IE 9]>
  51. <script src="{{ asset('js/common/html5shiv.min.js') }}"></script>
  52. <script src="{{ asset('js/common/respond.min.js') }}"></script>
  53. <script src="{{ asset('js/common/ie8-responsive-file-warning.js') }}"></script>
  54. <![endif]-->
  55. <script src="{{ asset('/js/common/common.js') }}" defer></script>
  56. <script src="{{ asset('/js/common/jquery.validate.extension.js') }}" defer></script>
  57. <script src="{{ asset('/js/front.js') }}" defer></script>
  58. </head>
  59. <body id="app">
  60. @yield('content')
  61. {{-- 처리중 1 --}}
  62. <div id="loading">
  63. <figure class="figure">
  64. <img src="/images/default/loading.gif" class="figure-img img-fluid"/>
  65. <figcaption class="figure-caption">처리 중...</figcaption>
  66. </figure>
  67. </div>
  68. @stack('scripts')
  69. @if(Session::has('message'))
  70. <script>alert(("{!! addslashes(Session::get('message')) !!}"));</script>
  71. @endif
  72. @if ($errors->any())
  73. <script>alert(("{{ addslashes($errors->first()) }}"));</script>
  74. @endif
  75. </body>
  76. </html>