from django.urls import path
from . import views as v
urlpatterns=[
    path('',v.home,name='home'),
    path('dashboard/',v.dashboard,name='dashboard'),
    path('inventory/',v.inventory,name='inventory'),
    path('orders/',v.orders,name='orders'),
    path('orders/<int:pk>/',v.order_detail,name='order_detail'),
    path('orders/<int:pk>/approve/',v.approve_order,name='approve_order'),
    path('orders/<int:pk>/status/',v.change_status,name='change_status'),
    path('orders/<int:pk>/receive/',v.receive_order,name='receive_order'),
    path('orders/<int:pk>/xlsx/',v.order_excel,name='order_excel'),
    path('notifications/',v.notifications,name='notifications'),
    path('notifications/read/',v.mark_notifications,name='mark_notifications'),
    path('catalog/',v.catalog,name='catalog'),
    path('catalog/<int:pk>/price/',v.quick_price,name='quick_price'),
    path('product/new/',v.product_edit,name='product_new'),
    path('product/<int:pk>/edit/',v.product_edit,name='product_edit'),
    path('categories/',v.categories,name='categories'),
    path('category/new/',v.category_edit,name='category_new'),
    path('category/<int:pk>/edit/',v.category_edit,name='category_edit'),
    path('branches/',v.branch_manage,name='branches'),
    path('branch/new/',v.branch_edit,name='branch_new'),
    path('branch/<int:pk>/edit/',v.branch_edit,name='branch_edit'),
    path('users/',v.user_manage,name='users'),
    path('user/new/',v.user_create,name='user_new'),
    path('user/<int:pk>/edit/',v.user_edit,name='user_edit'),
    path('user/<int:pk>/toggle/',v.user_toggle,name='user_toggle'),
    path('reports/',v.reports,name='reports'),
    path('reports/xlsx/',v.reports_excel,name='reports_excel'),
]
