{{-- đš Dynamic Favicon --}} @php // DB āĻĨā§āĻā§ favicon āĻāϰ āĻŽāĻžāύ $faviconOption = getOption('favicon'); // āϝāĻĻāĻŋ āĻļā§āϧ⧠file name āĻŦāĻž "setting/..." āĻšāĻŋāϏā§āĻŦā§ save āĻĨāĻžāĻā§ āϤāĻžāĻšāϞ⧠āύāĻŋāĻļā§āĻāĻŋāϤāĻāĻžāĻŦā§ "storage/..." āϝā§āĻ āĻāϰāĻāĻŋ if ($faviconOption && !str_contains($faviconOption, 'storage/')) { $faviconPath = 'storage/' . ltrim($faviconOption, '/'); } else { $faviconPath = $faviconOption; } // final URL â āϝāĻĻāĻŋ āĻāĻŋāĻā§ āύāĻž āĻĒāĻžāĻ āϤāĻŦā§ āĻĒā§āϰāύ⧠default favicon $finalFavicon = $faviconPath ? asset($faviconPath) : asset('assets/img/favicon.jpg'); // WhatsApp link (dynamic) $waRaw = getOption('whatsapp') ?: getOption('phone') ?: ''; $waDigits = preg_replace('/\D+/', '', (string) $waRaw); if ($waDigits) { if (str_starts_with($waDigits, '00')) $waDigits = substr($waDigits, 2); if (str_starts_with($waDigits, '880')) { // ok } elseif (str_starts_with($waDigits, '0') && strlen($waDigits) >= 11) { $waDigits = '88' . substr($waDigits, 1); // 01... => 8801... } elseif (str_starts_with($waDigits, '1') && strlen($waDigits) >= 10) { $waDigits = '880' . $waDigits; // 1... => 8801... } } $waText = urlencode("āĻāϏāϏāĻžāϞāĻžāĻŽā§āĻāϞāĻžāĻāĻā§āĻŽāĨ¤ āĻāĻŽāĻŋ āĻāĻĒāύāĻžāĻĻā§āϰ SEF NFC Card āϏāĻŽā§āĻĒāϰā§āĻā§ āĻŦāĻŋāϏā§āϤāĻžāϰāĻŋāϤ āĻāĻžāύāϤ⧠āĻāĻā§āϰāĻšā§āĨ¤ āĻāĻžāϰā§āĻĄāĻāĻŋāϰ āĻĢāĻŋāĻāĻžāϰ, āĻŽā§āϞā§āϝ, āϏā§āĻāĻāĻĒ āĻĒā§āϰāĻā§āϰāĻŋā§āĻž āĻāĻŦāĻ āĻ āϰā§āĻĄāĻžāϰ āĻĻā§āĻā§āĻžāϰ āύāĻŋā§āĻŽ āϏāĻŽā§āĻĒāϰā§āĻā§ āĻāĻžāύāĻžāϞ⧠āĻāĻĒāĻā§āϤ āĻšāĻŦāĨ¤ āĻĻā§āĻž āĻāϰ⧠āĻāĻžāύāĻžāĻŦā§āύâāϧāύā§āϝāĻŦāĻžāĻĻāĨ¤"); $waLink = $waDigits ? "https://wa.me/{$waDigits}?text={$waText}" : "https://wa.me/?text={$waText}"; @endphp {{-- Global styles (Bootstrap + theme etc.) --}} @include('frontend.layouts.style') {{-- Dynamic meta/OG/schema from pages --}} @stack('meta') @stack('schema') {{-- Header/Footer custom style --}} {{-- page specific style --}} @stack('style')
{{-- Header --}} @include('frontend.layouts.header')