from django.urls import path, include
from django.contrib.auth.views import LogoutView
from . import views

app_name = "admin_frontend"

urlpatterns = [
    path("login/", views.SiteLoginView.as_view(template_name="admin_frontend/login.html"), name="login"),
    path("logout/", LogoutView.as_view(next_page="/webadmin/login/"), name="logout"),

    path("", views.dashboard, name="dashboard"),
    path("profiles/", views.profiles_list, name="profiles_list"),
    path("profiles/new/", views.profile_create, name="profile_create"),
    path("profiles/<int:pk>/edit/", views.profile_edit, name="profile_edit"),
    path("profiles/<int:pk>/delete/", views.profile_delete, name="profile_delete"),
    path("opportunities/", views.opportunities_list, name="opportunities_list"),
    path("opportunities/<int:pk>/edit/", views.opportunity_edit, name="opportunity_edit"),
    path("opportunities/<int:pk>/delete/", views.opportunity_delete, name="opportunity_delete"),
    path("introduction-requests/", views.introduction_requests_list, name="intro_requests_list"),
    path("introduction-requests/new/", views.intro_request_create, name="intro_request_create"),
    path("introduction-requests/<int:pk>/edit/", views.intro_request_edit, name="intro_request_edit"),
    path("introduction-requests/<int:pk>/delete/", views.intro_request_delete, name="intro_request_delete"),

    path("leaderboard/", views.leaderboard, name="leaderboard"),
    path("profiles/<int:pk>/toggle-verify/", views.profile_toggle_verify, name="profile_toggle_verify"),
    path("introduction-requests/<int:pk>/accept/", views.intro_request_accept, name="intro_request_accept"),

    # Recycle Core UI moved to recycle_core app under /webadmin/recycle/
]
