from django.urls import path
from dashboard import superadmin_views as views

app_name = 'superadmin'

urlpatterns = [
    path('', views.SuperAdminOverviewView.as_view(), name='overview'),
    path('businesses/', views.SuperAdminBusinessListView.as_view(), name='businesses'),
    path('businesses/<uuid:business_id>/', views.SuperAdminBusinessDetailView.as_view(), name='business_detail'),
    path('businesses/<uuid:business_id>/toggle-verify/', views.SuperAdminToggleVerifyView.as_view(), name='business_toggle_verify'),
    path('businesses/<uuid:business_id>/reset-password/', views.SuperAdminResetSellerPasswordView.as_view(), name='business_reset_password'),
    path('sales/', views.SuperAdminSaleListView.as_view(), name='sales'),
    path('sales/<uuid:sale_id>/action/', views.SuperAdminSaleActionView.as_view(), name='sale_action'),
    path('orders/', views.SuperAdminOrderListView.as_view(), name='orders'),
    path('payments/', views.SuperAdminPaymentListView.as_view(), name='payments'),
    path('analytics/', views.SuperAdminAnalyticsView.as_view(), name='analytics'),
    path('settings/', views.SuperAdminSettingsView.as_view(), name='settings'),
    path('logs/', views.SuperAdminAuditLogView.as_view(), name='audit_logs'),
]
