<?php

declare(strict_types=1);

$mode = strtolower(trim((string)(getenv('DDB_DAILY_REVENUE_XLSX_MODE') ?: 'hybrid_final')));
$allowed = ['hybrid_final', 'legacy_r9', 'template_final', 'template_r10b'];

if (!in_array($mode, $allowed, true)) {
    $mode = 'hybrid_final';
}

return [
    'mode' => $mode,
    'allowed_modes' => $allowed,
    'hybrid_service' => App\Services\HybridXlsxExportService::class,
    'legacy_r9_service' => App\Services\LegacyXlsxExportService::class,
    'template_final' => 'resources/templates/daily_inpatient_revenue_master.xlsx',
    'template_r10b' => 'resources/templates/daily_inpatient_revenue_master_r10b_backup.xlsx',
    'default_mode' => 'hybrid_final',
];
