from django.urls import path

from pages.views import (
    AboutView,
    CareersView,
    DataDeletionPolicyView,
    PrivacyPolicyView,
    ScaleCheckoutView,
    StartupCheckoutView,
    TeamView,
    TermsOfServiceView,
)
from .views import PricingView, SupportView, ContactView, BlogIndexView, BlogPostView, PrequalifyView

# Keep names consistent with pages app so existing {% url 'proprietary:...'%} still work
app_name = "proprietary"

urlpatterns = [
    path("pricing/", PricingView.as_view(), name="pricing"),
    path("qualify/", PrequalifyView.as_view(), name="prequalify"),
    path("support/", SupportView.as_view(), name="support"),
    path("contact/", ContactView.as_view(), name="contact"),
    path("about/", AboutView.as_view(), name="about"),
    path("team/", TeamView.as_view(), name="team"),
    path("careers/", CareersView.as_view(), name="careers"),
    path("tos/", TermsOfServiceView.as_view(), name="tos"),
    path("privacy/", PrivacyPolicyView.as_view(), name="privacy"),
    path("data-deletion/", DataDeletionPolicyView.as_view(), name="data_deletion"),
    path("subscribe/startup/", StartupCheckoutView.as_view(), name="startup_checkout"),
    path("subscribe/pro/", StartupCheckoutView.as_view(), name="pro_checkout"),
    path("subscribe/scale/", ScaleCheckoutView.as_view(), name="scale_checkout"),

    # Blog URLs
    path("blog/", BlogIndexView.as_view(), name="blog_index"),
    path("blog/<slug:slug>/", BlogPostView.as_view(), name="blog_post"),
]
