from django.urls import path
from . import views

app_name = 'expenses'

urlpatterns = [
    # List and filtering
    path('', views.expenses_list, name='expenses_list'),
    
    # CRUD operations
    path('add/', views.add_expense, name='add_expense'),
    path('<int:pk>/', views.expense_detail, name='expense_detail'),
    path('<int:pk>/edit/', views.edit_expense, name='edit_expense'),
    path('<int:pk>/delete/', views.delete_expense, name='delete_expense'),
    
    # Approval workflow
    path('approvals/pending/', views.pending_approvals, name='pending_approvals'),
    path('<int:pk>/approve/', views.approve_expense, name='approve_expense'),
    path('<int:pk>/reject/', views.reject_expense, name='reject_expense'),
    
    # Reports and exports
    path('export/excel/', views.export_expenses_excel, name='export_expenses_excel'),
    path('analytics/', views.expense_analytics, name='expense_analytics'),
]
