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/sarvodayahospital/public/kiosk.sarvodayahospital.com/routes/web.php
<?php

use App\Http\Controllers\AjaxController;
use App\Http\Controllers\AppointmentController;
use App\Http\Controllers\DoctorController;
use App\Http\Controllers\LoginController;
use App\Http\Controllers\PatientController;
use App\Http\Controllers\RegisterController;
use App\Http\Controllers\SetupMachineController;
use App\Models\Appointment;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\Process;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "web" middleware group. Make something great!
|
*/
Route::get('session', function() {
    $result = Process::run('ifconfig | grep "HWaddr"');

    return $result->output();

    return session()->all();
});

Route::get('setup', [SetupMachineController::class, 'index'])->name('machine.setup');
Route::post('setup-machine', [SetupMachineController::class, 'setup'])->name('setup-machine');

Route::middleware(['patient_guest'])->group(function () {
    Route::get('/', [LoginController::class, 'login'])->name('login');
    Route::post('/login', [LoginController::class, 'doLogin'])->name('login.generateOTP');
    Route::post('/login-without-otp', [LoginController::class, 'loginWithoutOTP'])->name('login.loginWithoutOTP');
    Route::post('/login/otp/verification', [LoginController::class, 'otpVerification'])->name('rotp.verification');
    Route::post('/resend-otp', [LoginController::class, 'doLogin'])->name('otp.resendotp');
});

Route::post('logout', [LoginController::class, 'logout'])->name('logout');

Route::middleware(['patient_auth'])->group(function () {
    Route::get('/patients', [PatientController::class, 'index'])->name('patients')->middleware('check_patient');

    Route::get('/patient/register', [RegisterController::class, 'register'])->name('register');
    Route::post('/patient/register', [RegisterController::class, 'store'])->name('register.store');

    Route::post('/select-patient', [AppointmentController::class, 'selectPatient'])->name('patient.select');

    Route::get('/patient/acknowlegement', [AppointmentController::class, 'acknowledge'])->name('appointment-confirmation');

    Route::get('/doctors', [DoctorController::class, 'index'])->name('doctors');
    Route::get('/doctor/{slug}', [DoctorController::class, 'show'])->name('doctors.show');
    Route::get('/doctors/appointment/{doctor_id}', [DoctorController::class, 'selectDoctor'])->name('doctors.apppintment');

    Route::post('book-appointment', [AppointmentController::class, 'bookAppointment'])->name('book-appointment');
    Route::get('online-payment', [AppointmentController::class, 'onlinePayment'])->name('online-payment');

    Route::get('get-states', [AjaxController::class, 'states'])->name('states');
    Route::get('get-cities', [AjaxController::class, 'cities'])->name('cities');
    Route::post('consultation-fee', [AjaxController::class, 'getDoctorConsultantFee'])->name('consultation-fee');
    Route::post('upload-bill-transaction', [AjaxController::class, 'UploadBilledTransaction'])->name('upload-bill-transaction');
    Route::post('get-transaction-status', [AjaxController::class, 'transactionStatus'])->name('get-transaction-status');
    Route::post('cancel-transaction', [AjaxController::class, 'cancelTransaction'])->name('cancel-transaction');
});
Route::post('send-einvoice', [AjaxController::class, 'einvoice'])->name('einvoice');
Route::get('pinelab-transaction-confirm/{parameter}', [AppointmentController::class, 'transactionConfirm'])->name('pinelab-transaction-confirm');
Route::post('appointment/booked', [AppointmentController::class, 'updateOnlinePayment'])->name('appointment.payment-success');
Route::get('appointment/failed', [AppointmentController::class, 'bookingFailed'])->name('appointment.payment-failed');
Route::get('appointment/print-receipt', [AppointmentController::class, 'printAppointmentInvoice'])->name('print-receipt');