{!! \Helper::cspMetaTag() !!} @if ($__env->yieldContent('title_full'))@yield('title_full') @elseif ($__env->yieldContent('title'))@yield('title') - {{ config('app.name', 'FreeScout') }} @else{{ config('app.name', 'FreeScout') }}@endif @action('layout.head') {{-- Styles --}} {{-- Conversation page must open immediately, so we are loading scripts present on conversation page --}} {{-- style.css must be the last to able to redefine styles --}} @php try { $styles= array('/css/fonts.css', '/css/bootstrap.css', '/css/select2/select2.min.css', '/js/featherlight/featherlight.min.css', '/js/featherlight/featherlight.gallery.min.css', '/css/magic-check.css', '/css/style.css' ); if (Helper::isLocaleRtl()) { $styles[] = '/css/bootstrap-rtl.css'; $styles[] = '/css/style-rtl.css'; } @endphp {!! Minify::stylesheet(\Eventy::filter('stylesheets', $styles)) !!} @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')
@if (Auth::user() && empty(app('request')->x_embed) && empty($__env->yieldContent('guest_mode'))) @endif @if ($__env->yieldContent('sidebar'))
@yield('content')
@else
@yield('content')
@endif @if (!in_array(Route::currentRouteName(), array('mailboxes.view')) && empty(app('request')->x_embed) && empty($__env->yieldContent('no_footer'))) @endif
@include('partials/floating_flash_messages') @yield('body_bottom') @action('layout.body_bottom') {{-- Scripts --}} @php try { @endphp {!! Minify::javascript(\Eventy::filter('javascripts', array('/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', '/js/select2/select2.full.min.js', '/js/polycast/polycast.js', '/js/push/push.min.js', '/js/featherlight/featherlight.min.js', '/js/featherlight/featherlight.gallery.min.js', '/js/taphold.js', '/js/jquery.titlealert.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 @yield('javascripts')