@php // The tab title a customer sees. On a tenant subdomain this is the // seller's brand, not the platform's. $base = parse_url(config('app.url'), PHP_URL_HOST); $host = request()->getHost(); $pageTenant = str_ends_with($host, '.'.$base) ? \App\Models\Reseller::fromSubdomain(\Illuminate\Support\Str::before($host, '.'.$base)) : null; $siteName = $pageTenant?->displayName() ?: (\App\Models\MainSiteData::getValue('site_name') ?: 'Bilipoa'); // The seller's chosen colours, emitted as custom properties that the // stylesheet below reads. Same source the designer previews from, so the // two cannot disagree. $portalTheme = \App\Services\PortalTheme::for($pageTenant); @endphp