|
|
@@ -2,12 +2,7 @@
|
|
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
|
-Route::get('/reports/{report}', function ($report){
|
|
|
- // Fetch the datatable name dynamically from the database (replace with your logic)
|
|
|
- $reportName = DB::table('reports')->where('name', '=', $report)->value('name');
|
|
|
- // Pass it to the view
|
|
|
- return view('MainView', compact('reportName'));
|
|
|
|
|
|
-});
|
|
|
Route::get('/login', \App\Livewire\Login::class);
|
|
|
Route::view('/test-datatables', 'components.layouts/datatables');
|
|
|
+Route::get('/reports/{reportName}', App\Livewire\ShowReports::class);
|