============================================== LEDGER ALERTS - WhatsApp & SMS Configuration ============================================== Add these lines to your .env file: # SMS Configuration (Uses existing SMS gateways) SMS_ENABLED=true SMS_LEDGER_ALERTS_ENABLED=true # WhatsApp Configuration (Optional) WHATSAPP_ENABLED=false WHATSAPP_API_URL=https://api.whatsapp.com/send WHATSAPP_API_TOKEN=your_whatsapp_api_token_here WHATSAPP_SENDER_ID=your_sender_id_or_phone_number ============================================== QUICK SETUP STEPS: ============================================== 1. SMS (Already Working): - Your SMS gateways are already configured - SMS will work immediately for admins with phone numbers 2. WhatsApp (Optional): - Set WHATSAPP_ENABLED=true - Add your WhatsApp API credentials - Popular services: Twilio, MessageBird, WhatsApp Business API 3. Update Admin Phone Numbers: UPDATE users SET phone = '+905XXXXXXXXX' WHERE type = 'admin'; 4. Test It: php artisan ledger:monitor ============================================== IMPORTANT NOTES: ============================================== ✅ SMS uses your existing infrastructure (no additional setup needed) ✅ WhatsApp/SMS only sent for CRITICAL alerts (saves money) ✅ Email always sent as backup ✅ Phone format: +[country code][number] (e.g., +905XXXXXXXXX) ✅ Errors logged to storage/logs/laravel.log ==============================================