from django.urls import path

from . import views
from security.views import UnifiedLoginView

app_name = "client_portal"

urlpatterns = [
    path("login/", UnifiedLoginView.as_view(), name="login"),
    path("logout/", views.portal_logout, name="logout"),
    path("", views.dashboard, name="dashboard"),
    path("servicos/", views.service_list, name="services"),
    path("servicos/<int:pk>/", views.service_detail, name="service_detail"),
    path("monitorizacao/", views.monitoring_status, name="monitoring"),
    path("renovacoes/", views.renewal_list, name="renewals"),
    path("pagamentos/", views.payment_list, name="payments"),
    path("pagamentos/<int:pk>/comprovativo/", views.payment_proof, name="payment_proof"),
    path("documentos/", views.document_list, name="documents"),
    path("documentos/<int:pk>/descarregar/", views.document_download, name="document_download"),
    path("perfil/", views.profile, name="profile"),
    path("notificacoes/", views.notification_center, name="notifications"),
    path("tickets/", views.ticket_list, name="tickets"),
    path("tickets/novo/", views.ticket_create, name="ticket_create"),
    path("tickets/<int:pk>/", views.ticket_detail, name="ticket_detail"),
    path("tickets/<int:pk>/resolver/", views.ticket_resolve, name="ticket_resolve"),
    path("tickets/<int:pk>/reabrir/", views.ticket_reopen, name="ticket_reopen"),
    path("tickets/anexo/<int:pk>/", views.ticket_attachment, name="ticket_attachment"),
]
