APP_NAME="Ladill Care"
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=https://care.ladill.com

PLATFORM_URL=https://ladill.com
PLATFORM_DOMAIN=ladill.com

LOG_CHANNEL=stack
LOG_LEVEL=debug

DB_CONNECTION=sqlite
DB_DATABASE=database/database.sqlite
# Production: DB_CONNECTION=mysql, DB_HOST=127.0.0.1, DB_DATABASE=ladill_care, DB_USERNAME=ladill_care

# Production: DB_CONNECTION=mysql, DB_HOST=127.0.0.1, DB_DATABASE=ladill_care, DB_USERNAME=ladill_care

REDIS_CLIENT=phpredis
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

SESSION_DRIVER=redis
SESSION_LIFETIME=1440
CACHE_STORE=redis
QUEUE_CONNECTION=database

# --- Ladill SSO (Sign in with Ladill — auth.ladill.com OIDC client) ---
LADILL_SSO_CLIENT_ID=
LADILL_SSO_CLIENT_SECRET=

# --- Platform APIs this app consumes (per-consumer service keys) ---
BILLING_API_URL=https://ladill.com/api/billing
BILLING_API_KEY_CARE=
IDENTITY_API_URL=https://ladill.com/api
IDENTITY_API_KEY_CARE=

# Ladill Meet (video visits)
MEET_API_URL=https://meet.ladill.com/api/service/v1
MEET_API_KEY_CARE=

# Ladill SMS (patient messaging uses customer keys via Integrations; platform key optional)
SMS_PLATFORM_API_URL=https://ladill.com/api
SMS_API_KEY_CARE=
SMS_CUSTOMER_RELAY_URL=https://ladill.com/api/sms
SMS_DEFAULT_SENDER_ID=Ladill

# Platform suite messaging (zero-config — channel=suite; no Bird/SMS product keys required)
# Monolith: MESSAGING_SUITE_PLATFORM_CHANNEL=true, SMTP_API_KEY_CARE + SMS_API_KEY_CARE
SMTP_PLATFORM_API_URL=https://ladill.com/api/smtp
SMTP_API_KEY_CARE=
SMTP_CUSTOMER_RELAY_URL=https://ladill.com/api/smtp
CARE_SMTP_FROM=care@ladill.com
CARE_SMTP_FROM_NAME="Ladill Care"
MESSAGING_SETTINGS_URL=https://account.ladill.com/account/settings/messaging?reason=messaging_mailbox_required&from=suite

# Afia in-app assistant (uses platform relay when AFIA_API_KEY is empty)
AFIA_ENABLED=true
AFIA_PRODUCT=care
AFIA_PLATFORM_API_KEY=

# Platform events webhook (user/org lifecycle from the monolith)
SERVICE_EVENTS_INBOUND_SECRET=

# Patient journey financial gate defaults (minor currency units)
CARE_CURRENCY=GHS
CARE_PATIENT_CARD_FEE_MINOR=2000
CARE_CONSULTATION_FEE_MINOR=5000

# Suite demo accounts (sales walkthroughs) — reset Care data on each SSO login
DEMO_ACCOUNTS_ENABLED=false
DEMO_RESET_ON_LOGIN=true

# Care Device Agent (local serial/BLE helper) — see docs/devices.md
# Tokens are issued per device in Settings → Devices (not env vars).

# --- Inbound service API keys (sibling Ladill apps calling Care) ---
CARE_API_KEY_FRONTDESK=
CARE_API_KEY_CRM=
