-- =============================================================================
-- larcare_page_content_seed.sql - CMS collection "page-content" behind the LarCare inner pages
-- (Services, About Us, Careers, Contact, Consultation): one entry per page holding the page header and
-- its ordered sections as JSON. Edit them in ABOS > Website > Collections; the site falls back to its
-- built-in copy for any page/field that is missing. Idempotent - existing entries are never overwritten.
-- Requires seed_larcare_business_and_site.sql first. Generated from LarCare/frontend/src/lib/content/pages.json.
-- =============================================================================
SET @site_id := (SELECT id FROM dim_web_sites WHERE public_site_key = 'pSlfeq9OCm5MvZyoFguIK7jy0uz2aKShJkxZxTSWXwzPOpYJ' AND is_deleted = 0 LIMIT 1);
SET @tenant_id := (SELECT tenant_id FROM dim_web_sites WHERE id = @site_id LIMIT 1);
SET @business_id := (SELECT business_id FROM dim_web_sites WHERE id = @site_id LIMIT 1);

INSERT INTO dim_web_collections (tenant_id, business_id, site_id, collection_key, label, label_singular, kind, route_pattern, has_seo_fields, is_system, sort_order, created_by, updated_by, is_deleted)
SELECT @tenant_id, @business_id, @site_id, 'page-content', 'Page Content', 'Page', 'collection', NULL, 0, 1, 14, NULL, NULL, 0 FROM DUAL
WHERE @site_id IS NOT NULL AND NOT EXISTS (SELECT 1 FROM dim_web_collections WHERE site_id = @site_id AND collection_key = 'page-content');
SET @c_page_content := (SELECT id FROM dim_web_collections WHERE site_id = @site_id AND collection_key = 'page-content' LIMIT 1);

INSERT INTO dim_web_collection_fields (tenant_id, business_id, site_id, collection_id, field_key, label, field_type, is_required, sort_order, created_by, updated_by, is_deleted)
SELECT @tenant_id, @business_id, @site_id, @c_page_content, 'metaTitle', 'Browser tab title', 'text', 0, 1, NULL, NULL, 0 FROM DUAL
WHERE @c_page_content IS NOT NULL AND NOT EXISTS (SELECT 1 FROM dim_web_collection_fields WHERE collection_id = @c_page_content AND field_key = 'metaTitle');
INSERT INTO dim_web_collection_fields (tenant_id, business_id, site_id, collection_id, field_key, label, field_type, is_required, sort_order, created_by, updated_by, is_deleted)
SELECT @tenant_id, @business_id, @site_id, @c_page_content, 'eyebrow', 'Eyebrow (small text above the title)', 'text', 0, 2, NULL, NULL, 0 FROM DUAL
WHERE @c_page_content IS NOT NULL AND NOT EXISTS (SELECT 1 FROM dim_web_collection_fields WHERE collection_id = @c_page_content AND field_key = 'eyebrow');
INSERT INTO dim_web_collection_fields (tenant_id, business_id, site_id, collection_id, field_key, label, field_type, is_required, sort_order, created_by, updated_by, is_deleted)
SELECT @tenant_id, @business_id, @site_id, @c_page_content, 'title', 'Page title', 'text', 1, 3, NULL, NULL, 0 FROM DUAL
WHERE @c_page_content IS NOT NULL AND NOT EXISTS (SELECT 1 FROM dim_web_collection_fields WHERE collection_id = @c_page_content AND field_key = 'title');
INSERT INTO dim_web_collection_fields (tenant_id, business_id, site_id, collection_id, field_key, label, field_type, is_required, sort_order, created_by, updated_by, is_deleted)
SELECT @tenant_id, @business_id, @site_id, @c_page_content, 'subtitle', 'Page subtitle', 'textarea', 0, 4, NULL, NULL, 0 FROM DUAL
WHERE @c_page_content IS NOT NULL AND NOT EXISTS (SELECT 1 FROM dim_web_collection_fields WHERE collection_id = @c_page_content AND field_key = 'subtitle');
INSERT INTO dim_web_collection_fields (tenant_id, business_id, site_id, collection_id, field_key, label, field_type, is_required, sort_order, created_by, updated_by, is_deleted)
SELECT @tenant_id, @business_id, @site_id, @c_page_content, 'sections', 'Sections (JSON list: coverage, split, cards, accordionList, form, contactSplit, regions, cta)', 'json_array', 0, 5, NULL, NULL, 0 FROM DUAL
WHERE @c_page_content IS NOT NULL AND NOT EXISTS (SELECT 1 FROM dim_web_collection_fields WHERE collection_id = @c_page_content AND field_key = 'sections');

