@php $controller = DzHelper::controller(); $page = $action = DzHelper::action(); $action = $controller.'_'.$action; @endphp {{ config('dz.name') }} | @yield('title', $page_title ?? '') @if(!empty(config('dz.public.pagelevel.css.'.$action))) @foreach(config('dz.public.pagelevel.css.'.$action) as $style) @endforeach @endif {{-- Global Theme Styles (used by all pages) --}} @if(!empty(config('dz.public.global.css'))) @foreach(config('dz.public.global.css') as $style) @endforeach @endif
@include('elements.header') @include('elements.sidebar') @php $body_class = ''; if($page == 'ui_button'){ $body_class = 'btn-page';} if($page == 'ui_badge'){ $body_class = 'badge-demo';} @endphp
@yield('content')
@stack('models') @include('elements.footer')
@if(!empty(config('dz.public.global.js.top'))) @foreach(config('dz.public.global.js.top') as $script) @endforeach @endif @if(!empty(config('dz.public.pagelevel.js.'.$action))) @foreach(config('dz.public.pagelevel.js.'.$action) as $script) @endforeach @endif @if(!empty(config('dz.public.global.js.bottom'))) @foreach(config('dz.public.global.js.bottom') as $script) @endforeach @endif @stack('scripts')