# urls.py
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from . import views

router = DefaultRouter()
router.register(r"categories", views.FeeCategoryViewSet, basename="feecategory")
router.register(r"components", views.FeeComponentViewSet, basename="feecomponent")
router.register(
    r"class-fee-structures", views.ClassFeeStructureViewSet, basename="classfeestructure"
)
router.register(
    r"student-assignments",
    views.StudentFeeAssignmentViewSet,
    basename="studentfeeassignment",
)

urlpatterns = [
    path("", include(router.urls)),
    path("collections/", views.FeeCollectionView.as_view(), name="fee-collections"),
    path("mark-paid/", views.MarkAsPaidView.as_view(), name="fee-mark-paid"),
    path("mark-unpaid/", views.MarkAsUnpaidView.as_view(), name="fee-mark-unpaid"),
    path("mark-component-paid/", views.MarkComponentPaidView.as_view(), name="fee-mark-component-paid"),
    path("mark-component-unpaid/", views.MarkComponentUnpaidView.as_view(), name="fee-mark-component-unpaid"),
    path("mark-transport-fee-paid/", views.MarkTransportFeePaidView.as_view(), name="fee-mark-transport-paid"),
    path("mark-transport-fee-unpaid/", views.MarkTransportFeeUnpaidView.as_view(), name="fee-mark-transport-unpaid"),
]
