Add initial Code
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled

This commit is contained in:
2025-10-20 08:57:51 +02:00
parent d204098d8e
commit 8703e5ff40
449 changed files with 34565 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\CustomerController;
use App\Http\Controllers\InvoiceController;
use App\Http\Controllers\PaymentTermsController;
use App\Http\Controllers\SettingController;
Route::get('customers', [CustomerController::class, 'index']);
// ->middleware('auth:sanctum');
// Route::apiResource('invoices', InvoiceController::class);
// ->middleware('auth:sanctum');
Route::get('/invoices', [InvoiceController::class, 'index']);
Route::post('/invoices', [InvoiceController::class, 'store']);
Route::put('/invoices/{id}', [InvoiceController::class, 'update']);
Route::delete('/invoices/{id}', [InvoiceController::class, 'delete']);
Route::get('/invoices/{id}', [InvoiceController::class, 'single']);
Route::get('/paymentterms', [PaymentTermsController::class, 'index']);
Route::get('/settings', [SettingController::class, 'index']);
Route::post('/settings', [SettingController::class, 'update']);
+52
View File
@@ -0,0 +1,52 @@
<?php
use App\Http\Controllers\Auth\AuthenticatedSessionController;
use App\Http\Controllers\Auth\EmailVerificationNotificationController;
use App\Http\Controllers\Auth\EmailVerificationPromptController;
use App\Http\Controllers\Auth\NewPasswordController;
use App\Http\Controllers\Auth\PasswordResetLinkController;
use App\Http\Controllers\Auth\RegisteredUserController;
use App\Http\Controllers\Auth\VerifyEmailController;
use Illuminate\Support\Facades\Route;
Route::middleware('guest')->group(function () {
Route::get('register', [RegisteredUserController::class, 'create'])
->name('register');
Route::post('register', [RegisteredUserController::class, 'store'])
->name('register.store');
Route::get('login', [AuthenticatedSessionController::class, 'create'])
->name('login');
Route::post('login', [AuthenticatedSessionController::class, 'store'])
->name('login.store');
Route::get('forgot-password', [PasswordResetLinkController::class, 'create'])
->name('password.request');
Route::post('forgot-password', [PasswordResetLinkController::class, 'store'])
->name('password.email');
Route::get('reset-password/{token}', [NewPasswordController::class, 'create'])
->name('password.reset');
Route::post('reset-password', [NewPasswordController::class, 'store'])
->name('password.store');
});
Route::middleware('auth')->group(function () {
Route::get('verify-email', EmailVerificationPromptController::class)
->name('verification.notice');
Route::get('verify-email/{id}/{hash}', VerifyEmailController::class)
->middleware(['signed', 'throttle:6,1'])
->name('verification.verify');
Route::post('email/verification-notification', [EmailVerificationNotificationController::class, 'store'])
->middleware('throttle:6,1')
->name('verification.send');
Route::post('logout', [AuthenticatedSessionController::class, 'destroy'])
->name('logout');
});
+8
View File
@@ -0,0 +1,8 @@
<?php
use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;
Artisan::command('inspire', function () {
$this->comment(Inspiring::quote());
})->purpose('Display an inspiring quote');
+28
View File
@@ -0,0 +1,28 @@
<?php
use App\Http\Controllers\Settings\PasswordController;
use App\Http\Controllers\Settings\ProfileController;
use App\Http\Controllers\Settings\TwoFactorAuthenticationController;
use Illuminate\Support\Facades\Route;
use Inertia\Inertia;
Route::middleware('auth')->group(function () {
Route::redirect('settings', '/settings/profile');
Route::get('settings/profile', [ProfileController::class, 'edit'])->name('profile.edit');
Route::patch('settings/profile', [ProfileController::class, 'update'])->name('profile.update');
Route::delete('settings/profile', [ProfileController::class, 'destroy'])->name('profile.destroy');
Route::get('settings/password', [PasswordController::class, 'edit'])->name('password.edit');
Route::put('settings/password', [PasswordController::class, 'update'])
->middleware('throttle:6,1')
->name('password.update');
Route::get('settings/appearance', function () {
return Inertia::render('settings/Appearance');
})->name('appearance.edit');
Route::get('settings/two-factor', [TwoFactorAuthenticationController::class, 'show'])
->name('two-factor.show');
});
+60
View File
@@ -0,0 +1,60 @@
<?php
use Illuminate\Support\Facades\Route;
use Inertia\Inertia;
use App\Http\Controllers\InvoiceController;
Route::get('/welcome', function () {
return Inertia::render('Welcome');
})->name('welcome');
Route::get('/', function () {
return Inertia::render('Dashboard');
})->middleware(['auth', 'verified'])->name('home');
Route::get('dashboard', function () {
return Inertia::render('Dashboard');
})->middleware(['auth', 'verified'])->name('dashboard');
Route::get('crm', function () {
return Inertia::render('CRM');
})->middleware(['auth', 'verified'])->name('crm');
Route::get('offers', function () {
return Inertia::render('Offers');
})->middleware(['auth', 'verified'])->name('offers');
Route::get('customers', function () {
return Inertia::render('Customers');
})->middleware(['auth', 'verified'])->name('customers');
Route::get('leads', function () {
return Inertia::render('Leads');
})->middleware(['auth', 'verified'])->name('leads');
Route::get('achievements', function () {
return Inertia::render('Achievements');
})->middleware(['auth', 'verified'])->name('achievements');
Route::get('invoices', function () {
return Inertia::render('Invoices');
})->middleware(['auth', 'verified'])->name('invoices');
Route::get('invoice/{id}', [InvoiceController::class, 'preview'])
->middleware(['auth', 'verified'])
->name('invoice.preview');
Route::get('invoice/{id}/pdf', [InvoiceController::class, 'exportPdf'])
->middleware(['auth', 'verified'])
->name('invoice.exportPdf');
Route::get('invoice/{id}/xml', [InvoiceController::class, 'exportXml'])
->middleware(['auth', 'verified'])
->name('invoice.exportXml');
Route::get('timesheets', function () {
return Inertia::render('Timesheets');
})->middleware(['auth', 'verified'])->name('timesheets');
require __DIR__ . '/settings.php';
require __DIR__ . '/auth.php';