"""DRIVERZZ_ADMIN_APIS URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path

from authentication import views as Auth
from notifications import views as Notification
from trips import views as Trips
from driver_partners import views as DriverPartners
from rates import views as Rates
from vehicles import views as VehicleTypes
from vehicles import views as VehicleModels
from vehicles import views as TransmissionTypes
from coupons import views as Coupons
from cancel_reasons import views as CancelReasons


urlpatterns = [
   
    path('login', Auth.login, name="login"),
    path('change-password', Auth.changePassword, name="changePassword"),

    path('request-otp', Auth.requestOtp, name="adminRequestOtp"),
    path('verify-otp', Auth.verifyOtp, name="adminVerifyOtp"),
    path('change-forgot-password', Auth.changeForgotPassword, name="changeForgotPassword"),
    path('profile', Auth.profile, name="profile"),

    path('notifications', Notification.notifications, name='notifications'),
    path('notification/delete', Notification.deleteNotification, name="deleteNotification"),

    path('trips', Trips.trips, name="trips"),
    path('trip/assign', Trips.assignTrip, name="assignTrip"),
    path('trip/status', Trips.changeTripStatus, name="changeTripStatus"),
    path('trip/edit', Trips.editTrip, name="editTrip"),

    path('driver-partners',DriverPartners.driverPartners, name="driverPartners"),
    path('driver-partners/list',DriverPartners.driverPartnersList, name="driverPartnersList"),
    path('driver-partner/edit', DriverPartners.editDriverPartner, name="editDriverPartner"),

    path('rates/list', Rates.rateLists, name="rateLists"),
    path('rate/edit', Rates.editRateList, name="editRateList"),
    path('rate/delete', Rates.deleteRateList, name="deleteRateList"),
    
    path('additional-charges', Rates.additionalCharges, name="additionalCharges"),

    path('taxes', Rates.taxes, name="taxes"),
    path('tax/edit', Rates.editTax, name="editTax"),
    path('tax/delete', Rates.deleteTax, name="deleteTax"),

    path('day-times', Rates.dayTimes, name="dayTimes"),
    path('day-time/edit', Rates.editDayTime, name="editDayTime"),

    path('vehicle-types', VehicleTypes.vehicleTypes, name="vehicleTypes"),
    path('vehicle-type/edit', VehicleTypes.editVehicleType, name="editVehicleType"),
    path('vehicle-type/delete', VehicleTypes.deleteVehicleType, name="deleteVehicleType"),

    path('vehicle-models', VehicleModels.vehicleModels, name="vehicleModels"),
    path('vehicle-model/edit', VehicleModels.editVehicleModel, name="editVehicleModel"),
    path('vehicle-model/delete', VehicleModels.deleteVehicleModel, name="deleteVehicleModel"),

    path('transmission-types', TransmissionTypes.transmissionTypes, name="TransmissionTypes"),
    path('transmission-type/edit', TransmissionTypes.editTransmissionType, name="editTransmissionType"),
    path('transmission-type//delete', TransmissionTypes.deleteTransmissionType, name="deleteTransmissionType"),

    path('coupons', Coupons.coupons, name="coupons"),
    path('coupon/edit', Coupons.editCoupon, name="editCoupon"),
    path('coupon/delete', Coupons.deleteCoupon, name="deleteCoupon"),

    path('cancel-reasons', CancelReasons.cancelReasons, name="cancelReasons"),
    path('cancel-reason/edit', CancelReasons.editCancelReason, name="editCancelReason"),
    path('cancel-reason/delete', CancelReasons.deleteCancelReason, name="deleteCancelReason"),

    path('customers', Auth.Customers, name="customers"),
    path('customer/<int:id>', Auth.Customer, name="customer")
]
