"""
URL configuration for yoocare project.

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path, include
from django.views.generic import TemplateView
from django.contrib.auth import views as auth_views
from apps.orgs import views
from apps.carers.views import SetUpFlowOneFormView, UserProfileDetailView, FindACarerView, CarerReviewView, \
    ManagementView, UserProfileVisitorDetailView, ReviewThankYouView, EditProfileFormView, HomeView
from apps.orgs.views import OrganisationLoginView

urlpatterns = [
    path('', views.dashboard, name='org_dashboard'),  # this is the splash page

    path('find-your-staff/', views.find_your_staff, name='find_your_staff'),
    path('upload-staff/', views.UploadStaffForm.as_view(), name='upload_staff'),
    path('staff-search/', views.staff_search, name='staff_search'),  #htmx hx-get
    path('see-profile/<int:user_id>/', views.see_profile, name='see_profile'),

    path('export-reviews/', views.export_review, name='export_review'),
    path('filter-reviews/', views.filter_reviews, name='filter_reviews'),

    path('account/', views.account, name='account'),
    path("login/", OrganisationLoginView.as_view(), name="org_login"),
    path('signup/', views.org_signup, name='org_signup'),

    path('send-link-request/<int:profile_pk>/', views.send_link_request, name='send_link_request'),

    path('accept_link_request/<int:link_request_pk>/', views.accept_link_request, name='accept_link_request'),

    path('remove_staff_from_organisation/<int:profile_pk>/<int:org_pk>/', views.remove_staff_from_organisation,
         name='remove_staff_from_organisation'),
]
