"""
Staff Panel URL Configuration
Separate from main admin - for staff users only
"""
from django.urls import path
from . import staff_views, role_views

app_name = 'staff'

urlpatterns = [
    # Staff Login/Logout
    path('login/', staff_views.staff_login, name='login'),
    path('logout/', staff_views.staff_logout, name='logout'),
    
    # Staff Dashboard
    path('', staff_views.staff_dashboard, name='dashboard'),
    path('dashboard/', staff_views.staff_dashboard, name='dashboard'),
    path('admin/', staff_views.staff_admin_dashboard, name='admin_dashboard'),
    
    # Staff Sections
    path('products/', staff_views.staff_products, name='products'),
    path('products/bulk-action/', staff_views.staff_products_bulk_action, name='products_bulk_action'),
    path('orders/', staff_views.staff_orders, name='orders'),
    path('orders/<str:order_code>/', staff_views.staff_order_detail, name='order_detail'),
    path('analytics/', staff_views.staff_analytics, name='analytics'),
    path('ledger/', staff_views.staff_ledger, name='ledger'),
    path('ledger/export/', staff_views.staff_ledger_export, name='ledger_export'),
    path('ledger/report/', staff_views.staff_generate_report, name='generate_report'),
    path('ledger/balance-sheet/report/', staff_views.staff_generate_balance_sheet_report, name='generate_balance_sheet_report'),
    path('ledger/cash-flow/report/', staff_views.staff_generate_cash_flow_report, name='generate_cash_flow_report'),
    path('profile/', staff_views.staff_profile, name='profile'),
    path('kyc/', staff_views.staff_kyc, name='kyc'),
    path('kyc/consent-form/', staff_views.staff_consent_form, name='kyc_consent_form'),
    path('admin/staff/', staff_views.staff_manage_staff, name='manage_staff'),
    path('admin/vendors/', staff_views.staff_manage_vendors, name='manage_vendors'),
    path('admin/vendors/<int:vendor_id>/', staff_views.staff_vendor_detail, name='vendor_detail'),
    path('admin/vendors/<int:vendor_id>/payout/', staff_views.staff_trigger_vendor_payout, name='vendor_payout_trigger'),
    path('chat/', staff_views.staff_chat, name='chat'),
    
    # Product Review
    path('products/pending/', staff_views.pending_products, name='pending_products'),
    path('products/review/<int:product_id>/', staff_views.review_product, name='review_product'),
    
    # Role-Specific Dashboards
    path('accountant/', role_views.accountant_dashboard, name='accountant'),
    path('marketing/', role_views.marketing_dashboard, name='marketing'),
    path('content/', role_views.content_dashboard, name='content'),
    
    # AI Features
    path('ai-chat/', role_views.ai_voice_chat, name='ai_chat'),
    path('verification/', role_views.verification_center, name='verification'),
]
