from django.urls import path
from .views import product_list, product_detail, product_overview
from . import views
from .views import get_products_by_brands

urlpatterns = [
    path('', product_overview, name='product_overview'),
    path("products/<slug:brand_slug>/", product_list, name="miavit_products"),
    path("products/<slug:brand_slug>/", product_list, name="koudijs_products"),
    path("miavit/", product_list, {"brand_slug": "miavit"}, name="miavit_products"),
    path("animal-nutrition/", product_list, {"brand_slug": "miavit"}, name="product_list"),
    path('products/<slug:brand_slug>/<slug:category_slug>/<slug:product_slug>/', views.product_detail, name='product_detail'),
    path("koudijs/", product_list, {"brand_slug": "koudijs"}, name="koudijs_products"),
    path("premixes/", views.premixes, name="premixes"),
    path('products/<slug:category_slug>/', views.product_list, name='product_list'),
    path("raw-materials/", views.raw_materials, name="raw_materials"),
    path("feed_protection/", views.feed_protection, name="feed_protection"),
    path("Toxin_management/", views.Toxin_management, name="Toxin_management"),
    path("liver_support/", views.liver_support, name="liver_support"),
    path("energy_suppliments/", views.energy_suppliments, name="energy_suppliments"),
    path("growth_support/", views.growth_support, name="growth_support"),
    path("get-products-by-brands/", get_products_by_brands, name="get_products_by_brands"),
    path('animal-nutrition/', product_list, name='animal_nutrition'),
    path('products/', product_overview, name='product_overview'),
    path('products/<slug:brand_slug>/<slug:category_slug>/<slug:product_slug>/', product_detail, name='product_detail'),
]
