Skip to content

Commit

Permalink
Adding the router view component. Setting global variables accessible…
Browse files Browse the repository at this point in the history
… in module components
  • Loading branch information
nWidart committed Sep 15, 2017
1 parent d9cf4d5 commit 46bcaee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Themes/Adminlte/views/layouts/master.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
<section class="content">
@include('partials.notifications')
@yield('content')
<router-view></router-view>
</section><!-- /.content -->
</aside><!-- /.right-side -->
@include('partials.footer')
Expand All @@ -72,6 +73,12 @@
@foreach($jsFiles as $js)
<script src="{{ URL::asset($js) }}" type="text/javascript"></script>
@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>

<?php if (is_module_enabled('Notification')): ?>
Expand Down

0 comments on commit 46bcaee

Please sign in to comment.