from django.urls import path
from .api_views import (
    SiteSettingsView,
    SocialLinkListView,
    SEODataListView,
    HeroSlideListView,
    CompanyStatListView,
    WhyChooseUsListView,
    ServiceListView,
    ServiceDetailView,
    ServiceCategoryListView,
    ProjectListView,
    ProjectDetailView,
    ProjectCategoryListView,
    TechnologyListView,
    BlogPostListView,
    BlogPostDetailView,
    BlogCategoryListView,
    JobListView,
    JobDetailView,
    JobApplicationCreateView,
    ContactMessageCreateView,
    ProjectInquiryCreateView,
    TeamMemberListView,
    TestimonialListView,
    NewsletterSubscribeView,
    FAQListView,
    FAQCategoryListView,
)

urlpatterns = [
    # Core & Settings
    path('settings/', SiteSettingsView.as_view(), name='site-settings'),
    path('social-links/', SocialLinkListView.as_view(), name='social-links'),
    path('seo/', SEODataListView.as_view(), name='seo-data'),

    # Pages & Home components
    path('hero-slides/', HeroSlideListView.as_view(), name='hero-slides'),
    path('stats/', CompanyStatListView.as_view(), name='company-stats'),
    path('why-choose-us/', WhyChooseUsListView.as_view(), name='why-choose-us'),

    # Services
    path('services/', ServiceListView.as_view(), name='service-list'),
    path('services/<slug:slug>/', ServiceDetailView.as_view(), name='service-detail'),
    path('service-categories/', ServiceCategoryListView.as_view(), name='service-categories'),

    # Portfolio & Projects
    path('portfolio/', ProjectListView.as_view(), name='project-list'),
    path('portfolio/<slug:slug>/', ProjectDetailView.as_view(), name='project-detail'),
    path('projects/', ProjectListView.as_view(), name='project-list-alias'),
    path('projects/<slug:slug>/', ProjectDetailView.as_view(), name='project-detail-alias'),
    path('portfolio-categories/', ProjectCategoryListView.as_view(), name='project-categories'),
    path('technologies/', TechnologyListView.as_view(), name='technologies'),

    # Blog
    path('blog/', BlogPostListView.as_view(), name='blog-list'),
    path('blog/<slug:slug>/', BlogPostDetailView.as_view(), name='blog-detail'),
    path('blog-categories/', BlogCategoryListView.as_view(), name='blog-categories'),

    # Careers
    path('careers/', JobListView.as_view(), name='job-list'),
    path('careers/<slug:slug>/', JobDetailView.as_view(), name='job-detail'),
    path('careers/apply/', JobApplicationCreateView.as_view(), name='job-apply'),

    # Contact & CRM
    path('contact/', ContactMessageCreateView.as_view(), name='contact-submit'),
    path('quote/', ProjectInquiryCreateView.as_view(), name='quote-submit'),

    # Team, Testimonials, Newsletter, FAQs
    path('team/', TeamMemberListView.as_view(), name='team-list'),
    path('testimonials/', TestimonialListView.as_view(), name='testimonial-list'),
    path('newsletter/subscribe/', NewsletterSubscribeView.as_view(), name='newsletter-subscribe'),
    path('faqs/', FAQListView.as_view(), name='faq-list'),
    path('faq-categories/', FAQCategoryListView.as_view(), name='faq-categories'),
]
