feat: initial commit

This commit is contained in:
JP
2024-08-05 08:04:35 +08:00
parent 0f3c3db73b
commit 140e821e0c
194 changed files with 14509 additions and 254 deletions

View File

@@ -2,6 +2,21 @@
use Illuminate\Support\Facades\Route;
Route::get('/', function () {
return view('welcome');
Route::view('/', 'welcome');
Route::view('dashboard', 'dashboard')
->middleware(['auth', 'verified'])
->name('dashboard');
Route::view('profile', 'profile')
->middleware(['auth'])
->name('profile');
Route::get('preview-transmittal',function () {
return view('transmittal.export.transmittal-export-table')->with(['transmittals' => \App\Models\Transmittal::withCount(['files','notes','remarks'])->with(['files' => function($files) {
$files->withCount(['notes','remarks']);
}])->get()]);
});
require __DIR__.'/auth.php';