from django.urls import path, include
from .views import *
from .forms import *
from django.contrib.auth import views
from django.conf.urls.static import static
from django.conf import settings
urlpatterns = [
    path('', hoshomeview, name='hoshome'),
    path('about/', aboutview, name='habout'),
    path('mission/', missionview, name='hmission'),
    path('facilities/', facilitiesview, name='hfacilities'),
    path('hcontact/', hcontactview, name='hcontact'),
    path('hactivities/', hactivitiesview, name='hactivities'),
    path('hactivities/<int:id>/', hactivitydetailview, name='hactivitydetails'),
    path('doctors/', hdoctorview, name='hdoctors'),
    path('register/', CustomerRegistrationView.as_view(), name='register'),
    # path('login/', views.LoginView.as_view(template_name='login.html', authentication_form=LoginForm), name='login'),
    path('login/', login_view, name='login'),
    path('dr/', doctor_login_view, name='doctor_login'),
    path('logout/', views.LogoutView.as_view(), name='logout'),
    path('editprofile/', EditProfileview.as_view(), name="editprofile"),
    path('seeprofile/', seeprofile, name="seeprofile"),
    # path('passwordchange/', views.PasswordChangeView.as_view(template_name='passwordchange.html', form_class=MyPasswordChangeForm), name='passwordchange'),
    path("password_change/done/", views.PasswordChangeDoneView.as_view(template_name='passwordchangedone.html'), name="password_change_done"),
    
    # path('passwordchange/', views.PasswordChangeView.as_view(template_name='passwordchange.html', form_class=MyPasswordChangeForm), name='passwordchange'),
    path("password_change/done/", views.PasswordChangeDoneView.as_view(template_name='passwordchangedone.html'), name="password_change_done"),
    # path("password_reset/", views.PasswordResetView.as_view(template_name='passwordreset.html', form_class=MyPasswordResetForm), name="password_reset"),
    path("password_reset/done/", views.PasswordResetDoneView.as_view(template_name='passwordresetdone.html'),name="password_reset_done"),
    # path("reset/<uidb64>/<token>/", views.PasswordResetConfirmView.as_view(template_name='passwordresetconfirm.html', form_class=MySetPasswordForm),name="password_reset_confirm"),
    path("reset/done/", views.PasswordResetCompleteView.as_view(template_name='passwordresetcomplete.html'),
        name="password_reset_complete"),
    path('superuser/dashboard/', superuser_dashboard, name='superuser_dashboard'),
    path('patient/dashboard/', patient_dashboard, name='patient_dashboard'),
    path('patient/book/<int:doctor_id>/<int:availability_id>/', book_appointment, name='book_appointment'),
    path('patient/appointment/delete/<int:doctor_id>/<int:availability_id>/', delete_appointment, name='delete_appointment'),
    path('doctor/dashboard/', doctor_dashboard, name='doctor_dashboard'),
    path('prescription/detail/<int:prescription_id>/', prescription_detail, name='prescription_detail'),
    path('prescription/create/<int:appointment_id>/', create_or_edit_prescription, name='create_prescription'),
    path('prescription/edit/<int:prescription_id>/', create_or_edit_prescription, name='edit_prescription'),
    path('prescription/delete/<int:prescription_id>/', delete_prescription, name='delete_prescription'),
    path('uploadReport/<int:id>/', upload_test_report, name='upload_test_report'),
    path('redirect/', custom_redirect, name='custom_redirect'),
    path('verify-registration/', verify_registration_otp, name='verify_registration_otp'),
    path('verify-login/', verify_login_otp, name='verify_login_otp'),
    path('autocomplete/symptoms/', symptom_suggestions, name='symptom_suggestions'),
    path('autocomplete/instructions/', instruction_suggestions, name='instruction_suggestions'),
    path('autocomplete/on_examination/', on_examination_suggestions, name='on_examination_suggestions'),
    path('autocomplete/tests/', autocomplete_tests, name='autocomplete_tests'),
    path("autocomplete/inst/", autocomplete_instructions, name="autocomplete_instructions"),
    path("duration-suggestions/", duration_suggestions, name="duration_suggestions"),
    path('update-patient/<int:pk>/', update_patient, name='update_patient'),
    path('robots.txt', robot_view, name='robots'),
]