<?php
/**
 * Application configuration
 * Nazareth Church Management System
 */

// Optional server overrides (copy config/app.local.example.php → app.local.php on cPanel)
if (is_file(__DIR__ . '/app.local.php')) {
    require __DIR__ . '/app.local.php';
}

define('SITE_NAME', 'Nazareth');
define('SITE_FULL_NAME', 'Presbyterian Church of Ghana, Nazareth Congregation, La');
define('MOTTO', 'That They All May Be One');

// Project root (filesystem) for storage paths
if (!defined('ROOT_PATH')) {
    define('ROOT_PATH', dirname(__DIR__));
}

require_once __DIR__ . '/../includes/url.php';

// Web path to app root (/nazareth locally, '' at domain root) — not the /mobile or /landing subfolder
if (!defined('BASE_PATH')) {
    define('BASE_PATH', nazareth_detect_base_path());
}

// Receipt output: when true, receipt HTML is written to storage/receipts/ (for development without thermal printer).
// Set to false when using a thermal printer so receipts are not written to file.
if (!defined('RECEIPT_PRINT_TO_FILE')) {
    define('RECEIPT_PRINT_TO_FILE', true);
}

// Until go-live: cron sends a test SMS to this number every run so you can verify the job ran.
// Set to empty string or remove this line when moving to production.
if (!defined('BIRTHDAY_CRON_TEST_PHONE')) {
    define('BIRTHDAY_CRON_TEST_PHONE', '0243658609');
}
