from django.urls import path

# from system.base_views import views_Message
from system.base_views import views_Message
from system.base_views.view_graph import (
    Chart_2_View, Chart_1_View, ParentChildrenDatatableView,
    Parent_Children_List_View
)
from system.base_views.views_Banner import BannerCreateView, BannerListView, BannerDatatableView, BannerUpdateView, \
    BannerDeleteView, List_Banner_show_View
from system.base_views.views_Click import ClickedOnTablighView, ClickDatatableView, ShowClick
from system.base_views.views_Malli import (
    IncreaseBalanceView, dargah_test_part_1, HistoryMaliDatatableView,
    HistoryMaliListView, MoveDaramad2KifView, PerfectMoneyFailed, ConfirmBalanceView
)
from system.base_views.views_Message import \
    (
    MessageListview, Message_show_view, NewTicketCreateView,
    TicketDatatableView, TicketListView, ToggleTicketStateView, ListTicketMessaesView)
from system.base_views.views_Message import NewMessageCreateView
from system.base_views.views_Pelan import (
    PelanCreateView, PelanUpdateView, PelanDeleteView, PelanListView,
    PelanDatatableView, PlanReportsView
)
from system.base_views.views_Tabligh import (
    TablighCreateView, TablighUpdateView, TablighDeleteView, TablighListView,
    TablighDatatableView,
    PublishShowView, TablighPreviewView, PublishTablighView, MotashershodeDatatableView, Montashshodeha,
    ActivateTablighView
)
from system.base_views.views_Tanzimat_Paye import (
    ActiveCodeMoarefView, SodeModirView, MaxCountNetworkLevel,
    LeastBalanceRequiredView, ClickIsChangeAbleView,
    ChangeTitlesView, UpdatePerfectMoneyField,
    some_of_tanzimatpaye_view)
from system.base_views.views_Tanzimat_Paye import (
    Languge_siteView, Count_Level_networkView, Count_kharid_hadaghalView,
    Time_kharid_termView,
    Taien_meghdar_matlabView, Show_amar_foruserView, Taeid_khodkar_tablighView, Vahed_poll_siteView,
    Count_visit_tablighView, Taein_hadaghal_etbarView,
    Amar_jaali_View, Count_Level_networkDataTableView, Count_Level_networkDeleteView, Count_Level_networkUpdateView
)
from system.base_views.views_User import RedirectToUserUpdate, ToggleAdminStateView
from system.base_views.views_User import (
    UserCreateView, UserUpdateView, login_user, logout_user, UserListView,
    UserDeleteView, UserDatatableView, ChangeUserPasswordView,
    ProfileUserView
)
from system.base_views.views_Moshahedat import MessageListmoshahedeview, Message_show_moshahedeview
from system.base_views.views_infopm import (
    InfoPm, InpopmDatatableView, InpopmrListView, InfopmDeleteView,
    InfopmUpdateView
)
from system.views import Dashboard

