from django.urls import path
from . import views
from . import views_chatbot
from django.views.i18n import set_language

urlpatterns = [
    path("", views.index, name="index"),
    path("about/", views.about, name="about"),
    path('gioi-thieu/', views.about, name='gioi-thieu'),
    path("career/<int:career_id>/", views.career, name="career"),
    path("careers/", views.careers, name="careers"),
    path('tuyen-dung/', views.careers, name='tuyen-dung'),
    path("contact/", views.contact, name="contact"),
    path("lien-he/", views.contact, name="lien-he"),
    path("tu-van/", views.form_submit_product, name="form-submit-product"),
    path("blog/tim-kiem/", views.blog_search, name="blog_search"),
    path("blog/bai-viet/<int:id_bai_viet>/", views.blog_post, name="blog_post"),
    path("blog/the-loai/<int:id_the_loai>/", views.blog, name="blog"),
    path("blog/", views.blog, name="blog"),
    path('imei_check_online/', views.display_image, name='imei_check_online'),
    # path("blog-fake-data/<int:count>/", views.blog_fake_data, name="blog_fake_data"),
    path("noti/", views.noti, name="noti"),
    path("noti/<int:post_id>/", views.noti_post, name="noti_post"),
    # path("news/", views.news, name="news"),
    path("news/<int:news_id>/", views.news_detail, name="news_detail"),
    path('products/binh-bom/<int:product_id>/', views.product_binhbom, name='product_binhbom'),
    path('products/<int:product_id>/', views.product_detail, name='product_detail'),
    path("products/", views.products, name="products"),
    path('product/', views.products, name='product'),
    path('form/', views.form_submit, name='form_submit'),
    path('i18n/', set_language, name='set_language'),
    path('api/chatbot/', views_chatbot.chatbot_api, name='chatbot_api'),
] 
