<?php
return [
    'app_name' => 'Pyrk Walking Club',
    'base_url' => 'http://thepyrk.com/steps/public',
    'timezone' => 'Asia/Beirut',
    'env' => 'production', // local | production
    'debug' => true,
    'database' => [
        'host' => '127.0.0.1',
        'port' => '3306',
        'name' => 'aesbetco_steps',
        'user' => 'aesbetco_steps',
        'password' => '[iccGq+%S-cF',
        'charset' => 'utf8mb4',
    ],
    'security' => [
        'force_https' => false,
        'secure_cookies' => false,
        'session_name' => 'PYRKSESSID',
        'login_max_attempts' => 5,
        'login_lock_minutes' => 15,
        'enable_security_headers' => true,
    ],
    'mail' => [
        'from_email' => 'club@pyrk.local',
        'from_name' => 'Pyrk Walking Club',
        'driver' => 'log', // log | smtp
        'smtp' => [
            'host' => '',
            'port' => 587,
            'username' => '',
            'password' => '',
            'encryption' => 'tls', // tls | ssl | none
        ],
    ],


'whatsapp' => [
    'enabled' => true,
    'driver' => 'ultramsg',

    'ultramsg' => [
        // Copy from your UltraMsg instance dashboard.
        'instance_id' => 'instance92813',

        // Recommended: keep the private token outside config/app.php.
        'token_file' => __DIR__ . '/../storage/private/ultramsg-token.txt',

        // Safe defaults. Increase only after controlled testing.
        'max_per_batch' => 150,
        'max_per_day' => 200,
        'messages_per_run' => 5,
        'max_attempts' => 3,
        'duplicate_window_hours' => 24,
        'default_country_code' => '961',
        'connect_timeout_seconds' => 10,
        'timeout_seconds' => 30,
    ],
],


    'reminders' => [
        'channels' => ['email'], // email, whatsapp, in_app
        'hours_before_walk' => 24,
    ],
    'maps' => [
        // Use 'osm' to try maps immediately with no Google Cloud account.
        // Use 'google' when you want Google Maps JavaScript API + Google Routes API.
        'provider' => 'osm', // osm | google
        'default_center' => ['lat' => 33.8938, 'lng' => 35.5018],
        'osm' => [
            'tile_url' => 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
            'tile_attribution' => '&copy; OpenStreetMap contributors',
            // false = free manual point-to-point route calculation, best for quick local testing.
            // true = tries public OSRM demo routing first, then falls back to manual calculation.
            // Do not use the public OSRM demo server for production traffic.
            'use_osrm_demo' => false,
            'osrm_url' => 'https://router.project-osrm.org',
            'osrm_profile' => 'foot',
        ],
    ],
    'google' => [
        'maps_browser_key' => '',
        'routes_server_key' => '',
        'default_center' => ['lat' => 33.8938, 'lng' => 35.5018],
    ],
    'uploads' => [
        'photo_dir' => __DIR__ . '/../public/uploads/photos',
        'thumbnail_dir' => __DIR__ . '/../public/uploads/thumbnails',
        'avatar_dir' => __DIR__ . '/../public/uploads/avatars',
        'max_photo_mb' => 8,
        'max_avatar_mb' => 4,
    ],
    'features' => [
        'allow_self_checkin' => true,
        'photo_admin_approval_required' => true,
        'one_vote_per_walk' => true,
        'prevent_self_vote' => true,
        'enable_qr_scanner' => true,
    ],


'mobile_push' => [
    'enabled' => true,
    'default_channel_id' => 'pyrk_general',
    'android' => [
        'enabled' => true,
        'firebase_project_id' => 'pyrksteps',
        'service_account_json' =>
            __DIR__ . '/../storage/private/firebase-service-account.json',
    ],

    'ios' => [
        'enabled' => false,
        'team_id' => '',
        'key_id' => '',
        'bundle_id' => 'com.thepyrk.app',
        'auth_key_p8' =>
            __DIR__ . '/../storage/private/AuthKey_APNS.p8',
        'environment' => 'production',
    ],
],



    
'oauth' => [
    // true = if the email does not exist yet, create a new active member account from Google/Outlook.
    // false = Google/Outlook can only login existing Pyrk emails.
    'auto_create_members' => true,

    'google' => [
        'enabled' => true,
        'client_id' => '213396093634-ocf1is5hrn4dcuhdp2obpj5idma055fe.apps.googleusercontent.com',
        'client_secret' => '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',
        'redirect_uri' => 'https://thepyrk.com/steps/public/oauth.php?provider=google',
    ],
    'microsoft' => [
        'enabled' => false,
        'client_id' => 'PASTE_MICROSOFT_CLIENT_ID',
        'client_secret' => 'PASTE_MICROSOFT_CLIENT_SECRET',
        'redirect_uri' => 'https://thepyrk.com/steps/public/oauth.php?provider=microsoft',
    ],
],
];
