@php $siteName = config('app.name', 'ContractorEstimateAI'); $appUrl = rtrim(config('app.url', url('/')), '/'); $currentUrl = url()->current(); $ogImage = $appUrl.'/og-image.svg'; $defaults = [ 'title' => $siteName.' | AI Estimates for U.S. Contractors', 'description' => 'Create professional contractor estimates in under 60 seconds with AI-generated line items, polished PDFs, and a workflow built for busy U.S. field teams.', 'keywords' => 'contractor estimate software, AI estimate generator, contractor proposal software, painting estimate software, HVAC estimate software, plumbing estimate software', 'robots' => 'index,follow', 'type' => 'website', ]; $routeMeta = match (true) { request()->routeIs('home') => [ 'title' => 'ContractorEstimateAI | Win More Jobs With Faster Estimates', 'description' => 'Help your crew send clean, professional estimates faster. Generate line items, totals, PDFs, and customer-ready proposals in one streamlined workflow.', 'keywords' => 'contractor estimate software, contractor proposal generator, AI quoting tool, home service sales software, construction estimate app', 'robots' => 'index,follow', 'type' => 'website', ], request()->routeIs('register') => [ 'title' => 'Start Free | '.$siteName, 'description' => 'Create your account and start generating contractor estimates, polished PDFs, and customer-ready proposals in minutes.', 'keywords' => 'start contractor estimate app, sign up estimate software', 'robots' => 'noindex,nofollow', 'type' => 'website', ], request()->routeIs('login') => [ 'title' => 'Log In | '.$siteName, 'description' => 'Access your contractor dashboard to create estimates, manage proposals, and review subscription details.', 'keywords' => 'contractor estimate login', 'robots' => 'noindex,nofollow', 'type' => 'website', ], request()->routeIs('dashboard') => [ 'title' => 'Dashboard | '.$siteName, 'description' => 'Track estimate activity, recent proposals, and your current subscription from the ContractorEstimateAI dashboard.', 'keywords' => 'contractor estimate dashboard', 'robots' => 'noindex,nofollow', 'type' => 'website', ], request()->routeIs('estimates.*') => [ 'title' => 'Estimates | '.$siteName, 'description' => 'Create, manage, and send professional contractor estimates with AI-assisted line items and ready-to-share PDFs.', 'keywords' => 'contractor estimates, proposal workflow', 'robots' => 'noindex,nofollow', 'type' => 'website', ], request()->routeIs('billing.*') || request()->routeIs('subscription.*') => [ 'title' => 'Billing | '.$siteName, 'description' => 'Review your subscription options and prepare your estimating workflow for scale.', 'keywords' => 'contractor billing, estimating subscription', 'robots' => 'noindex,nofollow', 'type' => 'website', ], request()->routeIs('profile.*') => [ 'title' => 'Profile | '.$siteName, 'description' => 'Manage your profile and account settings for ContractorEstimateAI.', 'keywords' => 'account settings', 'robots' => 'noindex,nofollow', 'type' => 'website', ], default => [], }; $meta = array_merge($defaults, $routeMeta, $seo ?? []); @endphp