<?php

return [

    'events' => [

        'account_setup' => [
            'label' => 'Account Setup (Installation)',
            'description' => 'Sent to the primary admin when installation completes.',
            'placeholders' => ['{name}', '{email}', '{login_url}', '{app_name}'],
            'defaults' => [
                'email_enabled' => true,
                'email_subject' => 'Welcome to {app_name}',
                'email_body' => "Hello {name},\n\nYour admin account has been created successfully.\n\nLogin URL: {login_url}\nEmail: {email}\n\nThank you.",
                'sms_enabled' => true,
                'sms_body' => 'Welcome to {app_name}! Your admin account is ready. Login: {login_url}',
            ],
        ],

        'staff_created' => [
            'label' => 'Staff Account Created',
            'description' => 'Sent when a new staff member is added.',
            'placeholders' => ['{name}', '{email}', '{password}', '{login_url}', '{app_name}'],
            'defaults' => [
                'email_enabled' => true,
                'email_subject' => 'Your {app_name} staff account',
                'email_body' => "Hello {name},\n\nA staff account has been created for you.\n\nLogin URL: {login_url}\nEmail: {email}\nPassword: {password}\n\nPlease change your password after first login.",
                'sms_enabled' => true,
                'sms_body' => 'Hi {name}, your {app_name} account is ready. Login: {login_url} Email: {email} Password: {password}',
            ],
        ],

        'forgot_password' => [
            'label' => 'Forgot Password',
            'description' => 'Sent when a user requests a password reset link.',
            'placeholders' => ['{name}', '{email}', '{reset_url}', '{app_name}'],
            'defaults' => [
                'email_enabled' => true,
                'email_subject' => 'Reset your {app_name} password',
                'email_body' => "Hello {name},\n\nClick the link below to reset your password:\n\n{reset_url}\n\nIf you did not request this, you can ignore this email.",
                'sms_enabled' => true,
                'sms_body' => 'Reset your {app_name} password: {reset_url}',
            ],
        ],

        'password_reset' => [
            'label' => 'Password Reset Success',
            'description' => 'Sent after a password is successfully reset.',
            'placeholders' => ['{name}', '{email}', '{login_url}', '{app_name}'],
            'defaults' => [
                'email_enabled' => true,
                'email_subject' => 'Your {app_name} password was changed',
                'email_body' => "Hello {name},\n\nYour password was reset successfully.\n\nYou can sign in here: {login_url}\n\nIf you did not make this change, contact your administrator immediately.",
                'sms_enabled' => true,
                'sms_body' => 'Your {app_name} password was changed successfully. Login: {login_url}',
            ],
        ],

        'module_purchased' => [
            'label' => 'Module Purchase',
            'description' => 'Sent when a marketplace module is installed/purchased.',
            'placeholders' => ['{name}', '{email}', '{module_name}', '{amount}', '{currency}', '{app_name}'],
            'defaults' => [
                'email_enabled' => true,
                'email_subject' => 'Module purchased: {module_name}',
                'email_body' => "Hello {name},\n\nModule \"{module_name}\" was installed successfully.\n\nAmount charged: {currency} {amount}\n\nThank you.",
                'sms_enabled' => true,
                'sms_body' => 'Module {module_name} installed on {app_name}. Charged: {currency} {amount}',
            ],
        ],

    ],

];
