⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.10
Server IP:
15.204.235.159
Server:
Linux srv.techlup.co.ke 4.18.0-553.5.1.el8_10.x86_64 #1 SMP Wed Jun 5 09:12:13 EDT 2024 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
tech
/
shopadmin.techlup.co.ke
/
admin
/
routes
/
View File Name :
web.php
<?php use App\Models\User; use App\Models\DeliveryMan; use App\Exports\UsersExport; use Illuminate\Http\Request; use App\Library\ClientSecret; use App\Models\EmailTemplate; use App\CentralLogics\Helpers; use App\Exports\EmployeeExport; use App\Models\BusinessSetting; use App\Models\NotificationMessage; use Illuminate\Support\Facades\Mail; use Maatwebsite\Excel\Facades\Excel; 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! | */ Route::get('/', 'HomeController@index')->name('home'); Route::get('lang/{locale}', 'HomeController@lang')->name('lang'); Route::get('terms-and-conditions', 'HomeController@terms_and_conditions')->name('terms-and-conditions'); Route::get('about-us', 'HomeController@about_us')->name('about-us'); Route::get('contact-us', 'HomeController@contact_us')->name('contact-us'); Route::post('send-message', 'HomeController@send_message')->name('send-message'); Route::get('privacy-policy', 'HomeController@privacy_policy')->name('privacy-policy'); Route::get('cancelation', 'HomeController@cancelation')->name('cancelation'); Route::get('refund', 'HomeController@refund_policy')->name('refund'); Route::get('shipping-policy', 'HomeController@shipping_policy')->name('shipping-policy'); Route::post('newsletter/subscribe', 'NewsletterController@newsLetterSubscribe')->name('newsletter.subscribe'); Route::get('login/{tab}', 'LoginController@login')->name('login'); Route::post('login_submit', 'LoginController@submit')->name('login_post')->middleware('actch'); Route::get('logout', 'LoginController@logout')->name('logout'); Route::get('/reload-captcha', 'LoginController@reloadCaptcha')->name('reload-captcha'); Route::get('/reset-password', 'LoginController@reset_password_request')->name('reset-password'); Route::post('/vendor-reset-password', 'LoginController@vendor_reset_password_request')->name('vendor-reset-password'); Route::get('/password-reset', 'LoginController@reset_password')->name('change-password'); Route::post('verify-otp', 'LoginController@verify_token')->name('verify-otp'); Route::post('reset-password-submit', 'LoginController@reset_password_submit')->name('reset-password-submit'); Route::get('otp-resent', 'LoginController@otp_resent')->name('otp_resent'); Route::get('authentication-failed', function () { $errors = []; array_push($errors, ['code' => 'auth-001', 'message' => 'Unauthenticated.']); return response()->json([ 'errors' => $errors, ], 401); })->name('authentication-failed'); Route::group(['prefix' => 'payment-mobile'], function () { Route::get('/', 'PaymentController@payment')->name('payment-mobile'); Route::get('set-payment-method/{name}', 'PaymentController@set_payment_method')->name('set-payment-method'); }); // SSLCOMMERZ Start /*Route::get('/example1', 'SslCommerzPaymentController@exampleEasyCheckout'); Route::get('/example2', 'SslCommerzPaymentController@exampleHostedCheckout');*/ Route::post('pay-ssl', 'SslCommerzPaymentController@index')->name('pay-ssl'); Route::post('/success', 'SslCommerzPaymentController@success'); Route::post('/fail', 'SslCommerzPaymentController@fail'); Route::post('/cancel', 'SslCommerzPaymentController@cancel'); Route::post('/ipn', 'SslCommerzPaymentController@ipn'); //SSLCOMMERZ END /*paypal*/ /*Route::get('/paypal', function (){return view('paypal-test');})->name('paypal');*/ // Route::post('pay-paypal', 'PaypalPaymentController@payWithpaypal')->name('pay-paypal'); // Route::get('paypal-status', 'PaypalPaymentController@getPaymentStatus')->name('paypal-status'); /*paypal*/ Route::group(['prefix' => 'paypal', 'as' => 'paypal.'], function () { Route::get('pay', 'PaypalPaymentController@payment')->name('pay'); Route::any('callback', 'PaypalPaymentController@callback')->name('callback') ->withoutMiddleware([\App\Http\Middleware\VerifyCsrfToken::class]);; Route::any('cancel', 'PaypalPaymentController@cancel')->name('cancel') ->withoutMiddleware([\App\Http\Middleware\VerifyCsrfToken::class]);; }); /*Route::get('stripe', function (){ return view('stripe-test'); });*/ Route::get('pay-stripe', 'StripePaymentController@payment_process_3d')->name('pay-stripe'); Route::get('pay-stripe/success/{order_id}/{transaction_ref}', 'StripePaymentController@success')->name('pay-stripe.success'); Route::get('pay-stripe/fail', 'StripePaymentController@fail')->name('pay-stripe.fail'); // Get Route For Show Payment Form Route::get('paywithrazorpay', 'RazorPayController@payWithRazorpay')->name('paywithrazorpay'); Route::post('payment-razor/{order_id}', 'RazorPayController@payment')->name('payment-razor'); /*Route::fallback(function () { return redirect('/admin/auth/login'); });*/ Route::get('payment-success', 'PaymentController@success')->name('payment-success'); Route::get('payment-fail', 'PaymentController@fail')->name('payment-fail'); //senang pay Route::match(['get', 'post'], '/return-senang-pay', 'SenangPayController@return_senang_pay')->name('return-senang-pay'); // paymob Route::post('/paymob-credit', 'PaymobController@credit')->name('paymob-credit'); Route::get('/paymob-callback', 'PaymobController@callback')->name('paymob-callback'); //paystack // Route::post('/paystack-pay', 'PaystackController@redirectToGateway')->name('paystack-pay'); // Route::get('/paystack-callback', 'PaystackController@handleGatewayCallback')->name('paystack-callback'); // Route::get('/paystack', function () { // return view('paystack'); // }); Route::get('/paystack-callback', 'PaystackController@callback')->name('paystack-callback'); // The route that the button calls to initialize payment Route::post('/flutterwave-pay', 'FlutterwaveController@initialize')->name('flutterwave_pay'); // The callback url after a payment Route::get('/rave/callback/{payment_id}', 'FlutterwaveController@callback')->name('flutterwave_callback'); // The callback url after a payment Route::get('mercadopago/home', 'MercadoPagoController@index')->name('mercadopago.index'); Route::post('mercadopago/make-payment', 'MercadoPagoController@make_payment')->name('mercadopago.make_payment'); Route::get('mercadopago/get-user', 'MercadoPagoController@get_test_user')->name('mercadopago.get-user'); //paytabs Route::any('/paytabs-payment', 'PaytabsController@payment')->name('paytabs-payment'); Route::any('/paytabs-response', 'PaytabsController@callback_response')->name('paytabs-response'); //bkash Route::group(['prefix' => 'bkash'], function () { // Payment Routes for bKash Route::post('get-token', 'BkashPaymentController@getToken')->name('bkash-get-token'); // Route::post('create-payment', 'BkashPaymentController@createPayment')->name('bkash-create-payment'); // Route::post('execute-payment', 'BkashPaymentController@executePayment')->name('bkash-execute-payment'); // Route::get('query-payment', 'BkashPaymentController@queryPayment')->name('bkash-query-payment'); Route::get('make-payment', 'BkashPaymentController@make_tokenize_payment')->name('bkash-make-payment'); Route::any('callback', 'BkashPaymentController@callback')->name('bkash-callback'); // Refund Routes for bKash // Route::get('refund', 'BkashRefundController@index')->name('bkash-refund'); // Route::post('refund', 'BkashRefundController@refund')->name('bkash-refund'); }); // The callback url after a payment PAYTM Route::get('paytm-payment', 'PaytmController@payment')->name('paytm-payment'); Route::any('paytm-response', 'PaytmController@callback')->name('paytm-response'); // The callback url after a payment LIQPAY Route::get('liqpay-payment', 'LiqPayController@payment')->name('liqpay-payment'); Route::any('liqpay-callback/{order_id}', 'LiqPayController@callback')->name('liqpay-callback'); Route::get('/test', function () { dd('Hello tester'); }); Route::get('module-test', function () { }); //Restaurant Registration Route::group(['prefix' => 'store', 'as' => 'restaurant.'], function () { Route::get('apply', 'VendorController@create')->name('create'); Route::post('apply', 'VendorController@store')->name('store'); Route::get('get-all-modules', 'VendorController@get_all_modules')->name('get-all-modules'); }); //Deliveryman Registration Route::group(['prefix' => 'deliveryman', 'as' => 'deliveryman.'], function () { Route::get('apply', 'DeliveryManController@create')->name('create'); Route::post('apply', 'DeliveryManController@store')->name('store'); });