VaKeR CYBER ARMY
Logo of a company Server : Apache
System : Linux host44.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
User : vapecompany ( 2719)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /home/vapecompany/demo.vapecompany.com.bd/routes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/vapecompany/demo.vapecompany.com.bd/routes/web.php
<?php

use App\Http\Controllers\Backend\AreaController;
use App\Http\Controllers\Backend\BankBranchController;
use App\Http\Controllers\Backend\BankController;
use App\Http\Controllers\Backend\BrandController;
use App\Http\Controllers\Backend\CategoryController;
use App\Http\Controllers\Backend\CentralReturnController;
use App\Http\Controllers\Backend\ChalanController;
use App\Http\Controllers\Backend\CNFController;
use App\Http\Controllers\Backend\ColorController;
use App\Http\Controllers\Backend\CompanyInfoController;
use App\Http\Controllers\Backend\CourierController;
use App\Http\Controllers\Backend\CourierTypeController;
use App\Http\Controllers\Backend\CustomerController;
use App\Http\Controllers\Backend\CustomerDocumentController;
use App\Http\Controllers\Backend\CustomerTypeController;
use App\Http\Controllers\Backend\DamageStockController;
use App\Http\Controllers\Backend\Dashboard;
use App\Http\Controllers\Backend\DepartmentController;
use App\Http\Controllers\Backend\DesignationController;
use App\Http\Controllers\Backend\DistrictController;
use App\Http\Controllers\Backend\DivisionController;
use App\Http\Controllers\Backend\EmplyoeeController;
use App\Http\Controllers\Backend\ExportReport;
use App\Http\Controllers\Backend\ModelController;
use App\Http\Controllers\Backend\NotificationController;
use App\Http\Controllers\Backend\ProductController;
use App\Http\Controllers\Backend\RegionController;
use App\Http\Controllers\Backend\RejectedReturnController;
use App\Http\Controllers\Backend\ReportController;
use App\Http\Controllers\Backend\RequisitionController;
use App\Http\Controllers\Backend\RoleController;
use App\Http\Controllers\Backend\SaleReturnController;
use App\Http\Controllers\Backend\SalesTargetController;
use App\Http\Controllers\Backend\StockController;
use App\Http\Controllers\Backend\StockReportController;
use App\Http\Controllers\Backend\SupplierController;
use App\Http\Controllers\Backend\UserController;
use App\Http\Controllers\Frontend\CheckOutController;
use App\Http\Controllers\Frontend\HomeController;
use App\Http\Controllers\Frontend\PageController;
use App\Http\Controllers\Frontend\SearchController;
use App\Http\Controllers\Frontend\ShopController;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Auth::routes(['login' => false]);

