From 833091c66f167ace862e1beea195954acb19fedb Mon Sep 17 00:00:00 2001 From: Cristian Tabacitu Date: Thu, 8 Mar 2018 14:15:10 +0200 Subject: [PATCH] added stacks after sections in layout --- src/resources/views/layout.blade.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/resources/views/layout.blade.php b/src/resources/views/layout.blade.php index f6c6051e..2d93ca83 100644 --- a/src/resources/views/layout.blade.php +++ b/src/resources/views/layout.blade.php @@ -13,6 +13,7 @@ @yield('before_styles') + @stack('before_styles') @@ -32,6 +33,7 @@ @yield('after_styles') + @stack('after_styles') @@ -109,6 +111,7 @@ @yield('before_scripts') + @stack('before_scripts') @@ -140,7 +143,7 @@ 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); - + // Set active state on menu element var current_url = "{{ Request::fullUrl() }}"; var full_url = current_url+location.search; @@ -155,7 +158,7 @@ function() { return $(this).attr('href') === full_url; } function() { return $(this).attr('href').startsWith(current_url) || current_url.startsWith($(this).attr('href')); } ); } - + $curentPageLink.parents('li').addClass('active'); {{-- Enable deep link to tab --}} var activeTab = $('[href="' + location.hash.replace("#", "#tab_") + '"]'); @@ -168,6 +171,7 @@ function() { return $(this).attr('href').startsWith(current_url) || current_url. @include('backpack::inc.alerts') @yield('after_scripts') + @stack('after_scripts') {{-- --}}