<?php
use App\Http\Controllers\GlobalController;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\FileController;
use Illuminate\Support\Facades\File;
Route::controller(GlobalController::class)->prefix('global')->name('global.')->group(function(){
Route::post('get-states','getStates')->name('country.states');
Route::post('get-cities','getCities')->name('country.cities');
Route::post('get-countries','getCountries')->name('countries');
Route::post('get-timezones','getTimezones')->name('timezones');
Route::post('set-cookie','setCookie')->name('set.cookie');
});
Route::post('languages/switch',[GlobalController::class,'languageSwitch'])->name('frontend.languages.switch');
// FileHolder Routes
Route::post('fileholder-upload',[FileController::class,'storeFile'])->name('fileholder.upload');
Route::post('fileholder-remove',[FileController::class,'removeFile'])->name('fileholder.remove');
Route::get("file/download/{path_source}/{name}",function($path_source,$file_name) {
$file_link = get_files_path($path_source) . "/" . $file_name;
if(File::exists($file_link)) return response()->download($file_link);
return back()->with(['error' => ['File doesn\'t exists']]);
})->name('file.download');
How To Payment
Making a payment on our website is quick and secure. Start by logging in or creating an account. Select your preferred payment method, input the required details, and review the information. Once you confirm everything is correct, click on the "Submit Payment" button. You’ll receive instant confirmation and can track your payment status through your account dashboard. It’s an easy and secure process.