from django.urls import path
from . import views

urlpatterns = [
    path('', views.IndexView.as_view(), name='index'),
    
    # Fleet
    path('fleet/', views.FleetListView.as_view(), name='fleet_list'),
    path('fleet/<int:pk>/', views.FleetDetailView.as_view(), name='fleet_detail'),
    path('fleet/add/', views.FleetCreateView.as_view(), name='fleet_add'),
    path('fleet/<int:pk>/edit/', views.FleetUpdateView.as_view(), name='fleet_edit'),
    
    # Maintenance
    path('maintenance/', views.MaintenanceListView.as_view(), name='maintenance_list'),
    path('maintenance/<int:pk>/', views.MaintenanceDetailView.as_view(), name='maintenance_detail'),
    path('maintenance/add/', views.MaintenanceCreateView.as_view(), name='maintenance_add'),
    path('maintenance/<int:pk>/edit/', views.MaintenanceUpdateView.as_view(), name='maintenance_edit'),
    path('maintenance/<int:pk>/process/', views.MaintenanceProcessView.as_view(), name='maintenance_process'),
    path('maintenance/<int:pk>/complete/', views.MaintenanceCompleteView.as_view(), name='maintenance_complete'),
    path('maintenance/<int:pk>/pdf/', views.MaintenancePDFView.as_view(), name='maintenance_pdf'),
    
    # Breakdown
    path('breakdown/', views.BreakdownListView.as_view(), name='breakdown_list'),
    path('breakdown/add/', views.BreakdownCreateView.as_view(), name='breakdown_add'),
    
    # Part Request
    path('part-request/', views.PartRequestListView.as_view(), name='part_request_list'),
    path('part-request/add/', views.PartRequestCreateView.as_view(), name='part_request_add'),
]