{{-- White-label: paint the LEFT NAVIGATION in the current org's primary colour, while the rest of /cp keeps the AGS admin theme (admin-theme.css). We paint the sidebar from the org colour DIRECTLY (not via --primary-*), so buttons, badges and accents stay AGS crimson — only the sidebar reflects the org brand. Injected only when the org explicitly set a primary; AGS / whole-system keeps the default admin-theme sidebar. --}} @php $org = \App\Support\CurrentOrg::get(); // The org's own primary when branded, else AGS crimson — so AGS Math (B2C), // whole-system, and unbranded orgs get the AGS sidebar; branded orgs theirs. $primary = data_get($org?->branding, 'colors.primary') ?: '#960000'; $shades = \Filament\Support\Colors\Color::hex($primary); @endphp