<?php
/**
 * Hostiva Configuration
 * Copy to config.php and update with your settings
 */

return [
    // Application
    'app' => [
        'name' => 'Hostiva v6',
        'url' => 'http://localhost/hostiva',
        'debug' => true,
        'timezone' => 'UTC',
        'base_path' => '/hostiva'
    ],

    // Database
    'database' => [
        'host' => 'localhost',
        'port' => 3306,
        'name' => 'hostiva',
        'user' => 'root',
        'password' => '',
        'charset' => 'utf8mb4'
    ],

    // Email Configuration
    'email' => [
        'driver' => 'mail', // 'mail', 'smtp', or 'sendmail'
        'from_address' => 'noreply@hostiva.com',
        'from_name' => 'Hostiva Property Management',
        
        // For SMTP
        'host' => 'smtp.gmail.com',
        'port' => 587,
        'username' => 'your-email@gmail.com',
        'password' => 'your-app-password',
        'encryption' => 'tls' // 'tls' or 'ssl'
    ],

    // Stripe Payment Processing
    'stripe' => [
        'public_key' => 'pk_test_...', // Get from Stripe dashboard
        'secret_key' => 'sk_test_...', // Get from Stripe dashboard
        'webhook_secret' => 'whsec_...' // Get from Stripe dashboard
    ],

    // Airbnb API Integration
    'airbnb' => [
        'api_key' => 'your-airbnb-api-key',
        'enabled' => false
    ],

    // Booking.com API Integration
    'booking_com' => [
        'api_key' => 'your-booking-api-key',
        'enabled' => false
    ],

    // Twilio SMS (optional)
    'twilio' => [
        'account_sid' => 'your-account-sid',
        'auth_token' => 'your-auth-token',
        'from_number' => '+1234567890',
        'enabled' => false
    ],

    // JWT Secrets (for advanced auth)
    'jwt' => [
        'secret' => 'your-super-secret-key-change-in-production',
        'algorithm' => 'HS256',
        'expires_in' => 604800 // 7 days in seconds
    ],

    // File Upload
    'uploads' => [
        'path' => __DIR__ . '/../uploads',
        'max_size' => 10 * 1024 * 1024, // 10MB
        'allowed_types' => ['jpg', 'jpeg', 'png', 'pdf', 'doc', 'docx']
    ],

    // Logging
    'logging' => [
        'level' => 'info', // 'debug', 'info', 'warning', 'error'
        'path' => __DIR__ . '/../logs'
    ]
];
