#!/bin/bash

# Quick script to test all 3 inactive profile warning emails
USER_ID=${1:-102}

echo "================================================"
echo "  Testing Inactive profile warning Emails"
echo "================================================"
echo ""
echo "Sending all 3 warning emails to user #$USER_ID"
echo ""

echo "📧 Warning 1 (2 weeks remaining)..."
php artisan email:send-test --type=inactive-warning-1 --receiver=user --id=$USER_ID

echo ""
echo "📧 Warning 2 (1 week remaining)..."
php artisan email:send-test --type=inactive-warning-2 --receiver=user --id=$USER_ID

echo ""
echo "📧 Final Warning (24 hours remaining)..."
php artisan email:send-test --type=inactive-warning-final --receiver=user --id=$USER_ID

echo ""
echo "================================================"
echo "  ✅ All warning emails sent!"
echo "================================================"
