This commit is contained in:
person-programmer
2025-12-02 13:27:19 +07:00
parent 461a740be0
commit 9c590d0dbf
100 changed files with 3677 additions and 119 deletions
+11
View File
@@ -5,6 +5,7 @@ use App\Http\Controllers\ProductController;
use App\Http\Controllers\InvoiceController;
use App\Http\Controllers\OrderController;
use App\Http\Controllers\CustomerController;
use App\Http\Controllers\DashboardController;
use Illuminate\Http\Request;
/*
@@ -22,6 +23,13 @@ Route::get('/', function () {
return view('auth.login');
});
Route::get('/dashboard',[DashboardController::class,'customersData'])->middleware(['auth'])->name('all.customers');
Route::get('/dashboard', function () {
return view('dashboard');
})->middleware(['auth'])->name('dashboard');
//product
Route::get('/add-product', function () {
return view('Admin.add_product');
@@ -80,6 +88,9 @@ Route::post('/insert-customer',[CustomerController::class,'store'])->middleware(
Route::get('/all-customers',[CustomerController::class,'customersData'])->middleware(['auth'])->name('all.customers');
Route::get('/edit_customer', function () {
return view('Admin.add_customer');
})->middleware(['auth'])->name('add.customer');
Route::get('/dashboard', function () {
return view('dashboard');