[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: backend.php
<?php use App\Models\PharmacyExpense; use Illuminate\Support\Facades\Route; use App\Http\Controllers\ExportController; Route::group(['middleware' => ['auth', 'XSS','local']], function () { Route::name('user.')->prefix('users')->controller('UserController')->group(function () { Route::get('/index', 'index')->name('index'); Route::get('/create', 'create')->name('create'); Route::post('/store', 'store')->name('store')->middleware('isDemo'); Route::get('/edit/{user}', 'edit')->name('edit'); Route::put('/update/{user}', 'update')->name('update')->middleware('isDemo'); Route::delete('/delete/{user}', 'delete')->name('delete')->middleware('isDemo'); }); Route::name('role.')->prefix('roles')->controller('RoleController')->group(function () { Route::get('/index', 'index')->name('index'); Route::get('/create', 'create')->name('create'); Route::post('/store', 'store')->name('store')->middleware('isDemo'); Route::get('/edit/{role}', 'edit')->name('edit'); Route::put('/update/{role}', 'update')->name('update')->middleware('isDemo'); Route::delete('/delete/{role}', 'delete')->name('delete')->middleware('isDemo'); }); Route::name('language.')->prefix('languages')->controller('LanguageController')->group(function () { Route::get('/index', 'index')->name('index'); Route::get('/create', 'create')->name('create'); Route::post('/store', 'store')->name('store')->middleware('isDemo'); Route::get('/edit/{language}', 'edit')->name('edit'); Route::put('/update/{language}', 'update')->name('update')->middleware('isDemo'); Route::delete('/delete/{language}', 'delete')->name('delete')->middleware('isDemo'); Route::match(['get', 'post'], '/update/terms/{language}', 'updateTerms')->name('terms.update'); }); Route::name('customer.')->prefix('customers')->controller('CustomerController')->group(function () { Route::get('/index', 'index')->name('index'); Route::get('/create', 'create')->name('create'); Route::post('/store', 'store')->name('store')->middleware('isDemo'); Route::get('/edit/{customer}', 'edit')->name('edit'); Route::get('/show/{customer}', 'show')->name('show'); Route::put('/update/{customer}', 'update')->name('update')->middleware('isDemo'); Route::delete('/delete/{customer}', 'delete')->name('delete')->middleware('isDemo'); Route::post('due-payment','duePayment')->name('paydue'); }); Route::name('vendor.')->prefix('vendors')->controller('VendorController')->group(function (){ Route::get('index', 'index')->name('index'); Route::get('create', 'create')->name('create'); Route::post('store', 'store')->name('store'); Route::get('edit/{id}', 'edit')->name('edit'); Route::put('update/{id}', 'update')->name('update'); Route::get('show/{id}', 'show')->name('show'); Route::delete('delete/{id}', 'delete')->name('delete'); }); Route::name('supplier.')->controller('SupplierController')->prefix('supplier')->group(function (){ Route::get('index', 'index')->name('index'); Route::get('create', 'create')->name('create'); Route::post('store', 'store')->name('store'); Route::get('edit/{id}', 'edit')->name('edit'); Route::put('update/{id}', 'update')->name('update'); Route::get('show/{id}', 'show')->name('show'); Route::delete('delete/{id}', 'delete')->name('delete'); Route::post('due-payment','duePayment')->name('paydue'); }); Route::name('categories.')->prefix('medicines/categories')->controller('ProductCategoryController')->group(function (){ Route::get('/','index')->name('index'); Route::get('/create','create')->name('create'); Route::post('/store','store')->name('store'); Route::get('/edit/{id}','edit')->name('edit'); Route::put('/update/{id}','update')->name('update'); Route::delete('/delete/{id}','delete')->name('delete'); }); Route::name('medicines.')->prefix('medicines')->controller('MedicineController')->group(function (){ Route::get('/','index')->name('index'); Route::get('/create','create')->name('create'); Route::post('/store','store')->name('store'); Route::get('/edit/{id}','edit')->name('edit'); Route::put('/update/{id}','update')->name('update'); Route::delete('/delete/{id}','delete')->name('delete'); }); Route::name('expense-categories.')->prefix('expense-categories')->controller('ExpenseCategoryController')->group(function () { Route::get('/index', 'index')->name('index'); Route::get('/create', 'create')->name('create'); Route::post('/store', 'store')->name('store'); Route::get('/edit/{expenseCategory}', 'edit')->name('edit'); Route::put('/update/{expenseCategory}', 'update')->name('update'); Route::delete('/delete/{expenseCategory}', 'delete')->name('delete')->middleware('isDemo'); }); Route::name('expenses.')->prefix('expenses')->controller('ExpenseController')->group(function () { Route::get('/index', 'index')->name('index'); Route::get('/create', 'create')->name('create'); Route::post('/store', 'store')->name('store'); Route::get('/edit/{id}', 'edit')->name('edit'); Route::put('/update/{id}', 'update')->name('update')->middleware('isDemo'); Route::delete('/delete/{id}', 'delete')->name('delete')->middleware('isDemo'); }); Route::prefix('report')->as('report.')->controller('ReportController')->group(function () { Route::get('instock-medicine', 'inStockMedicine')->name('instock'); Route::get('lowstock-medicine', 'lowStockMedicine')->name('low_stock'); Route::get('stockout-medicine', 'stockoutMedicine')->name('stockout'); Route::get('upcoming-expire-medicine', 'upcomingExpireMedicine')->name('upcoming_expire'); Route::get('already-expire-medicine', 'alreadyExpireMedicine')->name('already_expire'); Route::get('due-customer', 'dueCustomer')->name('due_customer'); Route::get('payable-manufacturer', 'payableManufacturer')->name('payable_manufacturer'); Route::get('sale-purchase', 'salePurchase')->name('sale_purchase'); Route::get('profit-loss', 'profitLoss')->name('profit_loss'); }); Route::name('payment_method.')->prefix('payment-method')->controller('PaymentController')->group(function (){ Route::get('index','index')->name('index'); Route::get('create','create')->name('create'); Route::post('store','store')->name('store'); Route::get('edit/{id}','edit')->name('edit'); Route::put('update/{id}','update')->name('update'); Route::delete('delete/{id}','delete')->name('delete'); Route::post('add-balance','addBalance')->name('add_balance'); }); Route::name('leaf.')->prefix('medicines/leaf')->controller('LeafController')->group(function() { Route::get('index','index')->name('index'); Route::get('create','create')->name('create'); Route::post('store','store')->name('store'); Route::get('edit/{id}','edit')->name('edit'); Route::put('update/{id}','update')->name('update'); Route::delete('delete/{id}','delete')->name('delete'); }); Route::name('unit.')->prefix('medicines/unit')->controller('UnitController')->group(function() { Route::get('index','index')->name('index'); Route::get('create','create')->name('create'); Route::post('store','store')->name('store'); Route::get('edit/{id}','edit')->name('edit'); Route::put('update/{id}','update')->name('update'); Route::delete('delete/{id}','delete')->name('delete'); }); Route::name('type.')->prefix('medicines/type')->controller('TypeController')->group(function() { Route::get('index','index')->name('index'); Route::get('create','create')->name('create'); Route::post('store','store')->name('store'); Route::get('edit/{id}','edit')->name('edit'); Route::put('update/{id}','update')->name('update'); Route::delete('delete/{id}','delete')->name('delete'); }); Route::name('setting.')->prefix('settings')->controller('SettingController')->group(function () { Route::match(['get','post'],'/', 'generalSetting')->name('generalSetting')->middleware('isDemo'); Route::match(['get','post'],'/email-setting', 'emailSetting')->name('emailSetting')->middleware('isDemo'); }); Route::get('merge-product', 'MedicineController@mergeProduct')->name('mergeProduct'); });
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.77 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002