@php // ── Check if we're on a tenant context ── $tenant = request()->get('current_tenant') ?? (isset($currentTenant) ? $currentTenant : null); $isTenantContext = $tenant !== null; $tenantSlug = $tenantSlug ?? request()->route('tenant'); // ── Get settings based on context ── if ($isTenantContext) { // Tenant context - get tenant settings $tenantSettings = \App\Models\TenantSetting::getAllForTenant($tenant->id); $settings = $tenantSettings; // Add logo URLs for tenant $settings['app_logo_light_url'] = !empty($settings['logo_light']) ? asset('storage/tenants/' . $tenant->id . '/' . $settings['logo_light']) : null; $settings['app_logo_dark_url'] = !empty($settings['logo_dark']) ? asset('storage/tenants/' . $tenant->id . '/' . $settings['logo_dark']) : null; // Set default values if not set $settings['app_name'] = $settings['company_name'] ?? $tenant->name ?? 'My Company'; $settings['primary_color'] = $settings['primary_color'] ?? '#c9a96e'; $settings['primary_color_hover'] = $settings['primary_color_hover'] ?? '#a07a52'; $settings['secondary_color'] = $settings['secondary_color'] ?? '#1a1a2e'; $settings['page_bg_color'] = $settings['page_bg_color'] ?? '#faf9f7'; $settings['card_bg_color'] = $settings['card_bg_color'] ?? '#ffffff'; $settings['card_border_color'] = $settings['card_border_color'] ?? '#e8e0d4'; $settings['text_color_dark'] = $settings['text_color_dark'] ?? '#1c1c1c'; $settings['text_color_muted'] = $settings['text_color_muted'] ?? '#888888'; $settings['heading_font'] = $settings['heading_font'] ?? 'Playfair Display, Georgia, serif'; $settings['body_font'] = $settings['body_font'] ?? 'Jost, sans-serif'; $settings['google_fonts_url'] = $settings['google_fonts_url'] ?? ''; // Use correct route name with tenant parameter $updateRoute = route('admin.settings.appearance.update', ['tenant' => $tenantSlug]); $backUrl = route('admin.settings', ['tenant' => $tenantSlug]); $pageTitle = 'Appearance & Branding Settings'; $pageDescription = 'Customize your tenant branding and appearance.'; } else { // Platform context - get platform settings $platformSettings = \App\Models\Setting::getAllAsArray(); $settings = $platformSettings; // Add logo URLs for platform $settings['app_logo_light_url'] = !empty($settings['app_logo_light']) ? asset('storage/settings/' . $settings['app_logo_light']) : null; $settings['app_logo_dark_url'] = !empty($settings['app_logo_dark']) ? asset('storage/settings/' . $settings['app_logo_dark']) : null; $updateRoute = route('admin.settings.appearance.update'); $backUrl = route('admin.settings'); $pageTitle = 'Appearance & Branding Settings'; $pageDescription = 'Customize colors, fonts, and text across your entire website.'; } // ── Determine storage path for logos ── $logoStoragePath = $isTenantContext ? 'tenants/' . $tenant->id : 'settings'; @endphp @include('Partials.sidebar')
@include('Partials.header')

{{ $pageTitle }}

{{ $pageDescription }}

@if($isTenantContext) {{ $tenant->name }} @endif
@if(session('success')) @endif @if(session('error')) @endif
@csrf @method('PUT')
{{-- ── LEFT COLUMN ───────────────────────────────── --}}
{{-- Branding / Text ──────────────────────────── --}}
Branding & Text
This will appear on the login page and throughout the site.
Rendered in italic with the accent color.
{{-- Colors ──────────────────────────────────── --}}
Colors
Buttons, active tab underlines, accents.
Button hover state.
Secondary brand color.
Headings, card names.
Subtitles, descriptions.
{{-- Typography ───────────────────────────────── --}}
Typography
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog

Generate at fonts.google.com. Paste the full <link> href here. This loads the font in the frontend.

{{-- Logos ───────────────────────────────────── --}}
Logo
@if(!empty($settings['app_logo_light_url']))
Light Logo
@endif
For dark backgrounds. Recommended: PNG with transparency.
@if(!empty($settings['app_logo_dark_url']))
Dark Logo
@endif
For light backgrounds. Recommended: PNG with transparency.
{{-- ── RIGHT COLUMN: Live Preview ────────────────── --}}
Live Preview

A sample card using your current color selections.

Project Image
{{-- Tab indicator --}}
Overview Amenities
📍 Mumbai, India
Prestige Gardens

@include('Partials.footer')