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

44 lines
1.6 KiB
PHTML

3 months ago
<?php
3 months ago
use App\Http\Controllers\ContactController;
3 months ago
use App\Http\Controllers\CustomerController;
3 months ago
use App\Http\Controllers\DashboardController;
3 weeks ago
use App\Http\Controllers\InvoiceController;
3 months ago
use App\Http\Controllers\ManagementController;
3 months ago
use App\Http\Controllers\OrderController;
3 months ago
use App\Http\Controllers\OrderProductController;
3 months ago
use App\Http\Controllers\PackingSlipController;
use App\Http\Controllers\ShippingEntryController;
3 months ago
use Illuminate\Support\Facades\Route;
Route::get('/', function () {
3 months ago
return redirect()->route('dashboard');
3 months ago
});
Auth::routes();
3 months ago
Route::get('/dashboard', [DashboardController::class, 'index'])->name('dashboard');
3 months ago
3 months ago
Route::get('/management/{tab?}', [ManagementController::class, 'index'])->name('management.index');
3 months ago
3 months ago
// Customers
Route::resource('customers', CustomerController::class);
3 months ago
Route::get('/customers/{customer}/{tab}', [CustomerController::class, 'show'])->name('customers.show');
Route::post('/customers/request-destroy', [CustomerController::class, 'requestDestroy'])->name('customers.requestDestroy');
3 months ago
// OrderProducts
Route::resource('order-products', OrderProductController::class);
// Contacts
3 months ago
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);
3 months ago
Route::resource('orders', OrderController::class);
Route::get('orders/{order}/pdf', [OrderController::class, 'pdf'])->name('orders.pdf');
3 weeks ago
Route::get('invoices/{invoice}/pdf', [InvoiceController::class, 'pdf'])->name('invoice.pdf');