Route::group(['prefix' => 'admin'], function () {
    Route::get('dashboard', [App\Http\Controllers\Backend\HomeController::class, 'index'])->name('admin.dashboard');
    Route::get('/', [App\Http\Controllers\Backend\HomeController::class, 'index'])->name('admin.dashboard');
    /*
     * ********************
     * Admin MODULE
     * ****************
    */
    Route::post('db_backup', [CompanyInfoController::class, 'post_db_backup'])->name('db_backup');
    Route::get('db_backup', [CompanyInfoController::class, 'get_db_backup']);
    Route::get('setting', [CompanyInfoController::class, 'index'])->name('setting');
    Route::post('setting', [CompanyInfoController::class, 'store']);
    Route::get('basic_setting', [CompanyInfoController::class, 'create']);
    Route::post('basic_setting', [CompanyInfoController::class, 'update']);
    //notification
    Route::get('notification/{id}', [NotificationController::class, 'showto'])->name('notification');
    Route::get('all_notification', [NotificationController::class, 'all_notification']);
    Route::post('all_notification', [NotificationController::class, 'all_notification'])->name('all_notification');
    //end notification

    //role
    Route::get('profile/{id}', [UserController::class, 'profile']);
    Route::post('updateprofile', [UserController::class, 'update'])->name('updateprofile');
    Route::post('change_user_password', [UserController::class, 'updatePassword'])->name('change_user_password');
    Route::get('all_role', [RoleController::class, 'index']);
    Route::get('user_list', [RoleController::class, 'user_list']);
    Route::post('new_role', [RoleController::class, 'store'])->name('new_role');
    Route::get('new_role', [RoleController::class, 'create']);
    Route::get('edit_role/{id}', [RoleController::class, 'edit']);
    Route::post('edit_role', [RoleController::class, 'update']);

    Route::get('user_permission/{id}', [RoleController::class, 'userPermission']);
    Route::post('user_permission', [RoleController::class, 'updateUserPermission']);

    Route::get('role_permission', [RoleController::class, 'rolePermission']);
    Route::get('change_password/{id}', [RoleController::class, 'change_password']);
    Route::post('change_password', [RoleController::class, 'updatePassword']);
    Route::get('get_role_permission', [RoleController::class, 'getRolePermission']);
    Route::post('role_permission', [RoleController::class, 'updateRolePermission']);
//end role

//designation
    Route::get('all_designation', [DesignationController::class, 'index']);
    Route::post('all_designation', [DesignationController::class, 'get_all'])->name('all_designation');
    Route::post('new_designation', [DesignationController::class, 'store'])->name('new_designation');
    Route::get('edit_designation/{id}', [DesignationController::class, 'edit']);
    Route::post('edit_designation', [DesignationController::class, 'update']);
    Route::get('new_designation', [DesignationController::class, 'create']);
//end designation
//department
    Route::get('all_department', [DepartmentController::class, 'index']);
    Route::post('all_department', [DepartmentController::class, 'get_all'])->name('all_department');
    Route::get('new_department', [DepartmentController::class, 'create']);
    Route::get('edit_department/{id}', [DepartmentController::class, 'edit']);
    Route::post('edit_department', [DepartmentController::class, 'update']);
    Route::post('new_department', [DepartmentController::class, 'store'])->name('new_department');
//end department
//Employee
    Route::get('all_emplyee', [EmplyoeeController::class, 'index']);
    Route::post('all_emplyee', [EmplyoeeController::class, 'get_all_employee'])->name('all_emplyee');
    Route::post('get_Employee_byDesignation_Id', [EmplyoeeController::class, 'get_Employee_byDesignation_Id'])->name('get_Employee_byDesignation_Id');

    Route::get('new_employee', [EmplyoeeController::class, 'create']);
    Route::get('edit_employee/{id}', [EmplyoeeController::class, 'edit']);
    Route::post('new_employee', [EmplyoeeController::class, 'store'])->name('new_employee');
    Route::post('upate_employee', [EmplyoeeController::class, 'update'])->name('upate_employee');
//end employee
//Supplier
    Route::get('all_supplier', [SupplierController::class, 'index']);
    Route::post('all_supplier', [SupplierController::class, 'get_all_supplier'])->name('all_supplier');
    Route::get('new_supplier', [SupplierController::class, 'create']);
    Route::get('edit_supplier/{id}', [SupplierController::class, 'edit']);
    Route::post('edit_supplier', [SupplierController::class, 'update']);
    Route::post('new_supplier', [SupplierController::class, 'store'])->name('new_supplier');
//end Supplier
//Brand
    Route::get('all_brand', [BrandController::class, 'index']);
    Route::post('all_brand', [BrandController::class, 'get_all'])->name('all_brand');
    Route::get('new_brand', [BrandController::class, 'create']);

    Route::get('edit_brand/{id}', [BrandController::class, 'edit']);
    Route::post('edit_brand', [BrandController::class, 'update']);
    Route::post('new_brand', [BrandController::class, 'store'])->name('new_brand');
//end Brand
//Area
    Route::get('all_area', [AreaController::class, 'index']);
    Route::post('all_area', [AreaController::class, 'get_all'])->name('all_area');
    Route::post('get_all_area_by_id', [AreaController::class, 'get_allByReionID'])->name('get_all_area_by_id');

    Route::get('new_area', [AreaController::class, 'create']);

    Route::get('edit_area/{id}', [AreaController::class, 'edit']);
    Route::post('edit_area', [AreaController::class, 'update']);
    Route::post('new_area', [AreaController::class, 'store'])->name('new_area');
//end Area
//Region
    Route::get('all_region', [RegionController::class, 'index']);
    Route::post('all_region', [RegionController::class, 'get_all'])->name('all_region');
    Route::get('new_region', [RegionController::class, 'create']);
    Route::get('edit_region/{id}', [RegionController::class, 'edit']);
    Route::post('edit_region', [RegionController::class, 'update']);
    Route::post('new_region', [RegionController::class, 'store'])->name('new_region');
//end Region
//Model
    Route::get('all_model', [ModelController::class, 'index']);
    Route::post('all_model', [ModelController::class, 'get_all'])->name('all_model');
    Route::get('new_model', [ModelController::class, 'create']);
    Route::get('edit_model/{id}', [ModelController::class, 'edit']);
    Route::post('edit_model', [ModelController::class, 'update']);
    Route::post('new_model', [ModelController::class, 'store'])->name('new_model');
//end Model
//Product
    Route::get('all_product', [ProductController::class, 'index']);
    Route::get('get_new_product_code', [ProductController::class, 'newProductCode']);
    Route::post('all_product', [ProductController::class, 'get_all_product'])->name('all_product');
    Route::get('new_product', [ProductController::class, 'create']);
    Route::get('product_edit/{id}', [ProductController::class, 'edit'])->name('product_edit');
    Route::post('product_edit', [ProductController::class, 'update'])->name('product_edit');
    Route::post('get_productById', [ProductController::class, 'getProductById'])->name('get_productById');
    Route::post('get_purchasePriceById', [ProductController::class, 'getPurchasePriceById'])->name('get_purchasePriceById');
    Route::post('add_price', [ProductController::class, 'addPrice'])->name('add_price');
    Route::post('get_productwithstock', [ProductController::class, 'get_productwithstock'])->name('get_productwithstock');
    Route::post('new_product', [ProductController::class, 'store'])->name('new_product');
    Route::get('print_barcode/{id}', [ProductController::class, 'print_barcode'])->name('print_barcode');
//end Product
//Customer
    Route::get('all_customer', [CustomerController::class, 'index']);
    Route::post('all_customer', [CustomerController::class, 'get_all_customer'])->name('all_customer');
    Route::get('new_customer', [CustomerController::class, 'create']);
    Route::get('edit_customer/{id}', [CustomerController::class, 'edit']);
    Route::post('edit_customer', [CustomerController::class, 'update']);
    Route::post('new_customer', [CustomerController::class, 'store'])->name('new_customer');
    Route::post('get_customer_by_divanddis', [CustomerController::class, 'getCustomerBydiv'])->name('get_customer_by_divanddis');
//end Customer
//sales Target

    Route::post('new_sales_target', [SalesTargetController::class, 'store'])->name('new_sales_target');
    Route::get('new_sales_target', [SalesTargetController::class, 'create'])->name('new_sales_target');
    Route::get('edit_sales_target/{id}', [SalesTargetController::class, 'edit']);
    Route::get('sales_target_enter/{id}', [SalesTargetController::class, 'targetEnterView']);
    Route::post('sales_target_enter', [SalesTargetController::class, 'targetEnter'])->name('sales_target_enter');
    Route::post('edit_sales_target', [SalesTargetController::class, 'update'])->name('edit_sales_target');
    Route::get('all_sales_target', [SalesTargetController::class, 'index'])->name('all_sales_target');
//end sales target

//requisition
    Route::get('all_requisition', [RequisitionController::class, 'index']);
    Route::post('all_requisition', [RequisitionController::class, 'get_all_requisition'])->name('all_requisition');
    Route::post('add_cart', [RequisitionController::class, 'addCart'])->name('add_cart');
    Route::post('add_cart_stock', [RequisitionController::class, 'addCartStock'])->name('add_cart_stock');
    Route::post('add_cart_ac', [RequisitionController::class, 'addCartAc'])->name('add_cart_ac');
    Route::post('get_order_data_By_division', [RequisitionController::class, 'GetOrderByDivision'])->name('get_order_data_By_division');
    Route::get('new_requisition', [RequisitionController::class, 'create']);
    Route::post('new_requisition', [RequisitionController::class, 'store'])->name('new_requisition');
    Route::get('update_requisition_status/{id}/{action}', [RequisitionController::class, 'updateStatus'])->name('update_requisition_status');
    Route::get('view_requisition/{id}', [RequisitionController::class, 'show'])->name('view_requisition');
    Route::get('print_requisition/{id}', [RequisitionController::class, 'print'])->name('print_requisition');
    Route::get('edit_requisition/{id}', [RequisitionController::class, 'edit']);
    Route::post('edit_requisition', [RequisitionController::class, 'update'])->name('edit_requisition');
    Route::get('print_invoice/{id}', [RequisitionController::class, 'printInvoice'])->name('print_invoice');
    Route::get('generate_invoice/{id}', [RequisitionController::class, 'generateInvoice']);
    Route::post('generate_invoice', [RequisitionController::class, 'postGenerateInvoice'])->name('generate_invoice');
    Route::get('exports/requisition_list', [RequisitionController::class, 'RequisitonPdf']);

//end requisition
//stock *[hJEet.t#N,
    Route::get('all_stock_in_doa', [StockController::class, 'all_stock_in_doa']);
    Route::get('all_stock', [StockController::class, 'index']);
    Route::get('adjust_stock_doa/{id}', [StockController::class, 'adjust_stock_doa']);
    Route::get('view_stock_in/{id}', [StockController::class, 'show']);
    Route::get('view_stock_in_doa/{id}', [StockController::class, 'showDoa']);
    Route::get('edit_stock_in/{id}', [StockController::class, 'edit']);
    Route::get('edit_stock_in_doa/{id}', [StockController::class, 'editDoa']);
    Route::post('all_stock_in_doa', [StockController::class, 'get_all_stock_in_doa'])->name('all_stock_in_doa');
    Route::post('all_stock', [StockController::class, 'get_all_stock_in'])->name('all_stock');
    Route::post('update_stock_in', [StockController::class, 'update'])->name('update_stock_in');
    Route::post('adjust_stock_doa', [StockController::class, 'updateDoaAdjust'])->name('adjust_stock_doa');
    Route::post('update_stock_doa', [StockController::class, 'updateDoa'])->name('update_stock_doa');
    Route::post('addcartstock', [StockController::class, 'addCart'])->name('addcartstock');
    Route::get('add_stock', [StockController::class, 'create']);

    Route::get('show_iemi_stock_in_list/{id}', [StockController::class, 'show_iemi_stock_in_list']);
    Route::post('show_iemi_stock_in_list', [StockController::class, 'get_iemi_stock_in'])->name('show_iemi_stock_in_list');
    Route::get('add_iemi', [StockController::class, 'createiemi']);
    Route::post('import-excel', [StockController::class, 'importExcel']);
    Route::post('add_stock', [StockController::class, 'store'])->name('add_stock');
    Route::get('stock_in_accessories', [StockController::class, 'createStockInAc']);
    Route::post('stock_in_accessories', [StockController::class, 'storeStockInAc'])->name('stock_in_accessories');
    Route::get('add_doa', [StockController::class, 'createStockInDoa']);
    Route::post('stock_in_doa', [StockController::class, 'storeStockInDoa'])->name('stock_in_doa');
//end stock


//chalan
    Route::get('chalan_list', [ChalanController::class, 'index']);
    Route::post('chalan_list', [ChalanController::class, 'get_all_chalan'])->name('chalan_list');
    Route::get('update_chalan_status/{id}/{action}', [ChalanController::class, 'updateStatus'])->name('update_chalan_status');
    Route::get('new_chalan', [ChalanController::class, 'create']);
    Route::post('get_sales_data_By_category', [ChalanController::class, 'GetChalansByDivision'])->name('get_sales_data_By_division');
    Route::get('viewchalan/{id}', [ChalanController::class, 'show'])->name('viewchalan');
    Route::get('edit_chalan/{id}', [ChalanController::class, 'edit']);
    Route::post('new_chalan', [ChalanController::class, 'store'])->name('new_chalan');
    Route::post('add_cart_chalan', [ChalanController::class, 'addCart'])->name('add_cart_chalan');
    Route::post('add_cart_return', [ChalanController::class, 'addCartReturn'])->name('add_cart_return');
    Route::post('add_cart_barcode', [ChalanController::class, 'addCartBarcode'])->name('add_cart_barcode');
    Route::post('add_cart_barcode_central_return', [ChalanController::class, 'addCartBarcodeCentralReturn'])->name('add_cart_barcode_return');
    Route::post('update_chalan', [ChalanController::class, 'update'])->name('update_chalan');
    Route::get('print_chalan/{id}/{copy}', [ChalanController::class, 'printChalan']);

//end chalan
//reports
    Route::get('reports/emp_target_achievement', [ReportController::class, 'emp_target_achievement']);
//    Route::get('reports/sales', [ReportController::class, 'sales']);
    Route::get('reports/customer_report', [ReportController::class, 'customerReport']);
    Route::get('reports/sale_iemi', [ReportController::class, 'saleImei']);
    Route::get('reports/sales_statement', [ReportController::class, 'salesStatement']);
    Route::get('reports/sales_summery', [ReportController::class, 'salesSummery']);
    Route::get('reports/product_wise_sales', [ReportController::class, 'productWiseSales']);
    Route::get('reports/sales_report_pdf', [ReportController::class, 'SalesReportPdf']);
    Route::get('reports/customer_report_pdf', [ReportController::class, 'CustomerReportPdf']);
    Route::get('reports/target_pdf', [ReportController::class, 'targetPdf']);
    Route::get('reports/sales_imei_report_pdf', [ReportController::class, 'SalesImeiReportPdf']);
    Route::get('reports/sales_summary_pdf', [ReportController::class, 'SaleSummaryPdf']);
    Route::get('reports/productWise_sales_pdf', [ReportController::class, 'ProductWiseSalePdf']);
//Route::post('reports/sales_report',[ReportController::class,'salesReport'])->name('reports/sales_report');
//    Route::get('reports/stock', [StockReportController::class, 'stock']);
    Route::get('reports/stock_summary', [StockReportController::class, 'stockSummary']);
//    Route::get('reports/stock_in', [StockReportController::class, 'stockIn']);
    Route::get('reports/stock_doa', [StockReportController::class, 'stockDoa']);
//    Route::get('reports/stock_imei', [StockReportController::class, 'stockImei']);
    Route::get('reports/product_wise_stock_in', [ReportController::class, 'stockInProductBy']);


// stock export
    Route::get('reports/stock_export', [ExportReport::class, 'stockExport']);
    Route::get('reports/stockIn_export', [ExportReport::class, 'stockInExport']);
    Route::get('reports/stock_summary/pdf', [ExportReport::class, 'stockSummary']);
    Route::get('reports/stock_imei_export', [ExportReport::class, 'stockImeiExport']);
//end stock export
    Route::get('price_history', [ReportController::class, 'priceHistory']);
    Route::get('reports/price_history_pdf', [ReportController::class, 'priceHistoryPdf']);
//end reports


//Customer Type
    Route::get('all_customer_type', [CustomerTypeController::class, 'index']);
    Route::post('all_customer_type', [CustomerTypeController::class, 'get_all'])->name('all_customer_type');
    Route::get('new_customer_type', [CustomerTypeController::class, 'create']);

    Route::get('edit_customer_type/{id}', [CustomerTypeController::class, 'edit']);
    Route::post('edit_customer_type', [CustomerTypeController::class, 'update']);
    Route::post('new_customer_type', [CustomerTypeController::class, 'store'])->name('new_customer_type');
//end Customer Type
//Customer Type
    Route::get('document/show/{type}/{file}', [CustomerDocumentController::class, 'show_document']);
    Route::get('get_image/{type}/{file}', [CustomerDocumentController::class, 'getImage']);
    Route::get('document/{type}/{id}', [CustomerDocumentController::class, 'index']);
    Route::get('document/{type}/{id}/new_document', [CustomerDocumentController::class, 'create']);
    Route::get('document/{type}/{id}/show_document/{id2}', [CustomerDocumentController::class, 'show']);

    Route::get('edit_document/{id}', [CustomerDocumentController::class, 'edit']);
    Route::post('edit_document', [CustomerDocumentController::class, 'update']);
    Route::post('new_document', [CustomerDocumentController::class, 'store'])->name('new_document');
    Route::post('delete_document', [CustomerDocumentController::class, 'delete'])->name('delete_document');
//end Customer Type
//Color
    Route::get('all_color', [ColorController::class, 'index']);
    Route::post('all_color', [ColorController::class, 'get_all'])->name('all_color');
    Route::get('new_color', [ColorController::class, 'create']);

    Route::get('edit_color/{id}', [ColorController::class, 'edit']);
    Route::post('edit_color', [ColorController::class, 'update']);
    Route::post('new_color', [ColorController::class, 'store'])->name('new_color');
//end Color
//Color
    Route::get('all_category', [CategoryController::class, 'index']);
    Route::post('all_category', [CategoryController::class, 'get_all'])->name('admin/all_category');
    Route::get('new_category', [CategoryController::class, 'create']);

    Route::get('edit_category/{id}', [CategoryController::class, 'edit']);
    Route::post('edit_category', [CategoryController::class, 'update']);
    Route::post('new_category', [CategoryController::class, 'store'])->name('new_category');
//end Color
//Courier
    Route::get('all_cnf', [CNFController::class, 'index']);
    Route::post('all_cnf', [CNFController::class, 'get_all'])->name('all_cnf');
    Route::get('new_cnf', [CNFController::class, 'create']);

    Route::get('edit_cnf/{id}', [CNFController::class, 'edit']);
    Route::post('edit_cnf', [CNFController::class, 'update']);
    Route::post('new_cnf', [CNFController::class, 'store'])->name('new_cnf');
//end Courier
//Courier
    Route::get('all_courier', [CourierController::class, 'index']);
    Route::post('all_courier', [CourierController::class, 'get_all_courier'])->name('all_courier');
    Route::get('new_courier', [CourierController::class, 'create']);

    Route::get('edit_courier/{id}', [CourierController::class, 'edit']);
    Route::post('edit_courier', [CourierController::class, 'update']);
    Route::post('new_courier', [CourierController::class, 'store'])->name('new_courier');
//end Courier
//Courier Type
    Route::get('all_courier_type', [CourierTypeController::class, 'index']);
    Route::get('new_courier_type', [CourierTypeController::class, 'create']);

    Route::get('edit_courier_type/{id}', [CourierTypeController::class, 'edit']);
    Route::post('edit_courier_type', [CourierTypeController::class, 'update']);
    Route::post('new_courier_type', [CourierTypeController::class, 'store'])->name('new_courier_type');
//end Courier Type
//Bank
    Route::get('all_bank', [BankController::class, 'index']);
    Route::post('all_bank', [BankController::class, 'get_all'])->name('all_bank');
    Route::get('new_bank', [BankController::class, 'create']);

    Route::get('edit_bank/{id}', [BankController::class, 'edit']);
    Route::post('edit_bank', [BankController::class, 'update']);
    Route::post('new_bank', [BankController::class, 'store'])->name('new_bank');
//end Bank
//Branch
    Route::get('all_branch', [BankBranchController::class, 'index']);
    Route::post('all_branch', [BankBranchController::class, 'get_all'])->name('all_branch');
    Route::get('new_branch', [BankBranchController::class, 'create']);
    Route::post('get_branch_by_bank_id', [BankBranchController::class, 'get_branch_by_bank_id']);
    Route::get('edit_branch/{id}', [BankBranchController::class, 'edit']);
    Route::post('edit_branch', [BankBranchController::class, 'update']);
    Route::post('new_branch', [BankBranchController::class, 'store'])->name('new_branch');
//end Branch

//Damage stock
    Route::get('damage_list', [DamageStockController::class, 'index']);
    Route::post('damage_list', [DamageStockController::class, 'get_damage_list'])->name('damage_list');
    Route::get('edit_damage_stock/{id}', [DamageStockController::class, 'edit']);
    Route::post('edit_damage_stock', [DamageStockController::class, 'update']);
    Route::get('new_damage_stock', [DamageStockController::class, 'create']);
    Route::get('view_damage_stock/{id}', [DamageStockController::class, 'show']);
    Route::get('print_damage_stock/{id}', [DamageStockController::class, 'print']);
    Route::post('new_damage_stock', [DamageStockController::class, 'store'])->name('new_damage_stock');
//end Damage Stock
//Damage stock
    Route::get('central_return_list', [CentralReturnController::class, 'index']);
    Route::post('central_return_list', [CentralReturnController::class, 'get_damage_list'])->name('central_return_list');
    Route::get('edit_central_return/{id}', [CentralReturnController::class, 'edit']);
    Route::post('edit_central_return', [CentralReturnController::class, 'update']);
    Route::get('new_central_return', [CentralReturnController::class, 'create']);
    Route::get('view_central_return/{id}', [CentralReturnController::class, 'show']);
    Route::get('print_central_return/{id}', [CentralReturnController::class, 'print']);
    Route::post('new_central_return', [CentralReturnController::class, 'store'])->name('new_damage_stock');
    Route::get('exports/central_return', [CentralReturnController::class, 'CentralReturnPdf']);
//end Damage Stock
//return reject
    Route::get('return_reject_list', [RejectedReturnController::class, 'index']);
    Route::post('return_reject_list', [RejectedReturnController::class, 'get_reject_return_list'])->name('return_reject_list');
    Route::get('new_return_reject', [RejectedReturnController::class, 'create']);
    Route::get('edit_return_reject/{id}', [RejectedReturnController::class, 'edit']);
    Route::post('edit_return_reject', [RejectedReturnController::class, 'update']);
    Route::get('view_return_reject/{id}', [RejectedReturnController::class, 'show']);
    Route::get('print_return_reject/{id}', [RejectedReturnController::class, 'print']);
    Route::post('new_return_reject', [RejectedReturnController::class, 'store'])->name('new_return_reject');
    Route::get('exports/customer_return', [RejectedReturnController::class, 'CustomerReturnPdf'])->name('exports/customer_return');
//end return reject

//Division
    Route::get('all_division', [DivisionController::class, 'index']);
    Route::post('all_division', [DivisionController::class, 'get_all'])->name('all_division');
    Route::get('add_division', [DivisionController::class, 'create']);

    Route::get('edit_division/{id}', [DivisionController::class, 'edit']);
    Route::post('edit_division', [DivisionController::class, 'update']);
    Route::post('add_division', [DivisionController::class, 'store'])->name('add_division');
//end Division
//District
    Route::get('all_district', [DistrictController::class, 'index']);
    Route::post('all_district', [DistrictController::class, 'get_all'])->name('all_district');
    Route::get('add_district', [DistrictController::class, 'create']);
    Route::post('get_all_district_by_id', [DistrictController::class, 'getAllDistrictById']);
    Route::get('edit_district/{id}', [DistrictController::class, 'edit']);
    Route::post('edit_district', [DistrictController::class, 'update']);
    Route::post('add_district', [DistrictController::class, 'store'])->name('add_district');
//end District
//Sales return
    Route::get('sales_return', [SaleReturnController::class, 'create']);
    Route::get('all_sales_return', [SaleReturnController::class, 'index']);
    Route::post('all_sales_return', [SaleReturnController::class, 'get_all_chalan_return'])->name('all_sales_return');
    Route::post('new_sales_return', [SaleReturnController::class, 'newReturn']);
    Route::post('save_sales_return', [SaleReturnController::class, 'store']);


    // Admin Login
    Route::get('login', [App\Http\Controllers\Backend\Auth\LoginController::class, 'showLoginForm'])->name('admin.login');
    Route::post('login', [App\Http\Controllers\Backend\Auth\LoginController::class, 'login'])->name('admin.login');
    Route::match(['GET', 'POST'], 'logout', [App\Http\Controllers\Backend\Auth\LoginController::class, 'logout'])->name('admin.logout');
});

