<?php
/**
 * RoutexShipping Configuration Template
 * 
 * This file contains all customizable settings for your RoutexShipping platform.
 * Edit these values to match your company's branding and requirements.
 */

// ============================================================================
// COMPANY BRANDING
// ============================================================================

// Company name displayed throughout the site
define('COMPANY_NAME', 'RoutexShipping');

// Company tagline/motto
define('COMPANY_TAGLINE', 'Fast, Reliable & Global Shipping Solutions');

// Company description
define('COMPANY_DESCRIPTION', 'Leading international logistics company providing fast, reliable, and secure shipping solutions worldwide.');

// ============================================================================
// CONTACT INFORMATION
// ============================================================================

// Main company email
define('COMPANY_EMAIL', 'info@routexshipping.com');

// Support email
define('SUPPORT_EMAIL', 'support@routexshipping.com');

// Company phone number
define('COMPANY_PHONE', '+1-800-ROUTEX-1');

// Company address
define('COMPANY_ADDRESS', '123 Logistics Avenue, Global City, GC 12345');

// ============================================================================
// WEBSITE SETTINGS
// ============================================================================

// Website URL (with trailing slash)
define('WEBSITE_URL', 'http://localhost/routex/');

// Website title
define('WEBSITE_TITLE', 'RoutexShipping - Global Logistics Solutions');

// Website description for SEO
define('WEBSITE_DESCRIPTION', 'Fast, reliable, and secure international shipping solutions for businesses worldwide.');

// ============================================================================
// TRACKING SETTINGS
// ============================================================================

// Tracking code prefix
define('TRACKING_PREFIX', 'ROU');

// Tracking code length (total length including prefix)
define('TRACKING_CODE_LENGTH', 14);

// ============================================================================
// EMAIL SETTINGS
// ============================================================================

// Default sender email for notifications
define('NOTIFICATION_EMAIL', 'noreply@routexshipping.com');

// Email subject prefix
define('EMAIL_SUBJECT_PREFIX', 'RoutexShipping');

// Enable email notifications
define('ENABLE_EMAIL_NOTIFICATIONS', true);

// ============================================================================
// SECURITY SETTINGS
// ============================================================================

// Session timeout (in seconds) - 30 minutes
define('SESSION_TIMEOUT', 1800);

// Maximum login attempts before lockout
define('MAX_LOGIN_ATTEMPTS', 5);

// Lockout duration (in seconds) - 15 minutes
define('LOCKOUT_DURATION', 900);

// ============================================================================
// FILE UPLOAD SETTINGS
// ============================================================================

// Maximum file size (in bytes) - 5MB
define('MAX_FILE_SIZE', 5 * 1024 * 1024);

// Allowed file types for uploads
define('ALLOWED_FILE_TYPES', ['jpg', 'jpeg', 'png', 'gif']);

// Upload directory
define('UPLOAD_DIR', __DIR__ . '/../uploads/');

// ============================================================================
// PAGINATION SETTINGS
// ============================================================================

// Items per page in admin lists
define('ITEMS_PER_PAGE', 20);

// ============================================================================
// SERVICES
// ============================================================================

// Available shipping services
$SERVICES = [
    'air_freight' => [
        'name' => 'Air Freight',
        'description' => 'Fast international shipping with guaranteed delivery times',
        'icon' => 'fa-plane',
        'color' => 'blue'
    ],
    'sea_freight' => [
        'name' => 'Sea Freight',
        'description' => 'Cost-effective ocean shipping for large volumes',
        'icon' => 'fa-ship',
        'color' => 'cyan'
    ],
    'road_transport' => [
        'name' => 'Road Transport',
        'description' => 'Reliable ground transportation across continents',
        'icon' => 'fa-truck',
        'color' => 'orange'
    ],
    'warehousing' => [
        'name' => 'Warehousing',
        'description' => 'Secure storage facilities with inventory management',
        'icon' => 'fa-warehouse',
        'color' => 'amber'
    ]
];

// ============================================================================
// PARCEL STATUSES
// ============================================================================

// Available parcel statuses
$PARCEL_STATUSES = [
    'pending' => 'Pending',
    'picked_up' => 'Picked Up',
    'in_transit' => 'In Transit',
    'out_for_delivery' => 'Out for Delivery',
    'delivered' => 'Delivered',
    'cancelled' => 'Cancelled'
];

// ============================================================================
// COUNTRIES
// ============================================================================

