// In any controller:
view('product', [
// Basic
'title' => 'Black Invicta 44mm Watch',
'meta_description' => 'Invicta Prestige X: 44mm watch with Flame Fusion Crystal…',
'meta_robots' => 'index, follow',
'canonical' => 'https://example.com/products/invicta-44mm',
// Open Graph
'og_type' => 'product',
'og_image' => 'https://example.com/imgs/og/product-1.webp',
'og_image_width' => 1200,
'og_image_height' => 630,
'og_logo' => 'https://example.com/assets/images/logo.webp',
// Video (optional — omit if no video)
'og_video' => 'https://example.com/uploads/videos/product-1.mp4',
'og_video_type' => 'video/mp4',
'og_video_width' => 1080,
'og_video_height' => 1080,
// Facebook
'fb_app_id' => '816733251417750',
// Google (optional — omit if not using)
'gtm_id' => 'GTM-XXXXXXX',
'google_fonts_url' => 'https://fonts.googleapis.com/css2?family=Inter&display=swap',
]);
// In a static template (PageController page), set variables before include:
// $meta_description = 'Our privacy policy.';
// $meta_robots = 'noindex, follow';
// Then: <?php include 'layouts/header.php'; ?>