"""Public website URLs (under ``/en/``, ``/ar/``, …)."""

from django.urls import path, register_converter

from mainapp.url_converters import ServiceSlugConverter

register_converter(ServiceSlugConverter, "svcslug")

from mainapp.controllers.website_controller import (
    website_about,
    website_blog_detail,
    website_blogs,
    website_before_after,
    website_contact,
    website_contact_submit,
    website_gallery,
    website_home,
    website_offer_detail,
    website_offers,
    website_media,
    website_projects,
    website_products,
    website_product_category,
    website_product_detail,
    website_service_detail,
    website_services,
    website_thank_you,
    website_videos,
)

urlpatterns = [
    path("", website_home, name="website_home"),
    path("about-us/", website_about, name="website_about_us"),
    path("services/", website_services, name="website_services"),
    path("products/", website_products, name="website_products"),
    path("products/category/<svcslug:category_slug>/", website_product_category, name="website_product_category"),
    path("products/<svcslug:product_slug>/", website_product_detail, name="website_product_detail"),
    path("offers/", website_offers, name="website_offers"),
    path("offers/<svcslug:offer_slug>/", website_offer_detail, name="website_offer_detail"),
    path("services/<svcslug:service_slug>/", website_service_detail, name="website_service_detail"),
    path("contact-us/", website_contact, name="website_contact_us"),
    path("contact/submit/", website_contact_submit, name="website_contact_submit"),
    path("thank-you/", website_thank_you, name="website_thank_you"),
    path("blogs/", website_blogs, name="website_blogs"),
    path("blogs/<svcslug:blog_slug>/", website_blog_detail, name="website_blog_detail"),
    path("media/", website_media, name="website_media"),
    path("gallery/", website_gallery, name="website_gallery"),
    path("before-after/", website_before_after, name="website_before_after"),
    path("videos/", website_videos, name="website_videos"),
    path("projects/", website_projects, name="website_projects"),
]
