@php // Default fallback SEO data $defaultTitle = 'PRO EARN - Online Income & Digital Earning Platform Bangladesh'; $defaultDescription = 'PRO EARN - বাংলাদেশের একটি অনলাইন আর্নিং, ডিজিটাল সার্ভিস ও রিসেলিং প্ল্যাটফর্ম। মোবাইল রিচার্জ, ড্রাইভ প্যাক, টাইপিং জব, কুইজ ও এড ভিউ এর মাধ্যমে ঘরে বসে আয় করুন।'; $defaultKeywords = 'PRO EARN, online income Bangladesh, micro jobs Bangladesh, digital earning platform, reselling platform, online work Bangladesh, mobile recharge commission, typing job, quiz job, ad view, digital marketing, ঘরে বসে টাকা আয়, অনলাইন ইনকাম, ডিজিটাল সার্ভিস'; if(isset($seo) && $seo) { $pageTitleText = isset($pageTitle) ? __($pageTitle) : ''; $siteTitle = $general->siteName($pageTitleText); $description = $seo->description ?? $seo->social_description ?? $general->seo_description ?? $defaultDescription; $socialTitle = $seo->social_title ?? $siteTitle; $socialDescription = $seo->social_description ?? $description; $keywords = $seo->keywords ?? []; if (is_array($keywords)) { $keywords = implode(',', $keywords); } else { $keywords = $defaultKeywords; } $favicon = getImage(getFilePath('logoIcon') . '/favicon.png'); $logo = getImage(getFilePath('logoIcon') . '/logo.png'); $seoImage = isset($seo->image) ? getImage(getFilePath('seo') . '/' . $seo->image) : $logo; $currentUrl = url()->current(); $imagePath = parse_url($seoImage, PHP_URL_PATH); $imageExtension = pathinfo($imagePath, PATHINFO_EXTENSION) ?: 'png'; $socialImageSize = explode('x', getFileSize('seo')); $imageWidth = $socialImageSize[0] ?? 1200; $imageHeight = $socialImageSize[1] ?? 630; // Check if routes exist for breadcrumb $hasServicesRoute = \Route::has('services'); $hasEarnRoute = \Route::has('earn'); $hasSearchRoute = \Route::has('search'); } else { // Fallback when $seo is not available $defaultTitle = 'PRO EARN - Online Income & Digital Earning Platform Bangladesh'; $defaultDescription = 'PRO EARN - বাংলাদেশের একটি অনলাইন আর্নিং, ডিজিটাল সার্ভিস ও রিসেলিং প্ল্যাটফর্ম। মোবাইল রিচার্জ, ড্রাইভ প্যাক, টাইপিং জব, কুইজ ও এড ভিউ এর মাধ্যমে ঘরে বসে আয় করুন।'; $defaultKeywords = 'PRO EARN, online income Bangladesh, micro jobs Bangladesh, digital earning platform, reselling platform'; $favicon = getImage(getFilePath('logoIcon') . '/favicon.png'); $logo = getImage(getFilePath('logoIcon') . '/logo.png'); $seoImage = $logo; $currentUrl = url()->current(); $imageExtension = 'png'; $imageWidth = 1200; $imageHeight = 630; $hasServicesRoute = \Route::has('services'); $hasEarnRoute = \Route::has('earn'); $hasSearchRoute = \Route::has('search'); $description = $defaultDescription; $keywords = $defaultKeywords; $socialTitle = $defaultTitle; $socialDescription = $defaultDescription; } @endphp {{-- ============================================ --}} {{-- PRIMARY SEO TAGS --}} {{-- ============================================ --}} {{ isset($seo) && $seo ? 'PRO EARN - Online Income & ডিজিটাল আর্নিং Platform Bangladesh' : $defaultTitle }} {{-- Keywords: Clean, Relevant, Service-Focused --}} {{-- Robots & Crawlers --}} {{-- Canonical URL --}} {{-- ============================================ --}} {{-- FAVICON & APPLE TOUCH ICONS --}} {{-- ============================================ --}} {{-- ============================================ --}} {{-- MOBILE & APP META --}} {{-- ============================================ --}} {{-- ============================================ --}} {{-- GOOGLE / SEARCH ENGINE STRUCTURED DATA --}} {{-- ============================================ --}} {{-- ============================================ --}} {{-- FACEBOOK / OPEN GRAPH (OG) --}} {{-- ============================================ --}} {{-- ============================================ --}} {{-- TWITTER / X (Card only, no fake account) --}} {{-- ============================================ --}} {{-- ============================================ --}} {{-- SCHEMA.ORG STRUCTURED DATA (JSON-LD) --}} {{-- ============================================ --}} {{-- 1. WebSite Schema --}} {{-- 2. Organization Schema (Primary) --}} {{-- 3. BreadcrumbList Schema (Only if routes exist) --}} @if($hasServicesRoute && $hasEarnRoute) @endif {{-- 4. FAQ Schema (5 Questions - Must match visible content) --}} {{-- 5. WebApplication Schema (Clean, without offers) --}}