dashboard.blade.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <link rel="stylesheet" href="/theme/{{$theme}}/assets/components.chunk.css?v={{$version}}">
  5. <link rel="stylesheet" href="/theme/{{$theme}}/assets/umi.css?v={{$version}}">
  6. @if (file_exists(public_path("/theme/{$theme}/assets/custom.css")))
  7. <link rel="stylesheet" href="/theme/{{$theme}}/assets/custom.css?v={{$version}}">
  8. @endif
  9. <meta charset="utf-8">
  10. <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">
  11. @php ($colors = [
  12. 'darkblue' => '#3b5998',
  13. 'black' => '#343a40',
  14. 'default' => '#0665d0',
  15. 'green' => '#319795'
  16. ])
  17. <meta name="theme-color" content="{{$colors[$theme_config['theme_color']]}}">
  18. <title>{{$title}}</title>
  19. <!-- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito+Sans:300,400,400i,600,700"> -->
  20. <script>window.routerBase = "/";</script>
  21. <script>
  22. window.settings = {
  23. title: '{{$title}}',
  24. theme_path: '{{$theme_path}}',
  25. theme: {
  26. sidebar: '{{$theme_config['theme_sidebar']}}',
  27. header: '{{$theme_config['theme_header']}}',
  28. color: '{{$theme_config['theme_color']}}',
  29. },
  30. version: '{{$version}}',
  31. background_url: '{{$theme_config['background_url']}}',
  32. description: '{{$description}}',
  33. i18n: [
  34. 'zh-CN',
  35. 'en-US',
  36. 'ja-JP',
  37. 'vi-VN',
  38. 'ko-KR',
  39. 'zh-TW'
  40. ],
  41. logo: '{{$logo}}'
  42. }
  43. </script>
  44. <script src="/theme/{{$theme}}/assets/i18n/zh-CN.js?v={{$version}}"></script>
  45. <script src="/theme/{{$theme}}/assets/i18n/zh-TW.js?v={{$version}}"></script>
  46. <script src="/theme/{{$theme}}/assets/i18n/en-US.js?v={{$version}}"></script>
  47. <script src="/theme/{{$theme}}/assets/i18n/ja-JP.js?v={{$version}}"></script>
  48. <script src="/theme/{{$theme}}/assets/i18n/vi-VN.js?v={{$version}}"></script>
  49. <script src="/theme/{{$theme}}/assets/i18n/ko-KR.js?v={{$version}}"></script>
  50. </head>
  51. <body>
  52. <div id="root"></div>
  53. {!! $theme_config['custom_html'] !!}
  54. <script src="/theme/{{$theme}}/assets/vendors.async.js?v={{$version}}"></script>
  55. <script src="/theme/{{$theme}}/assets/components.async.js?v={{$version}}"></script>
  56. <script src="/theme/{{$theme}}/assets/umi.js?v={{$version}}"></script>
  57. <!-- Global site tag (gtag.js) - Google Analytics -->
  58. <script async src="https://www.googletagmanager.com/gtag/js?id=G-P1E9Z5LRRK"></script>
  59. <script>
  60. window.dataLayer = window.dataLayer || [];
  61. function gtag() {
  62. dataLayer.push(arguments);
  63. }
  64. gtag('js', new Date());
  65. gtag('config', 'G-P1E9Z5LRRK');
  66. </script>
  67. @if (file_exists(public_path("/theme/{$theme}/assets/custom.js")))
  68. <script src="/theme/{{$theme}}/assets/custom.js?v={{$version}}"></script>
  69. @endif
  70. </body>
  71. </html>