@php use App\Models\Setting; use Illuminate\Support\Str; use Illuminate\Support\Facades\Storage; // 🟣 جلب الإعدادات $siteName = Setting::getValue('site_name', 'نظام مقالاتي'); $siteDesc = Setting::getValue('site_description', ''); $siteLogoRaw = Setting::getValue('site_logo'); $siteFavRaw = Setting::getValue('site_favicon'); $themeColor = Setting::getValue('theme_color', '#6C63FF'); // 🟣 تنظيف مسارات الملفات (نفس الهيدر) function safe_path($raw) { if (!$raw) return null; $clean = str_replace(['//', 'storage/storage'], ['/', 'storage'], $raw); return Str::contains($clean, 'storage/') ? asset($clean) : Storage::url($clean); } $siteLogo = safe_path($siteLogoRaw); $siteFavicon = safe_path($siteFavRaw); @endphp
{{-- 🖼️ Favicon --}} @if($siteFavicon) @endifتسجيل الدخول إلى لوحة التحكم