<?php

use App\Http\Controllers\Web\HomeController;
use Illuminate\Support\Facades\Route;
use Mcamara\LaravelLocalization\Facades\LaravelLocalization;
use App\Jobs\SendMailJob;
use App\Mail\SendMail;

/*
  |--------------------------------------------------------------------------
  | 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!
  |
 */

//Route::get('language/{id}/{slug?}', 'LanguageController@details');

Route::group(['prefix' => LaravelLocalization::setLocale()], function () {
    Route::get('test-email','App\Http\Controllers\Web\CronController@TargetNotMetAlarm');
//    Route::get('/coming', [PageController::class,'coming'])->name('web.coming');
    Route::group(['middleware' => []], function () {
        //Home
        Route::get('/',function(){
            return redirect('/admin');
        });
        // Route::get('/', [HomeController::class,'index']);
        // Route::post('/', [HomeController::class,'store']);

    });
});