{!! \Helper::cspMetaTag() !!} @if (View::getSection('title') != \Kb::getKbName($mailbox))@yield('title') - {{ \Kb::getKbName($mailbox) }}@else{{ \Kb::getKbName($mailbox) }}@endif @action('layout.head') @php try { @endphp {!! Minify::stylesheet(\Eventy::filter('stylesheets', array('/css/fonts.css', '/css/bootstrap.css', '/css/style.css', \Module::getPublicPath(KB_MODULE).'/css/style.css'))) !!} @php } catch (\Exception $e) { // Try...catch is needed to catch errors when activating a module and public symlink not created for module. \Helper::logException($e); } @endphp @yield('stylesheets')
@yield('content')
@action('layout.body_bottom') {{-- Scripts --}} @php try { @endphp {!! Minify::javascript(\Eventy::filter('kb.javascripts', ['/js/jquery.js', '/js/bootstrap.js', '/js/lang.js', '/storage/js/vars.js', '/js/laroute.js', '/js/parsley/parsley.min.js', '/js/parsley/i18n/'.strtolower(Config::get('app.locale')).'.js', \Module::getPublicPath(KB_MODULE).'/js/main.js', '/js/main.js'])) !!} @php } catch (\Exception $e) { // To prevent 500 errors on update. // Also catches errors when activating a module and public symlink not created for module. if (strstr($e->getMessage(), 'vars.js')) { \Artisan::call('freescout:generate-vars'); } \Helper::logException($e); } @endphp