# analytics/urls.py
from django.urls import path
from . import views

app_name = 'analytics'

urlpatterns = [
    path('insights/', views.insights_dashboard, name='insights'),
    path('insights/<int:pk>/read/', views.mark_insight_read, name='insight_read'),
    path('insights/mark-all-read/', views.mark_all_insights_read, name='mark_all_read'),
    path('notifications/', views.notifications_panel, name='notifications'),
    path('notifications/<int:pk>/read/', views.mark_notification_read, name='notification_read'),
    path('stock-forecast/', views.stock_forecast_dashboard, name='stock_forecast'),
    path('permissions/', views.role_permissions, name='role_permissions'),
    path('feature-usage/', views.feature_usage_dashboard, name='feature_usage'),
    
    # Operating Expenses
    path('expenses/', views.expense_list, name='expense_list'),
    path('expenses/add/', views.expense_create, name='expense_create'),
    path('expenses/categories/', views.expense_category_list, name='expense_category_list'),
    path('expenses/categories/add/', views.expense_category_create, name='expense_category_create'),
]