// USER LOGIN
Route::get('login', [App\Http\Controllers\Frontend\Auth\LoginController::class, 'get_login']);

Route::post('login', [App\Http\Controllers\Frontend\Auth\LoginController::class, 'login'])->name('user.login');
Route::get('logout', [App\Http\Controllers\Frontend\Auth\LoginController::class, 'logout'])->name('user.logout');
Route::get('register', [App\Http\Controllers\Frontend\Auth\LoginController::class, 'register']);
Route::post('register', [App\Http\Controllers\Frontend\Auth\LoginController::class, 'registerUser'])->name('user.register');
// USER PANEL
Route::get('/dashboard', [App\Http\Controllers\Frontend\UserController::class, 'index'])->name('user.dashboard');
Route::get('/test', function () {
    return auth()->user();
});

Route::match(['POST', 'GET'], '/customer', [App\Http\Controllers\Frontend\UserController::class, 'customer'])->name('user.customer.all');
Route::match(['POST', 'GET'], '/customer/add', [App\Http\Controllers\Frontend\UserController::class, 'newCustomer'])->name('user.customer.add');
Route::match(['POST', 'GET'], '/customer/edit/{id}', [App\Http\Controllers\Frontend\UserController::class, 'editCustomer'])->name('user.customer.edit');

// FILE HANDLE
Route::match(['POST', 'GET'], '/file', [App\Http\Controllers\Frontend\UserController::class, 'file'])->name('user.file');
Route::match(['POST', 'GET'], '/file', [App\Http\Controllers\Frontend\UserController::class, 'file'])->name('user.file');
Route::post('/file/store', [App\Http\Controllers\Frontend\UserController::class, 'fileStore'])->name('user.file.store');
Route::match(['POST', 'GET'], '/file/edit/{id}', [App\Http\Controllers\Frontend\UserController::class, 'editFile'])->name('user.file.edit');
Route::get('/file/view/{id}', [App\Http\Controllers\Frontend\UserController::class, 'veiwFile'])->name('user.file.view');
Route::get('delete/file/{id}', [App\Http\Controllers\Frontend\UserController::class, 'deleteFile'])->name('user.file.delete');

