from django.urls import path

from .views import LocationListView
from django.views.generic import TemplateView
from .views import (
    LocationAnalytics,
    ReviewListLocationWise,
    ReviewAnalyticsGraph,
    StaffLeaderBoard,
    SyncStaffLeaderBoard,
    StaffDelete,
    AllLocationSummary,
    ReviewAnalysis,
    ReviewAnalysisAllPlatformView,
)

urlpatterns = [
    path('', LocationListView.as_view(), name='location-list'),
    path('analytics/<str:location_id>', LocationAnalytics.as_view(), name='location-analytics-man'),
    path('reviews/<platform>/<str:location_id>', ReviewListLocationWise.as_view(), name='location-wise-review-list-man'),
    path('graph/<str:location_id>', ReviewAnalyticsGraph.as_view(), name='location-analytics-graph-man'),
    path('graphs/all_location', AllLocationSummary.as_view(), name='all-location-graph-man'),
    path('graphs/review-analysis', ReviewAnalysis.as_view(), name='review-summary-all'),
    path('staff/<str:location_id>', StaffLeaderBoard.as_view(), name='staff-leaderboard-man'),
    path('staff/delete/<staff_id>', StaffDelete.as_view(), name='staff-delete-man'),
    path('sync-staff-list/<str:location_id>', SyncStaffLeaderBoard.as_view(), name='sync-staff-list-man'),
    path('review-analysis/', ReviewAnalysisAllPlatformView.as_view(), name='review-analysis-all-platform'),
]