@php use App\Models\InterfaceSetting; // Persisted per-user theme row (blank instance if none yet). $s = auth()->check() ? InterfaceSetting::firstOrNew(['user_id' => auth()->id()]) : new InterfaceSetting(); $dbSettings = [ 'tabler-theme' => $s->theme, 'tabler-theme-primary' => $s->theme_primary, 'tabler-theme-base-light' => $s->theme_base_light, 'tabler-theme-base-dark' => $s->theme_base_dark, 'tabler-theme-radius' => $s->theme_radius, 'tabler-theme-font' => $s->theme_font, 'custom-theme-primary' => $s->custom_primary, 'custom-theme-secondary' => $s->custom_secondary, ]; @endphp