HEX
Server: Apache/2.4.46 (Ubuntu)
System: Linux localhost 5.11.0-49-generic #55-Ubuntu SMP Wed Jan 12 17:36:34 UTC 2022 x86_64
User: root (0)
PHP: 7.4.16
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/fieldsblaze-heroku/routes/api.php
<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

// Route::middleware('auth:api')->get('/user', function (Request $request) {
//     return $request->user();
// });

Route::group(['middleware' => 'cors', 'prefix' => '/v1'], function () {

    //***************************** Common Controller *****************************************//
    Route::get('country/list', 'CommonController@countryList');


    Route::get('country/details/{country_code}', 'CommonController@countryDetails');


    Route::get('state/list/{country_id}', 'CommonController@stateList');
    //Route::post('user/add', 'APIUserController@registerUser');

    Route::post('user/login', 'APIUserController@loginUser');

    Route::post('user/register', 'APIUserController@createUserWithOtp');

    Route::post('user/create-password', 'APIUserController@userCreateFirstTimePassword');

    Route::post('user/change-password', 'APIUserController@userChangePassword');

    Route::post('user/otp-verification', 'APIUserController@otpVerificationUser');

    Route::post('user/otp-verification', 'APIUserController@otpVerificationUser');

    Route::post('user/otp-resend', 'APIUserController@otpResendUser');

    Route::post('user/profile/edit', 'APIUserController@userEditProfile');

    Route::get('user/profile/details/{UserId}', 'APIUserController@getUserProfile');

    Route::get('user/role/list/{UserId}', 'APIUserController@getUserRoleList');

    Route::get('user/team/list/', 'APIUserController@getTeamList');
    Route::get('manager/team/list/', 'APIUserController@getManagerTeamList');
    Route::get('manager/team/list', 'APIUserController@getManagerTeamList');
    Route::get('manager/team/list/{ManagerId}', 'APIUserController@getManagerTeamList');



    Route::post('user/profile-image-update', 'APIUserController@editUserProfileImage');


    Route::post('user/forgot/password/otp', 'APIUserController@userForgotPasswordOtpSend');

    Route::post('user/forgot/password/update', 'APIUserController@userForgotPasswordUpdate');

    Route::get('user/list', 'APIUserController@getUserList');

    /*** Customer *******/

    Route::get('customer/file/list/{CustomerId}', 'APICustomerController@getCustomerFileList');
    Route::get('customer/file/detail/{CustomerId}/{FileId}', 'APICustomerController@getCustomerFileDetails');

    // Route::post('customer/upload/files', 'APICustomerController@uploadCustomerFile');
    Route::post('customer/upload/files', 'APICustomerController@uploadCustomerfilesNew');

    Route::post('customer/create', 'APICustomerController@createCustomer');
    Route::post('customer/update', 'APICustomerController@updateCustomer');
    Route::get('customer/list', 'APICustomerController@getCustomerList');


    Route::get('customer/list/{filter}', 'APICustomerController@getCustomerListToday');



    Route::get('team/customer/list', 'APICustomerController@getTeamCustomerList');

    Route::get('team/order/list', 'APIOrderController@getTeamOrderList');
    //Route::get('team/collection/list', 'APICollectionController@getTeamCollectionList');
    Route::get('team/visit/list', 'APIVisitsController@getTeamVisitList');



    Route::post('customer/profile-image-update', 'APICustomerController@editCustomerProfileImage');
    Route::get('department/list', 'APICustomerController@getDepartmentList');
    Route::get('customer/type/list', 'APICustomerController@getCustomerTypeList');
    Route::get('customer/salesarea', 'APICustomerController@getSalesAreaList');
    Route::get('customer/pricebook/list', 'APICustomerController@getPriceBookList');
    Route::get('customer/beatplan/list', 'APICustomerController@getBeatPlanList');
    Route::get('customer/profile/{CustomerId}', 'APICustomerController@getCustomerProfile');

    Route::get('customer/list/{CustomerTypeId}', 'APICustomerController@getCustomerList');

    Route::get('customer/visit/list/{CustomerId}', 'APICustomerController@getCustomerVisitList');

    Route::get('customer/payment-term/list', 'APICustomerController@getPaymentTearmList');

    Route::get('customer/distributor/list/{CustomerTypeId}', 'APICustomerController@getDistributorList');


    Route::post('customer/contact/create', 'APICustomerController@createCustomerContact');
    Route::post('customer/contact/update', 'APICustomerController@updateCustomerContact');
    Route::get('customer/contact/list/{CustomerId}', 'APICustomerController@getCustomerContactList');
    Route::get('customer/contact/detail/{ContactId}', 'APICustomerController@getCustomerContactDetail');
    Route::post('customer/contact/delete', 'APICustomerController@deleteCustomerContact');

    /******************/


    /*** Products *******/

    Route::get('product/list', 'APIProductController@getProductList');
    Route::get('customer/product/list/{CustomerId}', 'APIProductController@getCustomerProductList');
    Route::get('product/lineitems/{ProductId}', 'APIProductController@getProductLineItem');
    Route::get('product/details/{ProductId}', 'APIProductController@getProductDetails');

    /******************/


     /*** Order Products *******/

     Route::post('order/create', 'APIOrderController@createOrder');
     Route::post('order/delete', 'APIOrderController@deleteOrder');
     Route::post('order/item/delete', 'APIOrderController@deleteOrderItem');
     Route::get('order/list', 'APIOrderController@getOrderList');
     Route::get('order/list/{CustomerId}', 'APIOrderController@getOrderList');
     Route::get('order/details/{OrderId}', 'APIOrderController@getOrderDetails');
     Route::get('order/status/list', 'APIOrderController@getOrderStatusList');

     Route::get('order/list-today', 'APIOrderController@getTodayOrderList');

     Route::get('order/search/list/{OrderNo}', 'APIOrderController@getOrderSearchList');
     Route::get('order/search/{SearchKey}', 'APIOrderController@getOrderSearch');

      /*** for pdf download *******/
    //   Route::get('order-invoice-mobile/{OrderId}', 'APIOrderController@DownloadOrderPDF');

     //colletion
     Route::post('collection/create', 'APICollectionController@createCollection');
     Route::post('collection/update', 'APICollectionController@updateCollection');
     Route::get('collection/list', 'APICollectionController@collectionList');
     Route::get('collection/list/{filter}', 'APICollectionController@collectionListFilter');
     Route::get('collection/list/search/{SearchText}', 'APICollectionController@collectionListSearchText');
     Route::get('collection/details/{CollectionId}', 'APICollectionController@getCollectionDetails');

     Route::post('collection/upload-collection-files', 'APICollectionController@uploadCollectionfiles');

     Route::get('collection/payment-type', 'APICollectionController@collectionPaymentType');


     Route::post('order/update', 'APIOrderController@updateOrder');

     Route::get('customer/collection/list/{CustomerId}', 'APICollectionController@customerCllectionList');

     //expense
     Route::post('expense/create', 'APIExpenseController@createExpense');
     Route::post('expense/update', 'APIExpenseController@updateExpense');
     Route::get('expense/details/{ExpenseId}', 'APIExpenseController@getExpenseDetails');
     Route::get('expense-type/list', 'APIExpenseController@getExpenseTypeList');
     Route::get('expense-type-travel/list/{ExpenseTypeId}', 'APIExpenseController@getExpenseTypeTravelList');
     Route::get('expense/list', 'APIExpenseController@expenseList');
     Route::get('expense/list/search/{SearchKey}', 'APIExpenseController@expenseListSearch');
     Route::post('expense/upload-expense-files', 'APIExpenseController@uploadexpensefiles');


     //Beat Plan
     Route::get('beatplan/salesarea/list', 'APIBeatPlanController@getSalesAreaList');
     Route::get('beatplan/salesarea/list/{TerritoryId}', 'APIBeatPlanController@getSalesAreaList');

     Route::get('beatplan/salesterritory/list', 'APIBeatPlanController@getSalesTerritoryList');

     Route::get('beatplan/allcustomer/list', 'APIBeatPlanController@getAllCustomerList');
     Route::get('beatplan/retailer/list', 'APIBeatPlanController@getRetailerList');
     Route::get('beatplan/distributor/list', 'APIBeatPlanController@getDistributorList');

     Route::post('beatplan/create', 'APIBeatPlanController@createBeatPlan');
     Route::post('beatplan/update', 'APIBeatPlanController@updateBeatPlan');
     Route::get('beatplan/list', 'APIBeatPlanController@getBeatPlanList');
     Route::get('beatplan/list/{BeatPlanType}', 'APIBeatPlanController@getBeatPlanList');
     Route::get('beatplan/details/{BeatPlanId}', 'APIBeatPlanController@getBeatPlanDetails');


     Route::get('beatplan/list/customer/{CustomerId}', 'APIBeatPlanController@getBeatPlanListCustomer');


    // visits
     Route::post('visit/create', 'APIVisitsController@createVisit');
     Route::post('visit/update', 'APIVisitsController@updateVisit');
     Route::get('visit/list', 'APIVisitsController@getVisitList');
     Route::get('visit/list/search/{SearchKey}', 'APIVisitsController@getVisitListSearch');
     Route::get('visit/list/{filter}', 'APIVisitsController@getVisitList');


     Route::get('visit/note/list', 'APIVisitsController@getVisitNoteList');


     Route::get('visit/details/{VisitId}', 'APIVisitsController@getVisitDetails');

     Route::get('salesarea-customer/list/{SalesAreaId}', 'APIVisitsController@SalesAreaCustomer');

     Route::get('distributor-retailer/list/{DistributorId}', 'APIVisitsController@DistributorRetailersList');


     //Add stock
     Route::post('stock/create', 'APIStockController@createStock');
     Route::post('stock/update', 'APIStockController@updateStock');
     Route::get('stock/list', 'APIStockController@getStockList');
     Route::get('stock/details/{StockId}', 'APIStockController@getStockDetails');

     Route::get('stock/list/search/{SearchKey}', 'APIStockController@getStockSearch');


    //Add Performance
    Route::post('performance/create', 'APIPerformanceController@createPerformance');
    Route::get('performance/target/type/list', 'APIPerformanceController@getTargetType');

    Route::post('performance/update', 'APIPerformanceController@updatePerformance');
    Route::get('performance/list', 'APIPerformanceController@getPerformanceList');
    Route::get('performance/details/{TargetId}', 'APIPerformanceController@getPerformanceDetails');

    Route::get('performance/user/list/{ManagerId}', 'APIPerformanceController@getPerformanceUserList');



    //Add Note
    Route::post('note/create', 'APINoteController@createNote');
    Route::post('note/update', 'APINoteController@updateNote');
    Route::get('note/list', 'APINoteController@getNoteList');
    Route::get('note/list/search/{SearchKey}', 'APINoteController@getNoteListSearch');
    Route::get('note/details/{Noted}', 'APINoteController@getNoteDetails');


     // Leave
     Route::post('leave/create', 'APILeaveController@createLeave');
     Route::post('leave/update', 'APILeaveController@updateLeave');
     Route::get('leave/list', 'APILeaveController@getLeaveList');
     Route::get('leave/details/{LeaveId}', 'APILeaveController@getLeaveDetails');
     Route::get('leave/type/list', 'APILeaveController@getLeaveTypeList');


     // Attendance
     Route::post('attendance/create', 'APIAttendanceController@createAttendance');
     Route::post('attendance/update', 'APIAttendanceController@updateAttendance');
     Route::get('attendance/list', 'APIAttendanceController@getAttendanceList');
     Route::get('attendance/list/{searchquery}', 'APIAttendanceController@getAttendanceList');
     Route::get('attendance/details/{AttendanceId}', 'APIAttendanceController@getAttendanceDetails');
     Route::get('attendance/type/list', 'APIAttendanceController@getAttendanceTypeList');


     Route::get('check/token', 'APICommonController@checkAuthToken');


     //Announcement
     Route::get('announcement/list', 'APIAnnouncementController@getAnnouncementList');
     Route::get('announcement/details/{AnnouncementId}', 'APIAnnouncementController@getAnnouncementDetails');


     //Dashboard
     Route::get('dashboard/counter', 'APICommonController@getCustomerList');
     Route::get('dashboard/time', 'APICommonController@getTime');


     //Approvals
     Route::get('approval/user/list', 'APIApprovals@getApprovalUserList');

     Route::get('approval/leave/list/{AssignTo}', 'APIApprovals@getApprovalLeaveList');
     Route::post('approval/leave/update', 'APIApprovals@approvallLeaveUpdate');

     Route::get('approval/expense/list/{AssignTo}', 'APIApprovals@approvalExpenseList');
     Route::post('approval/expense/update', 'APIApprovals@approvalExpenseUpdate');

     Route::get('approval/visit/list/{AssignTo}', 'APIApprovals@getApprovalVisitList');
     Route::post('approval/visit/update', 'APIApprovals@approvalVisitUpdate');

     Route::get('approval/order/list/{AssignTo}', 'APIApprovals@getApprovalOrderList');
     Route::post('approval/order/update', 'APIApprovals@approvalOrderUpdate');


     //Return order
     Route::post('return/create', 'APIReturnController@createReturn');
     Route::post('return/update', 'APIReturnController@updateReturn');
     Route::get('return/list', 'APIReturnController@getReturnList');
     Route::get('return/list/search/{SearchKey}', 'APIReturnController@getReturnListSearch');
     Route::get('return/details/{ReturnId}', 'APIReturnController@getReturnDetails');

     Route::get('terms-conditions/signup', 'APICommonController@getSignUpTermCondition');

     Route::get('user/access/check/{ProfileId}/{ModuleId}', 'APICommonController@getUserAccessCheck');


     //Route::get('dashboard/customer/count', 'CommonController@countryList');


     //tbl_sales_territory

    //  Route::get('order/list', 'APIOrderController@getProductList');
    //  Route::get('customer/order/list/{CustomerId}', 'APIOrderController@getCustomerProductList');
    //  Route::get('order/lineitems/{ProductId}', 'APIOrderController@getProductLineItem');
    //  Route::get('order/details/{ProductId}', 'APIOrderController@getProductDetails');

     /******************/
     Route::post('uploadprocess', 'UserController@uploadprocess');

     Route::get('', 'UserController@uploadprocess');

    #### Company Profile and Bank Detail
     Route::get('company/profile/list', 'APICommonController@getCompanyProfileList');
});