@if ($company && $company->matomo_url && $company->matomo_id)
@elseif (config('services.analytics.tracking_id'))
@else
@endif
@if(isset($company->account) && !$company->account->isPaid())
@yield('meta_title', '') — Invoice Ninja
@elseif(isset($company) && !is_null($company))
@yield('meta_title', '') — {{ $company->present()->name() }}
@else
@yield('meta_title', '')
@endif
{{-- --}}
{{-- --}}
@if(auth()->guard('contact')->user() && !auth()->guard('contact')->user()->user->account->isPaid())
@endif
@if((bool) \App\Utils\Ninja::isSelfHost())
@endif
@livewireStyles
{{-- Feel free to push anything to header using @push('header') --}}
@stack('head')
@if((isset($company) && $company->account->isPaid() && !empty($client->getSetting('portal_custom_head'))) || ((bool) \App\Utils\Ninja::isSelfHost() && !empty($client->getSetting('portal_custom_head'))))
{!! $client->getSetting('portal_custom_head') !!}
@endif
@include('portal.ninja2020.components.primary-color')
@if(session()->has('message'))
{{ session('message') }}
@endif
@component('portal.ninja2020.components.general.sidebar.main')
@yield('body')
@endcomponent
@livewireScripts
@if($company && $company->google_analytics_key)
@endif
@if((bool) \App\Utils\Ninja::isSelfHost())
@endif