# parents/urls.py
from django.urls import path
from django.contrib.auth import views as auth_views
from . import views

app_name = 'parents'

urlpatterns = [
    # Authentication
    path('login/', views.ParentLoginView.as_view(), name='parent_login'),
    path('logout/', auth_views.LogoutView.as_view(next_page='parents:parent_login'), name='parent_logout'),
    
    # Dashboard
    path('', views.ParentDashboardView.as_view(), name='parent_dashboard'),
    
    # Student Views
    path('student/<int:pk>/', views.ParentStudentDetailView.as_view(), name='parent_student_detail'),
    path('student/<int:pk>/attendance/', views.ParentStudentAttendanceView.as_view(), name='parent_student_attendance'),
    path('student/<int:pk>/fees/', views.ParentStudentFeesView.as_view(), name='parent_student_fees'),
    path('student/<int:pk>/reports/', views.ParentStudentReportsView.as_view(), name='parent_student_reports'),
    
    # Messages
    path('messages/', views.ParentMessagesView.as_view(), name='parent_messages'),
    path('messages/<int:pk>/', views.ParentMessageDetailView.as_view(), name='parent_message_detail'),
    
    # Profile
    path('profile/', views.ParentProfileView.as_view(), name='parent_profile'),
    path('profile/edit/', views.ParentProfileEditView.as_view(), name='parent_profile_edit'),
]