from django.urls import path
from dashboard import views
app_name = 'dashboard'
urlpatterns = [
    path('', views.OverviewView.as_view(), name='overview'),
    # Products
    path('products/', views.ProductListView.as_view(), name='product_list'),
    path('products/create/', views.ProductCreateView.as_view(), name='product_create'),
    path('products/<uuid:product_id>/edit/', views.ProductEditView.as_view(), name='product_edit'),
    path('products/<uuid:product_id>/delete/', views.ProductDeleteView.as_view(), name='product_delete'),
    path('products/images/<uuid:image_id>/delete/', views.ProductImageDeleteView.as_view(), name='product_image_delete'),
    # Sales
    path('sales/', views.SaleListView.as_view(), name='sale_list'),
    path('sales/create/', views.SaleCreateView.as_view(), name='sale_create'),
    path('sales/<uuid:sale_id>/', views.SaleManageView.as_view(), name='sale_manage'),
    path('sales/<uuid:sale_id>/edit/', views.SaleEditView.as_view(), name='sale_edit'),
    # Orders
    path('orders/', views.OrderListView.as_view(), name='order_list'),
    path('orders/<uuid:order_id>/', views.OrderDetailView.as_view(), name='order_detail'),
    # Analytics & Settings
    path('analytics/', views.AnalyticsView.as_view(), name='analytics'),
    path('settings/', views.SettingsView.as_view(), name='settings'),
    path('settings/payout/', views.PayoutSettingsView.as_view(), name='payout_settings'),
    path('settings/delivery/', views.DeliveryOptionView.as_view(), name='delivery_settings'),
    path('settings/delivery/<uuid:option_id>/delete/', views.DeliveryOptionDeleteView.as_view(), name='delivery_delete'),
]