43 lines
2.1 KiB
PHP
43 lines
2.1 KiB
PHP
<?php
|
|
|
|
use App\Http\Controllers\AddressController;
|
|
use App\Http\Controllers\CustomerController;
|
|
use App\Http\Controllers\EController;
|
|
use App\Http\Controllers\IncomingController;
|
|
use App\Http\Controllers\InvoiceController;
|
|
use App\Http\Controllers\OptionController;
|
|
use App\Http\Controllers\PaymentController;
|
|
use App\Http\Controllers\PdfController;
|
|
use App\Http\Controllers\ProfileController;
|
|
use App\Http\Controllers\TaxrateController;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::get('/', function () {
|
|
return view('welcome');
|
|
});
|
|
|
|
Route::get('/dashboard', function () {
|
|
return view('dashboard');
|
|
})->middleware(['auth', 'verified'])->name('dashboard');
|
|
|
|
Route::middleware('auth')->group(function () {
|
|
Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit');
|
|
Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update');
|
|
Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy');
|
|
|
|
Route::resource('/customer', CustomerController::class)->only(['index', 'create', 'edit']);
|
|
Route::get('/address/{id}/edit', [AddressController::class, 'edit'])->name('address.edit');
|
|
Route::resource('/taxrate', TaxrateController::class)->only(['index', 'create', 'edit']);
|
|
Route::get('/option', [OptionController::class, 'index'])->name('option.index');
|
|
Route::resource('/invoice', InvoiceController::class)->only(['index', 'create', 'show', 'edit']);
|
|
Route::get('/invoice/{id}/pdf-download', [PdfController::class, 'downloadInvoice'])->name('invoice.pdfDownload');
|
|
Route::get('/invoice/{id}/xml-download', [EController::class, 'downloadInvoice'])->name('invoice.eDownload');
|
|
Route::get('/invoice/{id}/mail', [InvoiceController::class, 'mail'])->name('invoice.mail');
|
|
Route::resource('/payment', PaymentController::class)->only(['index', 'create', 'edit']);
|
|
Route::get('/excel', function() { return view('excel'); })->name('excel');
|
|
Route::resource('/incoming', IncomingController::class)->only(['index', 'create', 'edit']);
|
|
Route::get('/incoming-upload', [IncomingController::class, 'upload'])->name('incoming.upload');
|
|
});
|
|
|
|
require __DIR__.'/auth.php';
|