from django.urls import path, include
from . import views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
    path('', views.index, name="index"),
    path('products', views.allproducts, name="allproducts"),
    #     path('googlegiftcard',views.googlegiftcard,name="googlegiftcard"),
    #     path('freediamonds',views.freediamonds,name="freediamonds"),
    #     path('giftcard',views.giftcard,name="giftcard"),
    #     path('gamestopup',views.gamestopup,name="gamestopup"),
    #     path('discountpromo',views.discountpromo,name="discountpromo"),
    path('category/<str:category_slug>', views.category, name="category"),
    path('product/<str:subcategory>', views.product, name="product"),
    path('searchkey', views.searchkey, name="searchkey"),
    path('cart/add/<int:id>/', views.cart_add, name='cart_add'),
    path('cart/item_clear/<int:id>/', views.item_clear, name='item_clear'),
    path('cart/item_increment/<int:id>/',
         views.item_increment, name='item_increment'),
    path('cart/item_decrement/<int:id>/',
         views.item_decrement, name='item_decrement'),
    path('cart/cart_clear/', views.cart_clear, name='cart_clear'),
    path('cart/cart-detail/', views.cart_detail, name='cart_detail'),
    #     path('verify_payment',views.verify_payment,name="verify_payment"),
    #     path('filtercategory/<str:category_name>',views.filtercategory,name="filtercategory"),
    path("myorders", views.myorders, name="myorders"),
    path('getdprice/<int:id>', views.getdprice, name="getdprice"),
    path('confirmorder', views.confirmorder, name="confirmorder"),
    path('confirmorderime', views.confirmorderime, name="confirmorderime"),
    #     path("myprofile",views.myprofile,name="myprofile")
    #     path('test',views.test,name="test")
    #     path('verify_payment',views.verify_payment,name="verify_payment"),
    #     path('filtercategory/<str:category_name>',views.filtercategory,name="filtercategory"),
    path("profile", views.profile, name="profile"),
    path("profile", views.profile, name="profile"),
    
    path("verify-contact/", views.verifycontact, name="phone_verification"),
    path("verify-phone/<int:id>", views.verifyphone, name="verify_phone"),
    
    path('submit-review', views.submitreview, name="submit-review"),
    path('singleproduct/<str:name>', views.singleproduct, name="singleproduct"),
    path('search', views.search, name="search"),
    path('getproduct/<int:id>', views.getproduct, name="getproduct"),
    # path('payment', views.payment, name="payment"),
    path('promotions', views.promotions, name="promotions"),
    path('single-promotion', views.singlePromotion, name="single-promotion"),
    path('cart-test', views.carttest, name="cart-test"),
    path('aboutus',views.aboutus,name="aboutus"),
    path('privacypolicy',views.privacypolicy,name="privacypolicy"),
    path('cancelrefund',views.cancelrefund,name="cancelrefund"),
    path('useragreement',views.useragreement,name="useragreement"),
    path('reedemcoupon', views.reedemcoupon, name="reedemcoupon_base"),
    path('reedemcoupon/<str:coupon>/<str:product_id>', views.reedemcoupon, name="reedemcoupon"),
    path('remove-coupon/', views.remove_coupon, name="remove_coupon"),
    path('khalti_payment',views.khalti_payment,name="khalti_payment"),
    path('khalti_payment_initiate',views.khalti_payment_initiate,name="khalti_payment_initiate"),
    path('yoapp_payment',views.yoapp_payment,name="yoapp_payment"),
    path('yoapp_payment_verification',views.yoapp_payment_verification,name="yoapp_payment_verification"),
    path('prabhu_payment',views.prabhu_payment,name="prabhu_payment"),
    path('prabhu_confirm',views.prabhu_confirm,name="prabhu_confirm"),
    path('prodcategories',views.categories,name="prodcategories"),
    path('contact',views.contact,name="contact"),
   
    # path('pay',views.payment,name="payment")

    #     path('test',views.test,name="test")
    path('info/<str:title_slug>/', views.each_info, name="info"),
    
    path('verifycontactinfo', views.verifycontactinfo, name="verifycontactinfo"),

    
    
    path('firebase-messaging-sw.js', views.showFirebaseJS, name="show_firebase_js"),
    
    
    path('imepay_payment/', views.imepay_payment, name="imepay_payment"),
    path('imepay_confirm/', views.imepay_confirm, name="imepay_confirm"),
    
    path('currency/', views.change_currency, name="change_currency"),
    path('cancelorder/<int:id>/', views.cancel_order, name="cancelorder"),


] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
