<?php
$env = [
    'app_name' => getenv('APP_NAME') ?: 'Mutiara Group Portal',
    'base_url' => getenv('BASE_URL') ?: 'https://mutiaragroup.alhafiz.xyz',
    'db' => [
        'host' => getenv('DB_HOST') ?: 'localhost',
        'name' => getenv('DB_NAME') ?: 'alhafizx_mutiaragroup',
        'user' => getenv('DB_USER') ?: 'alhafizx_mutiaragroup',
        'pass' => getenv('DB_PASS') ?: 'alhafizx_mutiaragroup',
        'charset' => getenv('DB_CHARSET') ?: 'utf8mb4',
    ],
    'mail' => [
        'host' => getenv('MAIL_HOST') ?: 'smtp.example.com',
        'port' => (int) (getenv('MAIL_PORT') ?: 587),
        'username' => getenv('MAIL_USERNAME') ?: 'no-reply@example.com',
        'password' => getenv('MAIL_PASSWORD') ?: 'secret',
        'from_name' => getenv('MAIL_FROM_NAME') ?: 'Mutiara Group System',
    ],
];

return $env;

