<?php

declare(strict_types=1);

return [
    'name' => env('APP_NAME', 'HMH Dashboard'),
    'env' => env('APP_ENV', 'local'),
    'debug' => filter_var(env('APP_DEBUG', 'false'), FILTER_VALIDATE_BOOLEAN),
    'url' => env('APP_URL', 'http://localhost'),
    'timezone' => env('APP_TIMEZONE', 'Asia/Riyadh'),
    'use_revenue_mv' => filter_var(env('USE_REVENUE_MV', '0'), FILTER_VALIDATE_BOOLEAN),
    'use_revenue_summary' => filter_var(env('USE_REVENUE_SUMMARY', '0'), FILTER_VALIDATE_BOOLEAN),
    'revenue_summary_max_age_hours' => max(1, (int) env('REVENUE_SUMMARY_MAX_AGE_HOURS', '30')),
];
