A snapshot of the last 14 days, plus what to keep.‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ 
{%- comment -%} ======================================================================== LIQUID: PICK THE HERO METRIC ------------------------------------------------------------------------ Biggest-number-wins across the Big Four. Default every counter to 0 so comparisons never blow up on nil. `clients_count` is wrapped because it may not exist yet — if missing, it stays at 0 and cannot win. ======================================================================== {%- endcomment -%} {% assign appts = customer.appointments_count | default: 0 | plus: 0 %} {% assign notes = customer.notes_count | default: 0 | plus: 0 %} {% assign invs = customer.invoices_count | default: 0 | plus: 0 %} {% if customer.clients_count %} {% assign clients = customer.clients_count | plus: 0 %} {% else %} {% assign clients = 0 %} {% endif %} {% assign hero_metric = "appointments" %} {% assign hero_value = appts %} {% if notes > hero_value %} {% assign hero_metric = "notes" %} {% assign hero_value = notes %} {% endif %} {% if invs > hero_value %} {% assign hero_metric = "invoices" %} {% assign hero_value = invs %} {% endif %} {% if clients > hero_value %} {% assign hero_metric = "clients" %} {% assign hero_value = clients %} {% endif %} {%- comment -%} ======================================================================== LIQUID: PLAN RECOMMENDATION ------------------------------------------------------------------------ ai_scribe_count > 0 -> push Advanced ($49) — "keep unlimited AI" team_size > 1 OR Stripe -> push Plus ($39) — "keep team + payments" otherwise -> push Plus ($39), Advanced as upsell ======================================================================== {%- endcomment -%} {% assign plan_reco = "plus" %} {% assign plan_reason = "default" %} {% if customer.ai_scribe_count and customer.ai_scribe_count > 0 %} {% assign plan_reco = "advanced" %} {% assign plan_reason = "ai" %} {% elsif customer.team_size != blank and customer.team_size != "Just me" and customer.team_size != "1" %} {% assign plan_reco = "plus" %} {% assign plan_reason = "team" %} {% elsif customer.payments_stripe_onboarding_complete == true or customer.payments_stripe_enabled == true %} {% assign plan_reco = "plus" %} {% assign plan_reason = "payments" %} {% endif %}