INSERT INTO fact_web_entries (tenant_id, business_id, site_id, collection_id, slug, title, status, sort_order, data_json, created_by, updated_by, is_deleted)
SELECT @tenant_id, @business_id, @site_id, @c_page_content, 'services', 'Services', 'published', 1, '{"metaTitle": "Our Care Services | Lar Care Services", "eyebrow": "Services", "title": "Our Care Services", "subtitle": "Comprehensive, personalized care for every stage of life \\u2014 delivered with compassion in the comfort of home.", "sections": [{"type": "coverage", "label": "Insurance Accepted:", "tiles": ["\\u2713 Medicaid", "\\u2713 Veterans Benefits", "\\u2713 Private Insurance", "\\u2713 Private Pay"], "linkLabel": "Verify your benefits \\u2192", "linkHref": "/about-us/contact-us"}, {"type": "split", "id": "home-care", "tone": "white", "eyebrow": "Service", "title": "Home Care", "paragraphs": ["Our home care services provide skilled, compassionate support that enables clients to live independently in the comfort of their own home. From meal preparation to light housekeeping, our trained aides are there for the tasks that matter most."], "accordion": [{"q": "What does home care include?", "a": "Daily living assistance (bathing, dressing, grooming), medication reminders, meal preparation and feeding assistance, light housekeeping, laundry, errands, grocery shopping, and transportation to appointments."}, {"q": "Is home care covered by Medicaid?", "a": "Yes \\u2014 Lar Care accepts Medicaid in Virginia and South Carolina. We''ll help you verify eligibility and navigate the authorization process. Contact us for details specific to your state."}, {"q": "How do I start home care services?", "a": "Call us at (888) 668-7079 or fill out our contact form. A care coordinator will schedule a free in-home assessment to build your personalized care plan."}], "button": {"label": "Request Home Care", "href": "/about-us/contact-us"}, "image": "https://images.unsplash.com/photo-1576765608622-067973a79f53?w=800&q=80", "imageAlt": "Caregiver helping senior with daily activities at home", "imageSide": "right"}, {"type": "split", "id": "personal-care", "tone": "light", "eyebrow": "Service", "title": "Personal Care", "paragraphs": ["Personal care services are delivered by trained home health aides who assist with the most intimate aspects of daily living. Our aides are selected for their empathy and professionalism, ensuring clients feel comfortable, respected, and cared for at all times."], "features": [{"icon": "\\ud83d\\udec1", "title": "Bathing & Hygiene", "text": "Safe, dignified assistance with bathing, oral care, and skin care."}, {"icon": "\\ud83d\\udc55", "title": "Dressing & Grooming", "text": "Help selecting and putting on clothing, hair care, and personal grooming."}, {"icon": "\\ud83d\\udeb6", "title": "Mobility & Transfers", "text": "Safe assistance with walking, standing, positioning, and moving between surfaces."}, {"icon": "\\ud83c\\udf7d\\ufe0f", "title": "Feeding Assistance", "text": "Supportive feeding and meal preparation for clients with limited hand function."}], "button": {"label": "Request Personal Care", "href": "/about-us/contact-us"}, "image": "https://images.pexels.com/photos/7551631/pexels-photo-7551631.jpeg?w=800&q=80", "imageAlt": "Compassionate aide assisting client with personal care", "imageSide": "left"}, {"type": "cards", "id": "hospice", "tone": "white", "eyebrow": "Service", "title": "Luxury Hospice Care", "intro": "End-of-life care that honors the full dignity of the individual \\u2014 delivered with grace, compassion, and clinical excellence.", "items": [{"icon": "\\ud83d\\udd4a\\ufe0f", "title": "Comfort & Pain Management", "text": "We work closely with the client''s medical team to ensure pain and symptoms are well-managed so every day is as comfortable as possible."}, {"icon": "\\ud83d\\udc9c", "title": "Emotional & Spiritual Support", "text": "Our hospice aides are trained in compassionate communication and provide emotional presence for clients and family members throughout the journey."}, {"icon": "\\ud83d\\udc68\\u200d\\ud83d\\udc69\\u200d\\ud83d\\udc67", "title": "Family Guidance", "text": "We educate and support family caregivers \\u2014 walking them through what to expect and how to provide loving care at every stage."}, {"icon": "\\ud83c\\udf39", "title": "Bereavement Support", "text": "Our care doesn''t end at passing. We offer bereavement resources and connection to grief support services for surviving family members."}], "button": {"label": "Discuss Hospice Options", "href": "/about-us/contact-us"}}, {"type": "split", "id": "respite", "tone": "light", "eyebrow": "Service", "title": "Respite Care for Family Caregivers", "paragraphs": ["Caring for a loved one is one of the most meaningful things you can do \\u2014 and one of the most demanding. Lar Care''s respite care gives family caregivers the time and space they need to recharge, knowing their loved one is in experienced, compassionate hands.", "Respite can be arranged for a few hours, a full day, or an extended stay. We work around your schedule to provide seamless, stress-free coverage."], "infoPanel": {"title": "Respite care is available:", "items": [{"icon": "\\u23f0", "text": "Hourly, daily, or weekly scheduling"}, {"icon": "\\ud83d\\udcc5", "text": "Planned vacations and travel"}, {"icon": "\\ud83c\\udfe5", "text": "Medical appointments or hospitalization"}, {"icon": "\\ud83c\\udf19", "text": "Overnight and weekend coverage"}]}, "button": {"label": "Schedule Respite Care", "href": "/about-us/contact-us"}, "image": "https://images.unsplash.com/photo-1559757175-1167ee65f1e0?w=800&q=80", "imageAlt": "Family caregiver relaxing while loved one is cared for", "imageSide": "right"}, {"type": "cta", "title": "Not Sure Which Service You Need?", "text": "Our care coordinators will listen to your situation and help you find the right level of care \\u2014 at no cost or obligation.", "primary": {"label": "Get a Free Assessment", "href": "/consultation"}, "phone": true}]}', NULL, NULL, 0 FROM DUAL
WHERE @c_page_content IS NOT NULL AND NOT EXISTS (SELECT 1 FROM fact_web_entries WHERE collection_id = @c_page_content AND slug = 'services');
INSERT INTO fact_web_entries (tenant_id, business_id, site_id, collection_id, slug, title, status, sort_order, data_json, created_by, updated_by, is_deleted)
SELECT @tenant_id, @business_id, @site_id, @c_page_content, 'about', 'About Us', 'published', 2, '{"metaTitle": "About Us | Lar Care Services", "eyebrow": "About Us", "title": "Our Story & Mission", "subtitle": "Built on compassion, driven by purpose \\u2014 serving families in three regions with one heart.", "sections": [{"type": "split", "tone": "white", "eyebrow": "Our Mission", "title": "We Believe Everyone Deserves to Age with Dignity", "paragraphs": ["Lar Care Services was founded on a simple but powerful belief: that high-quality home care should be accessible to every family, regardless of geography or income. From Chester, SC to Hopewell, VA to St. Thomas, USVI \\u2014 we bring the same warmth and professionalism to every doorstep.", "We exist to bridge the gap between medical necessity and human connection. Our caregivers aren''t just trained professionals \\u2014 they''re neighbors, friends, and advocates for the people in their care."], "button": {"label": "Start a Conversation", "href": "/about-us/contact-us"}, "image": "https://images.pexels.com/photos/7551631/pexels-photo-7551631.jpeg?w=800&q=80", "imageAlt": "Lar Care caregiver with senior client", "imageSide": "right"}, {"type": "cards", "tone": "light", "eyebrow": "Our Core Values", "title": "What Guides Everything We Do", "items": [{"icon": "\\ud83d\\udc99", "title": "Compassion First", "text": "Every interaction begins with empathy. We see the whole person \\u2014 not just the care need \\u2014 and respond accordingly."}, {"icon": "\\ud83d\\udee1\\ufe0f", "title": "Integrity", "text": "We do what we say, say what we mean, and hold ourselves accountable to the families who trust us with their most vulnerable moments."}, {"icon": "\\u2b50", "title": "Excellence", "text": "We set a high bar \\u2014 for training, for communication, for the quality of every care plan \\u2014 and we continuously raise it."}, {"icon": "\\ud83e\\udd32", "title": "Respect & Dignity", "text": "Every client is treated as a valued individual with their own story, preferences, and rights \\u2014 always, without exception."}]}, {"type": "cards", "tone": "white", "eyebrow": "Our Team", "title": "Diverse Professionals, Unified by Purpose", "intro": "Our caregivers and coordinators come from the communities they serve \\u2014 and they bring that local knowledge and cultural competency to every client interaction.", "banner": {"src": "https://images.pexels.com/photos/3184418/pexels-photo-3184418.jpeg?w=1200&q=80", "alt": "Lar Care Services team members \\u2014 diverse group of professionals"}, "items": [{"icon": "\\ud83c\\udf93", "title": "Rigorous Training", "text": "Every aide completes state-mandated training plus Lar Care''s own onboarding curriculum covering safety, communication, and client rights."}, {"icon": "\\ud83d\\udd0d", "title": "Thorough Screening", "text": "All staff undergo comprehensive background checks, reference verification, and health screenings before their first client visit."}, {"icon": "\\ud83d\\udcc8", "title": "Continuous Development", "text": "We invest in our team with ongoing training, performance reviews, and growth pathways \\u2014 because great care starts with great caregivers."}]}, {"type": "cta", "title": "Ready to Learn More?", "text": "Our care coordinators are standing by to answer any question, big or small.", "primary": {"label": "Contact Us", "href": "/about-us/contact-us"}, "phone": true}]}', NULL, NULL, 0 FROM DUAL
WHERE @c_page_content IS NOT NULL AND NOT EXISTS (SELECT 1 FROM fact_web_entries WHERE collection_id = @c_page_content AND slug = 'about');
INSERT INTO fact_web_entries (tenant_id, business_id, site_id, collection_id, slug, title, status, sort_order, data_json, created_by, updated_by, is_deleted)
SELECT @tenant_id, @business_id, @site_id, @c_page_content, 'careers', 'Careers', 'published', 3, '{"metaTitle": "Careers | Lar Care Services", "eyebrow": "Careers", "title": "Join Our Team", "subtitle": "Make a real difference in people''s lives \\u2014 and build a fulfilling career in compassionate care.", "sections": [{"type": "cards", "tone": "white", "eyebrow": "Why Lar Care?", "title": "A Workplace That Values You", "intro": "We treat our caregivers the same way we treat our clients \\u2014 with respect, dignity, and genuine care for their wellbeing.", "items": [{"icon": "\\ud83d\\udcb0", "title": "Competitive Pay", "text": "We offer above-market wages, paid weekly, with performance incentives for exceptional caregivers."}, {"icon": "\\ud83d\\udcc5", "title": "Flexible Schedules", "text": "Full-time, part-time, and weekend shifts available. We work with you to find a schedule that fits your life."}, {"icon": "\\ud83c\\udf93", "title": "Free Training & Certification", "text": "We provide all the training you need to get started \\u2014 including state certification courses, paid for by Lar Care."}, {"icon": "\\ud83d\\udcc8", "title": "Growth Opportunities", "text": "Start as a home health aide and grow into coordination, supervision, or management roles. We promote from within."}]}, {"type": "accordionList", "tone": "light", "eyebrow": "Open Positions", "title": "We''re Hiring Across All Three Regions", "items": [{"title": "Home Health Aide (HHA) \\u2014 Virginia, SC, USVI", "lines": [{"label": "Responsibilities:", "text": "Provide personal care, medication reminders, meal prep, and companionship to clients in their homes."}, {"label": "Requirements:", "text": "Current HHA certification (or willing to obtain), valid driver''s license, background check clearance, compassionate attitude."}, {"label": "Schedule:", "text": "Full-time and part-time available. Weekdays, evenings, and weekends."}], "button": {"label": "Apply Now", "href": "#applyForm"}}, {"title": "Care Coordinator \\u2014 Virginia", "lines": [{"label": "Responsibilities:", "text": "Manage care plans, coordinate schedules, communicate with families and aides, and ensure quality of care standards are met."}, {"label": "Requirements:", "text": "2+ years in home care or healthcare coordination, strong organizational skills, proficiency with care management software."}], "button": {"label": "Apply Now", "href": "#applyForm"}}, {"title": "Personal Care Aide (PCA) \\u2014 South Carolina", "lines": [{"label": "Responsibilities:", "text": "Assist clients with bathing, dressing, grooming, mobility, and daily personal care needs."}, {"label": "Requirements:", "text": "PCA certification or willingness to train, empathy, patience, and reliability."}], "button": {"label": "Apply Now", "href": "#applyForm"}}, {"title": "Hospice Aide \\u2014 All Regions", "lines": [{"label": "Responsibilities:", "text": "Provide comfort-focused care for clients in hospice, supporting both clients and families through end-of-life."}, {"label": "Requirements:", "text": "HHA or CNA certification, hospice experience preferred, strong emotional resilience and communication skills."}], "button": {"label": "Apply Now", "href": "#applyForm"}}]}, {"type": "form", "id": "applyForm", "tone": "white", "formKey": "careers-interest", "title": "Apply to Join Our Team", "intro": "Fill out the form below and a member of our team will be in touch within two business days.", "submitLabel": "Submit Application", "successTitle": "Application Received!", "successText": "Thank you for your interest in joining Lar Care. We''ll review your application and reach out within two business days."}]}', NULL, NULL, 0 FROM DUAL
WHERE @c_page_content IS NOT NULL AND NOT EXISTS (SELECT 1 FROM fact_web_entries WHERE collection_id = @c_page_content AND slug = 'careers');
INSERT INTO fact_web_entries (tenant_id, business_id, site_id, collection_id, slug, title, status, sort_order, data_json, created_by, updated_by, is_deleted)
SELECT @tenant_id, @business_id, @site_id, @c_page_content, 'contact', 'Contact Us', 'published', 4, '{"metaTitle": "Contact Us | Lar Care Services", "eyebrow": "We''re Here for You", "title": "Get in Touch", "subtitle": "Whether you''re just exploring your options or ready to get started, we''d love to hear from you. Reach out \\u2014 our team will respond promptly and compassionately.", "sections": [{"type": "contactSplit", "tone": "white", "title": "We''re Ready to Help", "text": "You don''t have to figure out home care on your own. Our team is here to answer your questions, discuss your family''s needs, and guide you toward the right solution \\u2014 with zero pressure.", "details": [{"icon": "\\u260e", "label": "Phone", "value": "(888) 668-7079", "href": "tel:+18886687079"}, {"icon": "\\ud83d\\udce0", "label": "Fax", "value": "(804) 923-4384"}, {"icon": "\\u2709\\ufe0f", "label": "Email", "value": "info@larcareservices.com", "href": "mailto:info@larcareservices.com"}, {"icon": "\\u23f1\\ufe0f", "label": "Response Time", "value": "Within 24 business hours"}, {"icon": "\\ud83d\\udccd", "label": "Locations", "value": "Virginia \\u2022 South Carolina \\u2022 US Virgin Islands"}], "listTitle": "Why Families Trust Lar Care", "list": ["No obligation \\u2014 our consultations are completely free and pressure-free.", "We listen first \\u2014 your family''s specific needs guide everything we recommend.", "VA benefits support \\u2014 we help veterans navigate their care entitlements.", "Caring, knowledgeable team \\u2014 real people who genuinely want to help your family."], "callBox": {"title": "Prefer to Call?", "text": "Our team is available to talk Monday through Friday. We''d love to hear your story and help you find the right path forward."}, "form": {"formKey": "consultation", "title": "Request a Free Care Consultation", "intro": "Free, no-obligation, request a free care consultation. Tell us about your loved one''s needs and we''ll help find the right home care plan. We''re here to help.", "submitLabel": "Send My Message \\u2192", "note": "We respect your privacy. Your information is never sold or shared.", "successTitle": "Thank You for Reaching Out!", "successText": "We''ve received your message. A member of our team will be in touch within 24 business hours. If your need is urgent, please call us at"}}, {"type": "regions", "tone": "light", "eyebrow": "Our Regions", "title": "Reach Your Local Lar Care Team", "intro": "Each of our three regions has a dedicated care team. Click below to learn more about care in your area.", "items": [{"title": "Virginia", "flag": "\\ud83c\\udfdb\\ufe0f", "text": "Northern Virginia, Richmond & Hampton Roads. VA benefits coordination included.", "label": "Virginia Team", "href": "/locations/virginia"}, {"title": "South Carolina", "flag": "\\ud83c\\udf0a", "text": "Columbia, Charleston & Greenville. Community-centered, family-focused care.", "label": "South Carolina Team", "href": "/locations/south-carolina"}, {"title": "US Virgin Islands", "flag": "\\ud83c\\udf34", "text": "St. Thomas & the USVI. Specialized non-skilled care for veterans and families.", "label": "USVI Team", "href": "/locations/usvi"}]}]}', NULL, NULL, 0 FROM DUAL
WHERE @c_page_content IS NOT NULL AND NOT EXISTS (SELECT 1 FROM fact_web_entries WHERE collection_id = @c_page_content AND slug = 'contact');
INSERT INTO fact_web_entries (tenant_id, business_id, site_id, collection_id, slug, title, status, sort_order, data_json, created_by, updated_by, is_deleted)
SELECT @tenant_id, @business_id, @site_id, @c_page_content, 'consultation', 'Consultation', 'published', 5, '{"metaTitle": "Request a Free Care Consultation | Lar Care Services", "eyebrow": "Free & No Obligation", "title": "Request a Free Care Consultation", "subtitle": "Tell us about your loved one''s needs and we''ll help find the right home care plan. We''re here to help \\u2014 at your pace, with no pressure.", "sections": [{"type": "contactSplit", "tone": "white", "title": "We''re Here to Help", "text": "You don''t have to figure out home care alone. Our care coordinators will listen, answer your questions, and guide you \\u2014 at your pace, with no obligation.", "details": [{"icon": "\\u260e", "label": "Phone", "value": "(888) 668-7079", "href": "tel:+18886687079"}, {"icon": "\\ud83d\\udce0", "label": "Fax", "value": "(804) 923-4384"}, {"icon": "\\u2709\\ufe0f", "label": "Email", "value": "info@larcareservices.com", "href": "mailto:info@larcareservices.com"}, {"icon": "\\u23f1\\ufe0f", "label": "Response Time", "value": "Within 24 business hours"}, {"icon": "\\ud83d\\udccd", "label": "Regions Served", "value": "Virginia \\u00b7 South Carolina \\u00b7 USVI"}], "callBox": {"title": "Prefer to Call Right Now?", "text": "Our team is available Monday\\u2013Friday and ready to help your family today."}, "form": {"formKey": "consultation", "title": "Tell Us About Your Needs", "intro": "Fill out the form below and a Lar Care care coordinator will follow up within 24 business hours.", "submitLabel": "Submit My Consultation Request \\u2192", "note": "Your information is private and secure. We never sell or share your data.", "successTitle": "Thank You!", "successText": "We''ve received your consultation request. A Lar Care care coordinator will be in touch within 24 business hours. If your need is urgent, please call us directly at"}}, {"type": "cards", "tone": "light", "eyebrow": "Our Process", "title": "How We Help Your Family", "items": [{"icon": "1", "title": "We Reach Out", "text": "A Lar Care care coordinator will contact you within 24 business hours to schedule your free consultation at a time that works for you."}, {"icon": "2", "title": "We Listen", "text": "During the consultation, we''ll learn about your loved one''s needs, daily routine, and any special circumstances. No rush, no pressure."}, {"icon": "3", "title": "We Build Your Plan", "text": "We''ll put together a personal care plan to match your loved one with the right caregivers, tailored to your family''s unique situation."}]}, {"type": "cta", "title": "Ready to Get Started?", "text": "Licensed, bonded, and available around the clock. Fill out the form above or call us directly.", "phone": true, "primary": {"label": "Back to Home", "href": "/", "variant": "outline"}, "callFirst": true}]}', NULL, NULL, 0 FROM DUAL
WHERE @c_page_content IS NOT NULL AND NOT EXISTS (SELECT 1 FROM fact_web_entries WHERE collection_id = @c_page_content AND slug = 'consultation');
