@php $isTenant = tenant_check(); if ($isTenant) { $systemSettings = tenant_settings_by_group('system'); $seoSettings = tenant_settings_by_group('seo'); $pusherSettings = tenant_settings_by_group('pusher'); } else { $themeSettings = get_batch_settings([ 'system.active_language', 'theme.seo_meta_title', 'theme.seo_meta_description', 'theme.favicon', ]); } $locale = Auth::check() ? Session::get('locale', config('app.locale')) : ($isTenant ? $systemSettings['active_language'] : $themeSettings['system.active_language'] ?? config('app.locale')); $metaTitle = $isTenant ? $seoSettings['meta_title'] ?? 'WhatsMark' : ($themeSettings['theme.seo_meta_title'] ?: 'WhatsMark'); $metaDescription = $isTenant ? $seoSettings['meta_description'] ?? 'WhatsMark' : ($themeSettings['theme.seo_meta_description'] ?: 'WhatsMark'); $favicon = $isTenant ? (isset($systemSettings['favicon']) ? Storage::url($systemSettings['favicon']) : null) : ($themeSettings['theme.favicon'] ? Storage::url($themeSettings['theme.favicon']) : null); $pageTitle = isset($title) ? " - $title" : ''; @endphp {{ $metaTitle . $pageTitle }} @livewireStyles @include(request()->routeIs('tenant.*') ? 'components.tenant-head-section' : 'components.admin-head-section') @vite(['resources/css/app.css', request()->routeIs('tenant.*') ? 'resources/css/tenant-app.css' : 'resources/css/admin-app.css']) @stack('styles')
@if (request()->routeIs('tenant.*')) @else @endif
{{-- Header --}} @if (request()->routeIs('tenant.*')) @else @endif @if (request()->routeIs('tenant.chat'))
{{ $slot }}
@else
{{ $slot }}
@endif
@livewireScripts @vite(['resources/js/app.js', request()->routeIs('tenant.*') ? 'resources/js/tenant-app.js' : 'resources/js/admin-app.js']) @stack('scripts')