@php // Section values (@section('title', '...')) arrive already escaped by Blade; defaults are escaped here. $seoTitle = trim($__env->yieldContent('title')) ?: e('Free Healthcare Job Postings | healthcareers.app'); $seoDescription = trim($__env->yieldContent('description')) ?: e(\App\Support\Brand::TAGLINE.' worldwide. Post nursing, allied health, therapy and pharmacy jobs free; candidates reply through a private relay.'); $seoCanonical = trim($__env->yieldContent('canonical')) ?: e(url()->current()); $seoRobots = trim($__env->yieldContent('robots')) ?: 'index, follow'; $seoType = trim($__env->yieldContent('og_type')) ?: 'website'; $pageImage = trim($__env->yieldContent('og_image')); $seoImage = $pageImage ?: e(\App\Support\Brand::socialImageUrl()); // Page 2, 3... of a list gets its own title and description, so no two pages share them. $pageNo = (int) request()->query('page', 1); if ($pageNo > 1 && ! str_contains($seoTitle, ' – Page ')) { $seoTitle = preg_replace('/ \| healthcareers\.app$/', '', $seoTitle).' – Page '.$pageNo.' | healthcareers.app'; $seoDescription = 'Page '.$pageNo.'. '.$seoDescription; } @endphp