<?php

return [
    /*
    |--------------------------------------------------------------------------
    | SMS Configuration
    |--------------------------------------------------------------------------
    |
    | Configuration for Smart SMS Solutions API integration
    |
    */

    'base_url' => env('SMS_BASE_URL', 'https://app.smartsmssolutions.com/io/api/client/v1'),
    
    'token' => env('SMS_TOKEN'),
    
    'sender_id' => env('SMS_SENDER_ID', 'SlarryLaundry'),
    
    'default_route' => env('SMS_DEFAULT_ROUTE', '4'), // 4 for corporate route
    
    'enabled' => env('SMS_ENABLED', true),
    
    /*
    |--------------------------------------------------------------------------
    | SMS Templates
    |--------------------------------------------------------------------------
    |
    | Pre-defined SMS message templates for different notifications
    |
    */
    
    'templates' => [
        'order_created' => 'Hello {customer_name}, your laundry order {order_number} has been received and is being processed. We\'ll notify you when it\'s ready! - Slarry Laundry Service',

        'order_processing' => 'Hello {customer_name}, your laundry order {order_number} is currently being processed. We\'ll notify you when it\'s ready for pickup. - Slarry Laundry Service',

        'order_ready' => 'Hello {customer_name}, your laundry order {order_number} is ready for pickup! Please visit us at More blessing complex, along lokoja road, semu semu, ikare akoko ondo state. Thank you for choosing Slarry Laundry Service.',

        'order_completed' => 'Hello {customer_name}, thank you for choosing Slarry Laundry Service! Your order {order_number} has been completed. We look forward to serving you again. Contact: Ayodejiademide@gmail.com',

        'order_cancelled' => 'Hello {customer_name}, your laundry order {order_number} has been cancelled. If you have any questions, please contact us at Ayodejiademide@gmail.com - Slarry Laundry Service',

        'payment_reminder' => 'Hello {customer_name}, this is a friendly reminder about the payment for your order {order_number}. Total amount: ₦{amount}. - Slarry Laundry Service',

        'welcome' => 'Welcome to Slarry Laundry Service, {customer_name}! We\'re excited to serve you. Your customer ID is {customer_id}. Contact: Ayodejiademide@gmail.com',
    ],
    
    /*
    |--------------------------------------------------------------------------
    | SMS Settings
    |--------------------------------------------------------------------------
    |
    | Various SMS service settings and options
    |
    */
    
    'settings' => [
        'max_message_length' => 160,
        'timeout' => 30, // seconds
        'retry_attempts' => 3,
        'retry_delay' => 5, // seconds
        'log_all_messages' => true,
        'auto_send_notifications' => true,
    ],
    
    /*
    |--------------------------------------------------------------------------
    | Notification Rules
    |--------------------------------------------------------------------------
    |
    | Define when to send SMS notifications
    |
    */
    
    'notifications' => [
        'order_created' => env('SMS_NOTIFY_ORDER_CREATED', false),
        'order_processing' => env('SMS_NOTIFY_ORDER_PROCESSING', false),
        'order_ready' => env('SMS_NOTIFY_ORDER_READY', true),
        'order_completed' => env('SMS_NOTIFY_ORDER_COMPLETED', false),
        'order_cancelled' => env('SMS_NOTIFY_ORDER_CANCELLED', true),
        'customer_welcome' => env('SMS_NOTIFY_CUSTOMER_WELCOME', false),
    ],
];
