name('feepayment'); Route::post('/bidpayment', [ApiController::class, 'bidpayment'])->name('bidpayment'); Route::get('/portalApi', [LelongMobileController::class, 'portalApi']); //Protected routes Route::group(['middleware' => ['auth:sanctum']], function () { // get user detail by verifying token Route::get('/getProfile', [AuthController::class, 'getProfile']); // User Route::post('/user/logout', [AuthController::class, 'logoutUser']); Route::get('/user/profile/{nokp}', [UserController::class, 'getProfileUser']); Route::post('/password/reset', [ResetPasswordController::class, 'reset']); //change password user Route::post('/changePassword', [UserController::class, 'changePassword']); // User Profile Route::get('/user/profile', [UserController::class, 'getProfileUser']); Route::put('/userUpdate/profile', [UserController::class, 'updateProfileUser']); Route::get('/requestTac', [UserController::class, 'requestTac']); Route::post('/verifyTac', [UserController::class, 'verifyTac']); //============HOME=========================== //today's auction Route::get('/listcawlelongtoday', [LelongMobileController::class, 'listCawLelongToday']); //next auction Route::get('/listcawlelongnext', [LelongMobileController::class, 'listCawLelongNext']); //============LIST LELONG=========================== //list cawangan started lelong Route::get('/listcawlelongtodaystarted', [LelongMobileController::class, 'listCawLelongTodayStarted']); //list surat exclude in cart and bid-record Route::get('/lelongDetails/listSuratLelong', [LelongMobileController::class, 'listSuratLelong2']); //list lelong online Route::get('/lelongOnline', [LelongMobileController::class, 'lelongOnline']); //photo marhun Route::get('/photoMarhun',[LelongMobileController::class, 'photoMarhun']); //============CART=========================== //get cart group by cawangan Route::get('/cartByCawangan/{userId}', [CartController::class, 'getCartByCawangan']); //add item to cart Route::post('/addToCart', [CartController::class, 'addToCart']); //update item in cart Route::post('/updateItem', [CartController::class, 'updateItem']); //delete item in cart Route::post('/deleteItem', [CartController::class, 'deleteItem']); //number of item in cart Route::get('/itemInCart', [LelongMobileController::class, 'itemInCart']); //===========STALE CART===================== Route::post('/removeFromCart', [CartController::class, 'removeFromCart']); Route::get('/cart/{userid}', [CartController::class, 'getCart']); Route::get('/deleteItem/{id}', [CartController::class, 'deleteCart']); //===========BID RECORD====================== //get bid record group by cawangan Route::get('/bidRecordByCawangan/{userId}', [LelongMobileController::class, 'bidRecordByCawangan']); //===========STALE BID RECORD================= Route::get('/bidder/bidrecord', [LelongMobileController::class, 'bidRecord']); //===========RESULT====================== //get all result Route::get('/resultLelong', [LelongMobileController::class, 'resultLelong']); //get status result Route::get('/resultStatus/{userId}/{lelongId}', [LelongMobileController::class, 'resultStatus']); //get win surat in cawangan to print pdf Route::get('/resultInCawangan', [LelongMobileController::class, 'resultInCawangan2']); //get invoice to print pdf Route::get('/downloadInvoice', [LelongMobileController::class, 'downloadInvoice']); //===========PAY====================== //get invoice detail Route::get('/invoice', [LelongMobileController::class, 'getInvoiceId']); //get list photo's receipt Route::get('/listPhotoResit', [LelongMobileController::class, 'listPhotoResit']); //add photo resit Route::post('/addPhotoResit',[LelongMobileController::class, 'addPhotoResit']); //show photo resit Route::get('/showPhotoResit',[LelongMobileController::class, 'showPhotoResit']); //delete photo resit Route::post('/deletePhotoResit',[LelongMobileController::class, 'deletePhotoResit']); //BY CAWANGAN -> initializie cdm payment Route::post('/initializeCdmPayment',[LelongMobileController::class, 'initializeCdmPayment']); //check availabitlity fpx session Route::get('/checkAvailabilityFpxSession',[LelongMobileController::class, 'checkAvailabilityFpxSession']); // Lelong Route::get('/lelongDetails/today', [LelongMobileController::class, 'getlelongdetails']); Route::get('/lelongDetails/cawangan', [LelongMobileController::class, 'searchLelByCaw']); Route::get('/lelong/cawangan', [LelongMobileController::class, 'searchLelongByCawangan']); Route::get('/karat', [LelongMobileController::class, 'getListKarat']); Route::get('/result/{user_id}', [LelongMobileController::class, 'bidresult']); Route::get('/bayar/{user_id}/{lelong_id}', [LelongMobileController::class, 'bidresults']); Route::get('/bayarBaki/{user_id}/{lelong_id}', [LelongMobileController::class, 'bidPayRemaining']); Route::get('/history/{user_id}', [LelongMobileController::class, 'history']); Route::post('/bayarcdm', [LelongMobileController::class, 'bayarCdm']); Route::post('/updateresit', [LelongMobileController::class, 'updateResit']); // Lelong => Bidder Route::post('/bidder/biditem', [LelongMobileController::class, 'bidderSelectBidItem']); Route::get('/bidder/listbiditem', [LelongMobileController::class, 'listBidItem']); Route::get('/bidder/listBidItemWeb/{user_id}', [LelongMobileController::class, 'listBidItemWeb']); Route::get('/bidder/historyFeePay', [LelongMobileController::class, 'historyFeePay']); Route::post('/bidder/updatebiditem', [LelongMobileController::class, 'updatebiditem']); }); Route::get('/item','ApiController@biditem'); Route::get('/jeniskarat','ApiController@karat'); Route::get('/listLelong', [LelongMobileController::class, 'listLelong']); Route::get('/listLelongByCawangan', [LelongMobileController::class, 'listLelongByCawangan']); Route::get('/listCawangan', [LelongMobileController::class, 'listCawangan']); Route::get('/listLelongBid', [LelongMobileController::class, 'listLelongBid']); Route::get('/showPhotoMarhun', [LelongMobileController::class, 'showPhotoMarhun']); // Route::get('/item',['as'=>'lelong.biditem','uses'=>'LelongController@biditem']); // Route::get('/lelongstop/{id}',['as'=>'lelong.stop','uses'=>'LelongController@stop']);