Generate Attendance Report

curl -X POST http://localhost/api/reports/attendance/daily \
-H "Content-Type: application/json" \
-d '{
    "filters": {
        "date": "2024-08-31",
        "academic_year_id": 1,
        "report_type": "all", // or "students" or "staff"
        "class_id": 101,       // Optional: Only for student report
        "section": "A",        // Optional: Only for student report
        "role_id": 3,          // Optional: Only for staff report
        "attendance_status": "Present"  // Optional: Filter by attendance status
    },
    "downloadFormat": "pdf"  // Optional: "pdf" or "excel"
}'