@php $headline = trim((string) ($rawTitle ?? $displayTitle ?? '')); if ($headline === '') { $headline = trim((string) ($displayTitle ?? implode(' ', $kw ?? []))); } $bodyCopy = trim((string) ($rawBody ?? '').' '.(string) ($normalizedCopy ?? '')); $text = mb_strtolower(trim($headline.' '.$bodyCopy.' '.implode(' ', $kw ?? []))); $title = mb_strtolower($headline); $seed = abs((int) ($h ?? crc32($headline.$bodyCopy))); $score = 62 + ($seed % 31); $lift = 9 + ($seed % 24); $words = array_values(array_filter(array_map(static fn ($v) => trim((string) $v), $kw ?? []))); $label = static function (int $i, string $fallback) use ($words): string { $value = trim((string) ($words[$i] ?? $fallback)); return \Illuminate\Support\Str::limit($value !== '' ? $value : $fallback, 20, ''); }; $has = static fn (string $pattern, ?string $scope = null): bool => (bool) preg_match($pattern, $scope ?? $text); $scene = 'strategy'; if ($has('/checkout|cart|woocommerce|shopify|ecommerce|commerce|catalog|catalogue|variant|variation|product|payment|shipping|tax|store|marketplace|subscription|membership/u')) $scene = 'commerce'; elseif ($has('/tiktok|ugc|reels|short-form|creator|video/u')) $scene = 'video'; elseif ($has('/meta|facebook|instagram|creative|hooks|testimonials|social/u')) $scene = 'creative'; elseif ($has('/google|search intent|search ads|keyword|queries|shopping|performance max|pmax|paid traffic|sem/u')) $scene = 'ads'; elseif ($has('/seo|technical|crawl|index|organic|schema|migration|audit|local|maps|google business|rank/u')) $scene = 'seo'; elseif ($has('/tracking|analytics|measurement|attribution|ga4|events|reporting|revenue/u')) $scene = 'analytics'; elseif ($has('/crm|pipeline|lead routing|follow-up|automation|email|retention|lead generation/u')) $scene = 'crm'; elseif ($has('/booking|reservation|availability|appointment|calendar|confirmation/u')) $scene = 'booking'; elseif ($has('/brand|identity|visual|naming|packaging|print|graphic|pos|menu|poster/u')) $scene = 'brand'; elseif ($has('/content|community|linkedin|publishing|caption|editorial|profile/u')) $scene = 'content'; elseif ($has('/website|wordpress|cms|landing|custom|redesign|maintenance|hosting|speed|core web vitals|information architecture|ux|ui/u')) $scene = 'web'; elseif ($has('/remarketing|retargeting|journey|frequency|audience/u')) $scene = 'crm'; elseif ($has('/funnel|cro|conversion|optimi[sz]ation|a\/b|scale|cpa|roas/u')) $scene = 'analytics'; $accent = '#14b8a6'; $accentDark = '#0f766e'; $ink = '#111827'; $muted = '#6b7280'; $soft = '#ecfdf9'; $warm = match ($scene) { 'commerce' => '#ff8a00', 'creative', 'video', 'brand', 'content' => '#8b5cf6', 'ads' => '#2563eb', default => $accent, }; $commerceMode = match (true) { $scene !== 'commerce' => null, $has('/architecture|plugin|extension|core|admin|workflow/u') => 'architecture', $has('/catalog|catalogue|variant|variation|categor|attribute|stock|inventory/u') => 'catalogue', $has('/checkout|cart|payment|shipping|tax|gateway|fulfil/u') => 'checkout', $has('/subscription|membership|recurring|member|gated/u') => 'subscription', $has('/tracking|analytics|revenue|event|purchase data/u') => 'tracking', $has('/performance|security|speed|cache|hardening/u') => 'performance', default => 'store', }; $commerceAssets = [ 'architecture' => 'images/portfolio/demace/ecommerce-platform-design-developed-by-criazo-for-demace.webp', 'catalogue' => 'images/portfolio/demace/customization-workflows-developed-by-criazo-for-demace.webp', 'checkout' => 'images/portfolio/demace/checkout-optimization-developed-by-criazo-for-demace.webp', 'store' => 'images/portfolio/demace/ecommerce-hero-developed-by-criazo-for-demace.webp', 'tracking' => 'images/portfolio/zaplead/product-ux-ui-hero-developed-by-criazo-for-zaplead.webp', ]; $commerceAsset = $commerceAssets[$commerceMode] ?? $commerceAssets['store']; $ecf = static function (string $mode): array { $p = 'messages.service_outcome_commerce.'.$mode; return [ 'title' => __($p.'.title'), 'subtitle' => __($p.'.subtitle'), 'panel' => __($p.'.panel'), 'metric' => __($p.'.metric'), 'rows' => [ __($p.'.row_1'), __($p.'.row_2'), __($p.'.row_3'), ], ]; }; $commerceUi = match ($commerceMode) { 'architecture' => $ecf('architecture'), 'catalogue' => $ecf('catalogue'), 'checkout' => $ecf('checkout'), 'subscription' => $ecf('subscription'), 'tracking' => $ecf('tracking'), 'performance' => $ecf('performance'), default => $ecf('overview'), }; $tScene = __('messages.service_outcome_scene'); $tScene = is_array($tScene) ? $tScene : []; $sceneLine = static function (string $sceneKey) use ($tScene): array { $row = $tScene[$sceneKey] ?? []; return array_values(is_array($row) ? $row : []); }; $sceneCopy = match ($scene) { 'commerce' => [ $commerceUi['title'], (string) ($tScene['commerce_orders'] ?? ''), (string) ($tScene['commerce_revenue'] ?? ''), $commerceUi['metric'], ], 'video' => $sceneLine('video'), 'creative' => $sceneLine('creative'), 'ads' => $sceneLine('ads'), 'seo' => $sceneLine('seo'), 'analytics' => $sceneLine('analytics'), 'crm' => $sceneLine('crm'), 'booking' => $sceneLine('booking'), 'brand' => $sceneLine('brand'), 'content' => $sceneLine('content'), 'web' => $sceneLine('web'), default => $sceneLine('strategy'), }; $tMini = __('messages.service_outcome_mini'); $tMini = is_array($tMini) ? $tMini : []; @endphp
{{ $sceneCopy[0] }}
{{ $commerceUi['subtitle'] }}
{{ $item[0] }}
{{ $item[1] }}{{ $item[2] }}
{{ $commerceUi['panel'] }}
{{ $label(1, __('messages.service_outcome_scene.label_checkout_hint')) }}
€{{ 120 + ($seed % 480) }}{{ $score }}%
{{ $sceneCopy[0] }}
{{ $label(0, __('messages.service_outcome_scene.label_intent_hint')) }}{{ $item[0] }}
{{ $item[1] }}
{{ data_get($tMini, 'ads.spend_quality') }}
+{{ $lift }}%
{{ $sceneCopy[0] }}
{{ data_get($tMini, 'seo.health_badge') }}{{ data_get($tMini, 'seo.serp_preview') }}
{{ $label(0, __('messages.service_outcome_scene.label_service_query_hint')) }}
{{ data_get($tMini, 'seo.traffic') }}
+{{ $lift }}%
{{ data_get($tMini, 'seo.indexed') }}
{{ $score }}%
{{ $sceneCopy[0] }}
{{ data_get($tMini, 'crm.sla_badge') }}{{ $lane['title'] ?? '' }}
{{ count($lane['cards'] ?? []) }}{{ $card['deal'] ?? '' }}
{{ $sceneCopy[0] }}
{{ __('messages.service_outcome_mini.booking.filled_badge', ['pct' => $score]) }}{{ data_get($tMini, 'booking.today_schedule') }}
@foreach(data_get($tMini, 'booking.events', []) as $bookingEvent){{ $bookingEvent['title'] ?? '' }}
{{ data_get($tMini, 'booking.weekly_occupancy') }}
{{ (data_get($tMini, 'booking.weekdays') ?? ['M','T','W','T','F','S','S'])[$idx] ?? '' }}
{{ data_get($tMini, 'booking.confirmed_week_label') }} {{ 14 + ($seed % 18) }}
{{ $sceneCopy[0] }}
{{ data_get($tMini, 'brand.approved_badge') }}{{ data_get($tMini, 'brand.primary_mark') }}
Aa
{{ $asset }}
{{ $spec }}
{{ $sceneCopy[0] }}
{{ $sceneCopy[3] }}{{ __('messages.service_outcome_mini.creative.variant_caption', ['tag' => $label(0, __('messages.service_outcome_demo.customer_proof_hint'))]) }}
{{ __('messages.service_outcome_demo.last_7_days') }}
{{ __('messages.service_outcome_demo.lift') }}
+{{ 11 + ($seed % 9) }}%
{{ __('messages.service_outcome_demo.confidence') }}
{{ 86 + ($seed % 9) }}%
{{ $sceneCopy[0] }}
{{ $sceneCopy[3] }}{{ data_get($tMini, 'video.retarget_pool') }}
{{ 24 + ($seed % 19) }}k
{{ __('messages.service_outcome_demo.lift') }}
+{{ 9 + ($seed % 10) }}%
{{ __('messages.service_outcome_demo.winner') }}
{{ data_get($tMini, 'video.winner_variant') }}
{{ $sceneCopy[0] }}
{{ $sceneCopy[3] }}{{ __('messages.service_outcome_demo.editorial_queue') }}
@foreach([ ['item' => __('messages.service_outcome_demo.queue_row1_item'), 'label' => __('messages.service_outcome_demo.queue_row1_status'), 'tone' => 'muted'], ['item' => __('messages.service_outcome_demo.queue_row2_item'), 'label' => __('messages.service_outcome_demo.queue_row2_status'), 'tone' => 'muted'], ['item' => __('messages.service_outcome_demo.queue_row3_item'), 'label' => __('messages.service_outcome_demo.queue_row3_status'), 'tone' => 'success'], ] as $queueRow){{ __('messages.service_outcome_demo.reach_quality') }}
+{{ 8 + ($seed % 14) }}%
{{ __('messages.service_outcome_mini.analytics.title_overview', ['topic' => $a0]) }}
{{ data_get($tMini, 'analytics.badge_verified') }}{{ $a1 }}
+{{ $lift }}%
{{ __('messages.service_outcome_mini.analytics.source_mix', ['label' => $a2]) }}
@foreach([[$a1, 46], [$a2, 32], [$a3, 22]] as [$src, $share]){{ __('messages.service_outcome_mini.analytics.title_reporting', ['topic' => $a0]) }}
{{ data_get($tMini, 'analytics.badge_updated') }}{{ data_get($tMini, 'analytics.qualified_revenue') }}
+{{ $lift }}%
{{ __('messages.service_outcome_mini.analytics.attribution_confidence', ['pct' => 86 + ($seed % 9)]) }}
{{ $sceneCopy[0] }}
{{ $sceneCopy[2] }}{{ data_get($tMini, 'strategy.action_queue') }}
@foreach(data_get($tMini, 'strategy.rows', []) as $stratRow){{ $label(0, __('messages.service_outcome_scene.label_conversion_hint')) }}
{{ $score }}%