#!/bin/bash
# HADEX Master Report Generator

echo "=================================================="
echo "🌊 HADEX - Report Generator"
echo "=================================================="

# Generate daily report
echo "📅 Generating daily report..."
./scripts/generate_daily_report.sh

# Check if it's Sunday (weekly report)
if [ $(date +%u) -eq 7 ]; then
    echo "📊 Generating weekly report..."
    ./scripts/generate_weekly_report.sh
fi

# Check if it's last day of month (monthly report)
if [ $(date -d tomorrow +%d) -eq 1 ]; then
    echo "📈 Generating monthly report..."
    ./scripts/generate_monthly_report.sh
fi

# Generate alert report
echo "🚨 Generating alert report..."
./scripts/generate_alert_report.sh

echo "=================================================="
echo "✅ All reports generated successfully"
echo "📁 Location: ./reports/"
echo "=================================================="
