You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
topnotch_website/routes/web.php

40 lines
1.4 KiB
PHP

<?php
use App\Http\Controllers\ContactController;
use App\Http\Controllers\CustomerController;
use App\Http\Controllers\DashboardController;
use App\Http\Controllers\ManagementController;
use App\Http\Controllers\OrderController;
use App\Http\Controllers\OrderProductController;
use App\Http\Controllers\PackingSlipController;
use App\Http\Controllers\ShippingEntryController;
use Illuminate\Support\Facades\Route;
Route::get('/', function () {
return redirect()->route('dashboard');
});
Auth::routes();
Route::get('/dashboard', [DashboardController::class, 'index'])->name('dashboard');
Route::get('/management/{tab?}', [ManagementController::class, 'index'])->name('management.index');
// Customers
Route::resource('customers', CustomerController::class);
Route::get('/customers/{customer}/{tab}', [CustomerController::class, 'show'])->name('customers.show');
Route::post('/customers/request-destroy', [CustomerController::class, 'requestDestroy'])->name('customers.requestDestroy');
// OrderProducts
Route::resource('order-products', OrderProductController::class);
// Contacts
Route::resource('contacts', ContactController::class);
Route::post('/contacts/request-destroy', [ContactController::class, 'requestDestroy'])->name('contacts.requestDestroy');
Route::resource('packing-slips', PackingSlipController::class);
Route::resource('shipping-entries', ShippingEntryController::class);
Route::resource('orders', OrderController::class);