// List of countries served (add more as needed)
$COUNTRIES = [
    'United States',
    'Canada',
    'United Kingdom',
    'Germany',
    'France',
    'Spain',
    'Italy',
    'Netherlands',
    'Belgium',
    'Switzerland',
    'Austria',
    'Sweden',
    'Norway',
    'Denmark',
    'Finland',
    'Poland',
    'Czech Republic',
    'Hungary',
    'Romania',
    'Bulgaria',
    'Greece',
    'Portugal',
    'Ireland',
    'Australia',
    'New Zealand',
    'Japan',
    'South Korea',
    'China',
    'India',
    'Singapore',
    'Malaysia',
    'Thailand',
    'Vietnam',
    'Philippines',
    'Indonesia',
    'Brazil',
    'Mexico',
    'Argentina',
    'Chile',
    'Colombia',
    'Peru',
    'South Africa',
    'Egypt',
    'Nigeria',
    'Kenya',
    'UAE',
    'Saudi Arabia',
    'Israel'
];

// ============================================================================
// PRICING (Optional - for future implementation)
// ============================================================================

// Base pricing for services
$PRICING = [
    'air_freight' => [
        'base_rate' => 50,
        'unit' => 'per kg',
        'min_charge' => 100
    ],
    'sea_freight' => [
        'base_rate' => 500,
        'unit' => 'per container',
        'min_charge' => 500
    ],
    'road_transport' => [
        'base_rate' => 200,
        'unit' => 'per shipment',
        'min_charge' => 200
    ],
    'warehousing' => [
        'base_rate' => 100,
        'unit' => 'per month',
        'min_charge' => 100
    ]
];

// ============================================================================
// FEATURES
// ============================================================================

// Enable/disable features
$FEATURES = [
    'email_notifications' => true,
    'live_chat' => true,
    'reviews' => true,
    'contact_form' => true,
    'tracking' => true,
    'admin_panel' => true
];

// ============================================================================
// SOCIAL MEDIA
// ============================================================================

// Social media links
$SOCIAL_MEDIA = [
    'facebook' => 'https://facebook.com/routexshipping',
    'twitter' => 'https://twitter.com/routexshipping',
    'linkedin' => 'https://linkedin.com/company/routexshipping',
    'instagram' => 'https://instagram.com/routexshipping'
];

// ============================================================================
// CUSTOMIZATION TIPS
// ============================================================================

/*
 * To customize your RoutexShipping platform:
 * 
 * 1. BRANDING
 *    - Update COMPANY_NAME, COMPANY_TAGLINE, COMPANY_DESCRIPTION
 *    - Change colors in includes/header.php (CSS variables)
 *    - Update logo in includes/header.php
 * 
 * 2. CONTACT INFO
 *    - Update all contact information above
 *    - Update footer in includes/footer.php
 * 
 * 3. SERVICES
 *    - Add/remove services in $SERVICES array
 *    - Update service descriptions
 *    - Change icons and colors
 * 
 * 4. COUNTRIES
 *    - Add more countries to $COUNTRIES array
 *    - Update based on your service areas
 * 
 * 5. EMAIL
 *    - Configure SMTP in Admin > Settings
 *    - Update email templates in app/Services/EmailService.php
 * 
 * 6. SECURITY
 *    - Change SESSION_TIMEOUT for your needs
 *    - Adjust MAX_LOGIN_ATTEMPTS
 *    - Update password requirements
 * 
 * 7. FILES
 *    - Adjust MAX_FILE_SIZE if needed
 *    - Add more allowed file types
 *    - Change upload directory if needed
 */

// ============================================================================
// EXPORT CONFIGURATION
// ============================================================================

// Make configuration available globally
return [
    'company' => [
        'name' => COMPANY_NAME,
        'tagline' => COMPANY_TAGLINE,
        'description' => COMPANY_DESCRIPTION,
        'email' => COMPANY_EMAIL,
        'phone' => COMPANY_PHONE,
        'address' => COMPANY_ADDRESS
    ],
    'website' => [
        'url' => WEBSITE_URL,
        'title' => WEBSITE_TITLE,
        'description' => WEBSITE_DESCRIPTION
    ],
    'services' => $SERVICES,
    'statuses' => $PARCEL_STATUSES,
    'countries' => $COUNTRIES,
    'pricing' => $PRICING,
    'features' => $FEATURES,
    'social' => $SOCIAL_MEDIA
];