urlpatterns = [
    path('login/', login_user, name='login'),
    path('dashboard/', Dashboard.as_view(), name="dashboard"),
    path('logout/', logout_user, name='logout'),
    path('CreateUser/', UserCreateView.as_view(), name='CreateUser'),
    path('UpdateUser/<int:pk>', UserUpdateView.as_view(), name='UpdateUser'),
    path('UpdateUser/', RedirectToUserUpdate.as_view(), name='UpdateUser'),
    path('DeleteUser/<int:pk>', UserDeleteView.as_view(), name='DeleteUser'),
    path('ListUser/', UserListView.as_view(), name='ListUser'),
    path('UserDatatable/', UserDatatableView.as_view(), name='UserDatatable'),
    path('ChangeUserPassword/', ChangeUserPasswordView.as_view(), name='ChangeUserPassword'),
    path('ProfileUser/', ProfileUserView.as_view(), name='ProfileUser'),
    path('ToggleAdminState/<int:id>', ToggleAdminStateView.as_view(), name='ToggleAdminState'),
    # ---- Pelan
    path('CreatePelan/', PelanCreateView.as_view(), name='CreatePelan'),
    path('UpdatePelan/<int:pk>', PelanUpdateView.as_view(), name='UpdatePelan'),
    path('DeletePelan/<int:pk>', PelanDeleteView.as_view(), name='DeletePelan'),
    path('ListPelan/', PelanListView.as_view(), name='ListPelan'),
    path('PelanDatatable/', PelanDatatableView.as_view(), name='PelanDatatable'),
    path('PlanReports/', PlanReportsView.as_view(), name='PelanReportDatatable'),
    # ---- Tabligh
    path('CreateTabligh/', TablighCreateView.as_view(), name='CreateTabligh'),
    path('UpdateTabligh/<int:pk>', TablighUpdateView.as_view(), name='UpdateTabligh'),
    path('DeleteTabligh/<int:pk>', TablighDeleteView.as_view(), name='DeleteTabligh'),
    path('ListTabligh/', TablighListView.as_view(), name='ListTabligh'),
    path('ActivateTablighView/', ActivateTablighView.as_view(), name='ActivateTablighView'),
    path('TablighDatatable/', TablighDatatableView.as_view(), name='TablighDatatable'),
    path('EntesharDatatable/', MotashershodeDatatableView.as_view(), name='MontashshodeDatatable'),
    path('PreviewTabligh/<tabligh_token>', TablighPreviewView.as_view(), name='PreviewTabligh'),
    path('PublishTabligh/<tabligh_token>', PublishTablighView.as_view(), name='PublishTabligh'),
    path('PublishShow/', PublishShowView.as_view(), name='ShowTablighs'),
    path('Montashshodeha/', Montashshodeha.as_view(), name='Montashshodeha'),
    # ---- TanzimatPaye
    path('ActiveCodeMoaref/', ActiveCodeMoarefView.as_view(), name='ActiveCodeMoaref'),
    #path('ClickIsChangeAble/', ClickIsChangeAbleView.as_view(), name='ClickIsChangeAble'),
    path('ClickIsChangeAble/', some_of_tanzimatpaye_view.as_view(), name='ClickIsChangeAble'),
    path('LeastBalanceRequired/', LeastBalanceRequiredView.as_view(), name='LeastBalanceRequired'),
    path('TedadSathShabake/', Count_Level_networkView.as_view(), name='TedadSathShabake'),
    path('SodeModir/', SodeModirView.as_view(), name='SodeModir'),
    path('Languge_site/', Languge_siteView.as_view(), name='Languge_site'),
    path('WebsiteTitle/', ChangeTitlesView.as_view(), name='WebsiteTitle'),
    path('updateperfectmoneyfield/', UpdatePerfectMoneyField.as_view(), name='UpdatePerfectMoneyField'),
    # datatable count level network
    path('Count_Level_networkDataTable/', Count_Level_networkDataTableView.as_view(),
         name='Count_Level_networkDataTable'),
    path('Count_Level_networkDelete/<int:pk>', Count_Level_networkDeleteView.as_view(),
         name='Count_Level_networkDelete'),
    path('Count_Level_networkUpdate/<int:pk>', Count_Level_networkUpdateView.as_view(),
         name='Count_Level_networkUpdate'),
    path('Count_Level_networkView/', Count_Level_networkView.as_view(), name='Count_Level_networkView'),
    path('Max_Count_Level_networkView/', MaxCountNetworkLevel.as_view(), name='Max_Count_Level_networkView'),
    path('Count_kharid_hadaghalView/', Count_kharid_hadaghalView.as_view(), name='Count_kharid_hadaghalView'),
    path('Time_kharid_termView/', Time_kharid_termView.as_view(), name='Time_kharid_termView'),
    path('Taien_meghdar_matlabView/', Taien_meghdar_matlabView.as_view(), name='Taien_meghdar_matlabView'),
    path('Show_amar_foruserView/', Show_amar_foruserView.as_view(), name='Show_amar_foruserView'),
    path('Taeid_khodkar_tabligh/', Taeid_khodkar_tablighView.as_view(), name='Taeid_khodkar_tabligh'),
    path('Vahed_poll_site/', Vahed_poll_siteView.as_view(), name='Vahed_poll_site'),
    path('Count_visit_tabligh/', Count_visit_tablighView.as_view(), name='Count_visit_tabligh'),
    path('Count_visit_tabligh/', Count_visit_tablighView.as_view(), name='Count_visit_tabligh'),
    path('Taein_hadaghal_etbar/', Taein_hadaghal_etbarView.as_view(), name='Taein_hadaghal_etbar'),
    path('Amar_jaali/', Amar_jaali_View.as_view(), name='Amar_jaali'),
    # ---- messages
    path('MessageList/', MessageListview.as_view(), name='MessageList'),
    path('Message_show_view/<int:pk>', Message_show_view.as_view(), name='Message_show_view'),
    path('NewMessageCreate/', NewMessageCreateView.as_view(), name='NewMessageCreate'),
    # ---- tickets
    path('NewTicketCreate/', NewTicketCreateView.as_view(), name='NewTicketCreate'),
    path('ListTickets/', TicketListView.as_view(), name='TicketListView'),
    path('ListTicketMessaes/<int:id>', ListTicketMessaesView.as_view(), name='ListTicketMessaes'),
    path('ListTicketsDataTable/', TicketDatatableView.as_view(), name='ListTicketsDataTable'),
    path('ToggleTicketState/<int:id>', ToggleTicketStateView.as_view(), name='ToggleTicketState'),
    # ---- ajax
    path('save_message/', views_Message.save_message, name='save_message'),
    # ---- MALLI
    path('increase_balance/', IncreaseBalanceView.as_view(), name='increase_balance'),
    path('virtual_bank_verification1/', dargah_test_part_1),
    path('HistoryMali/', HistoryMaliListView.as_view(), name='HistoryMaliList'),
    path('HistoryMaliDatatable/', HistoryMaliDatatableView.as_view(), name='HistoryMaliDatatable'),
    path('move_2_kif/', MoveDaramad2KifView.as_view(), name='MoveDaramad2Kif'),
    path('perfect_money_F', PerfectMoneyFailed.as_view(), name="PerfectMoneyF"),
    path('ConfirmBalanceView', ConfirmBalanceView.as_view(), name="ConfirmBalanceView"),
    # ---- Click
    path('click/<enteshartoken>', ClickedOnTablighView.as_view(), name='clicked_on_tabligh'),
    path('showclicks/', ShowClick.as_view(), name='show_click'),
    path('clickdatatable/', ClickDatatableView.as_view(), name='clickdatatable'),

    # Moshahedat
    path('MessageListmoshahede/', MessageListmoshahedeview.as_view(), name='MessageListmoshahede'),
    path('Message_show_moshahede/<int:pk>', Message_show_moshahedeview.as_view(), name='Message_show_moshahede'),

    # ---- Chart
    path('ChartOfNetwork2', Chart_2_View.as_view(), name="Chart_2"),
    path('ChartOfNetwork', Chart_1_View.as_view(), name="Chart_1"),
    path('parent_children/', ParentChildrenDatatableView.as_view(), name='Parent_Children_D'),
    path('parent_children_list/', Parent_Children_List_View.as_view(), name='Parent_Children'),
    # ---- Infopm
    path('Create_InfoPm/', InfoPm.as_view(), name='Create_InfoPm'),
    path('InpopmrList/', InpopmrListView.as_view(), name='InpopmrListView'),
    path('InpopmDatatable/', InpopmDatatableView.as_view(), name='InpopmDatatable'),
    path('DeleteInfopm/<int:pk>', InfopmDeleteView.as_view(), name='DeleteInfopm'),
    path('InfopmUpdate/<int:pk>', InfopmUpdateView.as_view(), name='InfopmUpdate'),
    # ---- Banners
    path('Create_Banner/', BannerCreateView.as_view(), name='Create_Banner'),
    path('List_Banner/', BannerListView.as_view(), name='List_Banner'),
    path('List_Banner_Datatable/', BannerDatatableView.as_view(), name='List_Banner_Datatable'),
    path('UpdateBanner/<int:pk>', BannerUpdateView.as_view(), name='UpdateBanner'),
    path('DeleteBanner/<int:pk>', BannerDeleteView.as_view(), name='DeleteBanner'),
    path('List_Banner_show/', List_Banner_show_View.as_view(), name='List_Banner_show'),

]
