Adding the router view component. Setting global variables accessible in module components

parent d9cf4d51
...@@ -63,6 +63,7 @@ ...@@ -63,6 +63,7 @@
<section class="content"> <section class="content">
@include('partials.notifications') @include('partials.notifications')
@yield('content') @yield('content')
<router-view></router-view>
</section><!-- /.content --> </section><!-- /.content -->
</aside><!-- /.right-side --> </aside><!-- /.right-side -->
@include('partials.footer') @include('partials.footer')
...@@ -72,6 +73,12 @@ ...@@ -72,6 +73,12 @@
@foreach($jsFiles as $js) @foreach($jsFiles as $js)
<script src="{{ URL::asset($js) }}" type="text/javascript"></script> <script src="{{ URL::asset($js) }}" type="text/javascript"></script>
@endforeach @endforeach
<script>
window.translations = {!! json_encode(['page' => trans('page::pages'), 'core' => trans('core::core')]) !!};
window.locales = {!! json_encode(LaravelLocalization::getSupportedLocales()) !!}
window.currentLocale = '{{ locale() }}';
</script>
<script src="{{ mix('js/app.js') }}"></script> <script src="{{ mix('js/app.js') }}"></script>
<?php if (is_module_enabled('Notification')): ?> <?php if (is_module_enabled('Notification')): ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment