@php use App\Helpers\SeoHelper; $locale = app()->getLocale(); $localizedRoute = function($routeName, $params = []) use ($locale) { return SeoHelper::localizedRoute($routeName, $params, $locale); }; // Only show contextual calculator when context exists AND belongs to this service (never show another service's options) $contextForThisService = isset($pricingContext, $slug) && !empty($pricingContext['tiers']) && (isset($pricingContext['service_slug']) ? $pricingContext['service_slug'] === $slug : true); $contactUrl = $localizedRoute('contact.index') . (isset($slug) ? '?service=' . $slug : ''); @endphp @if($contextForThisService) {{-- Contextual calculator: tiers and addons for this service --}}

{{ __('messages.pricing_calculator.estimate_cost') }}

{{ __('messages.pricing_calculator.customize_package') }}

@foreach($pricingContext['tiers'] as $index => $tier) @endforeach
@if(!empty($pricingContext['addons']))
@foreach($pricingContext['addons'] as $addon) @endforeach
@endif

{{ __('messages.pricing_calculator.estimated_cost') }}

{{ number_format($pricingContext['tiers'][0]['price']) }}

{{ __('messages.pricing_calculator.price_may_vary') }}

{{ __('messages.pricing_calculator.get_quote') }} →
@else {{-- No contextual config for this service: simple CTA to get a tailored quote --}}

{{ __('messages.pricing_calculator.get_tailored_quote') }}

{{ __('messages.pricing_calculator.get_tailored_quote_desc') }}

{{ __('messages.pricing_calculator.get_quote') }} →
@endif