master.blade.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. @stack('meta')
  10. <title>@yield('title', env('APP_NAME'))</title>
  11. <!-- Fav Icon -->
  12. <link rel="icon" href="{{ msset(env('FAVICON_PATH')) }}" type="image/x-icon">
  13. <!-- Google Fonts -->
  14. <link href="https://fonts.googleapis.com/css?family=Ubuntu:300,300i,400,400i,500,500i,700,700i&display=swap" rel="stylesheet">
  15. @php $basePath = '/themes/pro/syncblock/resources'; @endphp
  16. @include('views.partial.site.meta', [ 'basePath' => $basePath ])
  17. @include('views.partial.site.scripts', [ 'basePath' => $basePath ])
  18. @stack('css')
  19. </head>
  20. <!-- page wrapper -->
  21. <body class="boxed_wrapper">
  22. @inject('callApiService', 'App\Services\CallApiService')
  23. @php
  24. $mainMenuPerm = App\Helpers\Utils::getProMainMenu();
  25. $mainMenuPermPage = collect($mainMenuPerm['Page'])->filter(function ($menu) {
  26. return $menu['Sort'] === 'syncblock-primary';
  27. })->toArray();
  28. $topMenuPermPage = collect($mainMenuPerm['Page'])->filter(function ($menu) {
  29. return $menu['Sort'] === 'syncblock-top';
  30. })->toArray();
  31. $mainMenuList = App\Helpers\Utils::formatMenuList($mainMenuPermPage, 'MenuCode');
  32. $topMenuList = App\Helpers\Utils::formatMenuList($topMenuPermPage, 'MenuCode');
  33. @endphp
  34. @include('layouts.js-lang')
  35. @include('vendor.lara-izitoast.toast')
  36. <div id="quick-launcher"></div>
  37. <!-- main header -->
  38. @include('views.layouts.main-header')
  39. <!-- main-header end -->
  40. <!-- Mobile Menu -->
  41. @include('views.layouts.mobile-menu')
  42. <!-- End Mobile Menu -->
  43. <div id="app">
  44. @yield('content')
  45. </div>
  46. <!-- main-footer -->
  47. @include('views.layouts.footer')
  48. <!-- main-footer end -->
  49. <!-- sidebar cart item -->
  50. @include('views.layouts.sidebar')
  51. <!-- END sidebar widget item -->
  52. <!--Scroll to top-->
  53. <button class="scroll-top scroll-to-target" data-target="html">
  54. <span class="fa fa-arrow-up"></span>
  55. </button>
  56. <div id="element_in_which_to_insert">
  57. @yield('modal')
  58. @stack('modal')
  59. </div>
  60. @yield('js')
  61. @stack('js')
  62. <script src="{{ csset($basePath . '/js/script.js') }}"></script>
  63. </body><!-- End of .page_wrapper -->
  64. <script>
  65. window.env = (@json($_ENV));
  66. window.Member = @json(session('member'));
  67. window.CodeTitle = @json($codeTitle ?? '');
  68. </script>
  69. <script src="{{ asset('/dabory/js/widget.js?serverUrl=https://safebanner.daboryhost.com&api23Key=XJAL+1IF4/EgIVcuTvcAOoH9ASKjnQje71boZaGpzwVyVcCoVRsxzyMee5goucaC6cWxzLdEcYfIkfj6bLukvs9+lOeUa3CLqpCbhd7v99Bxm011kxUllDLY8/NrXFVn8aa1e57jygREHo7xF2LWOJ9LHc2idRmQ9rXbI46sgiZBwPmi6E/mACBIjUcKq+uviA==') }}"></script>
  70. <script>
  71. $(document).ready(function () {
  72. $.fn.widget.loadModule(function () {
  73. $('#quick-launcher').quick()
  74. })
  75. });
  76. </script>
  77. </html>