"""
Dashboard URLs
"""

from django.urls import path

from .views import (
    CommandCenterView,
    my_dashboard,
    dashboard_bulk_action,
    admin_evaluation,
    admin_evaluation_chart_data,
    staff_performance_detail,
    staff_performance_trends,
    department_benchmarks,
    export_staff_performance,
    performance_analytics_api,
    command_center_api,
    employee_evaluation,
    employee_evaluation_data,
    employee_evaluation_charts,
    complaint_request_list,
    complaint_request_export,
    census_report,
    census_report_export,
    inquiry_report,
    observation_report,
    observation_report_export,
    complaint_monthly_report,
    complaint_monthly_export,
    complaint_quarterly_report,
    complaint_quarterly_export,
    comments_report,
    standards_dashboard,
    my_performance,
)

app_name = "dashboard"

urlpatterns = [
    path("", CommandCenterView.as_view(), name="command-center"),
    path("api/", command_center_api, name="command_center_api"),
    path("my/", my_dashboard, name="my_dashboard"),
    path("my/performance/", my_performance, name="my_performance"),
    path("bulk-action/", dashboard_bulk_action, name="bulk_action"),
    # Admin Evaluation
    path("admin-evaluation/", admin_evaluation, name="admin_evaluation"),
    path("admin-evaluation/chart-data/", admin_evaluation_chart_data, name="admin_evaluation_chart_data"),
    # Employee Evaluation (PAD Department Weekly Dashboard)
    path("employee-evaluation/", employee_evaluation, name="employee_evaluation"),
    path("employee-evaluation/data/", employee_evaluation_data, name="employee_evaluation_data"),
    path("employee-evaluation/charts/", employee_evaluation_charts, name="employee_evaluation_charts"),
    # Enhanced Staff Performance
    path("admin-evaluation/staff/<str:staff_id>/", staff_performance_detail, name="staff_performance_detail"),
    path("admin-evaluation/staff/<str:staff_id>/trends/", staff_performance_trends, name="staff_performance_trends"),
    path("admin-evaluation/benchmarks/", department_benchmarks, name="department_benchmarks"),
    path("admin-evaluation/export/", export_staff_performance, name="export_staff_performance"),
    path("admin-evaluation/analytics/", performance_analytics_api, name="performance_analytics_api"),
    # Step 0 — Complaint Requests Report
    path("complaint-requests/", complaint_request_list, name="complaint_request_list"),
    path("complaint-requests/export/", complaint_request_export, name="complaint_request_export"),
    # Census Report
    path("census/", census_report, name="census_report"),
    path("census/export/", census_report_export, name="census_report_export"),
    # Inquiry Reports
    path("inquiries-report/", inquiry_report, name="inquiry_report"),
    # Observation Report
    path("observations-report/", observation_report, name="observation_report"),
    path("observations-report/export/", observation_report_export, name="observation_report_export"),
    # Complaint Monthly Calculations (Step 1)
    path("complaints-monthly/", complaint_monthly_report, name="complaint_monthly_report"),
    path("complaints-monthly/export/", complaint_monthly_export, name="complaint_monthly_export"),
    # Complaint Quarterly/Yearly Report Card
    path("complaints-yearly/", complaint_quarterly_report, name="complaint_quarterly_report"),
    path("complaints-yearly/export/", complaint_quarterly_export, name="complaint_quarterly_export"),
    # Comments Analysis Report
    path("comments-report/", comments_report, name="comments_report"),
    # Standards Compliance Dashboard
    path("standards/", standards_dashboard, name="standards_dashboard"),
]
