{!! \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')
{{ __('Toggle Navigation') }}
@if (Eventy::filter('layout.header_logo', ''))
@endif
{{ $mailbox->name }}
{{ __('Home') }}
@if (\Kb::getMenu($mailbox)) @foreach(\Kb::getMenu($mailbox) as $button_title => $button_url)
{{ $button_title }}
@endforeach @endif @if (\Kb::isMultilingual($mailbox))
{{ \Helper::getLocaleData(\Kb::getLocale())['name'] ?? '' }}
@foreach(\Kb::getLocales($mailbox) as $locale)
{{ \Helper::getLocaleData($locale)['name'] ?? '' }}
@endforeach
@endif @if (!in_array(\Kb::getSettings($mailbox)['visibility'], [\Kb::VISIBILITY_PUBLIC, \Kb::VISIBILITY_USERS])) @if (Kb::authCustomer())
{{ Kb::authCustomer()->getMainEmail() }}
{{ __('Log Out') }}
{{ csrf_field() }}
@endif @endif @if (\Kb::getSettings($mailbox)['visibility'] != \Kb::VISIBILITY_PUBLIC) @if (Auth::user())
@include('partials/person_photo', ['person' => Auth::user()])
{{ Auth::user()->first_name }}@action('menu.user.name_append', Auth::user())
{{ __('Log Out') }}
{{ csrf_field() }}
@endif @endif
{{ __('Search') }}
@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