from django.urls import path
from hub.views import site

urlpatterns = [
    path(
        "roles/",
        site.roles.as_view(),
        name="hub_roles",
    ),
    path(
        "users/",
        site.users.as_view(),
        name="hub_users",
    ),
    path(
        "user/create/",
        site.userCreate.as_view(),
        name="hub_user_create",
    ),
    path(
        "role/create/",
        site.roleCreate.as_view(),
        name="hub_role_create",
    ),
    path(
        "role/detail/<id>",
        site.roleDetail.as_view(),
        name="hub_role_detail",
    ),
    path(
        "user/detail/<id>",
        site.userDetail.as_view(),
        name="hub_user_detail",
    ),
    path(
        "franchisees/",
        site.HubOrganisationListView.as_view(),
        name="hub_franchisees",
    ),
    path(
        "franchisee/create/",
        site.HubFranchiseeCreateView.as_view(),
        name="hub_franchisee_create",
    ),
    path(
        "franchisee/detail/<id>",
        site.HubFranchiseeDetailedView.as_view(),
        name="hub_franchisee_detail",
    ),
    path(   
        "producers/",
        site.HubProducerListView.as_view(),
        name="hub_producers",
    ),
    path(
        "producer/detail/<id>",
        site.HubProducerDetailedView.as_view(),
        name="hub_producer_detail",
    ),
    path(
        "producer/<pid>/sku/detail/<skuid>",
        site.HubSKUDetailedView.as_view(),
        name="hub_sku_detail",
    ),
    path(
        "sku/detail/<uid>",
        site.HubSKUListDetailedView.as_view(),
        name="hub_sku_list_detail",
    ),
    path(
        "skus/",
        site.HubSKUListView.as_view(),
        name="hub_skus",
    ),
    path(
        "stock/organisation/list",
        site.HubStockOrganisationListView.as_view(),
        name="stock_organisation_list",
    ),
     path(
        "sku/create",
        site.HubSKUCreateView.as_view(),
        name="hub_sku_create",
    ),
     path(
        "logistics/routing/list/",
        site.HubLogisticsRoutingListView.as_view(),
        name="hub_logistics_routing",
    ),
    path(
        "logistics/routing/<id>/detail",
        site.HubLogisticsRoutingDetailedView.as_view(),
        name="hub_logistics_routing_detail",
    ),
    path(
        "logistics/routing/qr_code/<uid>",
        site.HubLogisticsRoutingQRCode.as_view(),
        name="hub_logistics_routing_qr_code",
    ),


]
