<?php

use App\Http\Controllers\Admin\ClearCacheController;
use Illuminate\Support\Facades\Route;
use App\Models\Settings;
use Laravel\Fortify\Http\Controllers\NewPasswordController;
use App\Http\Controllers\AutoTaskController;
use App\Http\Controllers\HomePageController;
/*
|--------------------------------------------------------------------------
| 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!
|
*/

require __DIR__ . '/admin/web.php';
require __DIR__ . '/user/web.php';
require __DIR__ . '/botman.php';

//activate and deactivate Online Trader
// Route::any('/activate', function () {
// 	return view('activate.index', [
// 		'settings' => Settings::where('id', '1')->first(),
// 	]);
// });

// Route::get('register-license', [ClearCacheController::class, 'saveLicense']);

// Route::any('/revoke', function () {
// 	return view('revoke.index');
// });

// Route::post('/reset-password', [NewPasswordController::class, 'store'])
// 	->middleware(['guest:' . config('fortify.guard')])
// 	->name('password.update');

//cron url
// Route::get('/cron', [AutoTaskController::class, 'autotopup'])->name('cron');
//Front Pages Route
Route::get('/', [HomePageController::class, 'index'])->name('home');
Route::get('terms', [HomePageController::class, 'terms'] )->name('terms');
Route::get('privacy',[HomePageController::class, 'privacy'])->name('privacy');
Route::get('about', [HomePageController::class, 'about'])->name('about');
Route::get('contact',[HomePageController::class, 'contact'])->name('contact');
Route::get('faq', [HomePageController::class, 'faq'])->name('faq');
Route::get('licenses', [HomePageController::class, 'license'])->name('license');
Route::get('track-order', [HomePageController::class, 'track'])->name('track-order');
Route::get('request-quote', [HomePageController::class, 'quote_request'])->name('request-quote');
Route::post('submit-quote', [HomePageController::class, 'submit_quote'])->name('submit-quote');
Route::get('services', [HomePageController::class, 'services'])->name('services');
Route::post('trackingresult',[HomePageController::class, 'trackingresult'])->name('trackingresult');
Route::get('printnow/{id}',[HomePageController::class, 'printnow'])->name('printnow');

Route::post('sendcontact', 'App\Http\Controllers\User\UsersController@sendcontact')->name('enquiry');
