@php $brand_name = \App\Models\Setting::get('brand_name', 'Baby Bloom'); $primary_color = \App\Models\Setting::get('brand_primary', '#ff8c00'); $logo_raw = \App\Models\Setting::get('logo_url'); // Turn relative paths into absolute URLs so email clients can load them if ($logo_raw) { $logo_url = (str_starts_with($logo_raw, 'http://') || str_starts_with($logo_raw, 'https://')) ? $logo_raw : rtrim(config('app.url'), '/') . '/' . ltrim($logo_raw, '/'); } else { $logo_url = null; } $social_links = \App\Models\Setting::get('social_links', []); if (is_string($social_links)) { $social_links = json_decode($social_links, true) ?? []; } @endphp
@if($logo_url) @else

{{ $brand_name }}

@endif @yield('header')
@yield('content')