// MOVEMENTS
Route::match(['POST', 'GET'], '/movements', [App\Http\Controllers\Frontend\UserController::class, 'movements'])->name('user.movements');


Route::get('/', [HomeController::class, 'index']);

Route::get('/home', [HomeController::class, 'index'])->name('home');
Route::get('/shop', [ShopController::class, 'index'])->name('shop');
// Cart route
Route::get('/cart', [ShopController::class, 'cart'])->name('cart');
Route::get('/add_cart/{id}', [ShopController::class, 'add_cart']);
Route::post('add_to_cart', [ShopController::class, 'addTocart'])->name('add.to.cart');
Route::post('remove_cart', [ShopController::class, 'removeCart'])->name('remove.cart');
Route::post('cart_increment', [ShopController::class, 'cartIncrement'])->name('cart.increment');
Route::post('cart_decrement', [ShopController::class, 'cartDecrement'])->name('cart.decrement');
// Wishlist
Route::get('/add_wishlist/{id}', [ShopController::class, 'add_wishlist']);
Route::get('/remove_wishlist/{id}', [ShopController::class, 'remove_wishlist']);
Route::get('/wishlist', [ShopController::class, 'wishlist']);
Route::get('/product/{id}', [ShopController::class, 'get_product']);
Route::get('/contact', [PageController::class, 'contact']);
Route::get('/contact', [PageController::class, 'contact']);
Route::get('/contact_form', [PageController::class, 'contact_form']);
// Checkout route
Route::get('/checkout', [CheckOutController::class, 'index'])->name('checkout')->middleware('user');
Route::post('/checkout', [CheckOutController::class, 'store'])->name('checkout.store')->middleware('user');
Route::get('/search', [SearchController::class, 'search']);
Route::get('/category/{id}', [SearchController::class, 'categoryWiseSearch']);




VaKeR 2022