feat: replace Excel export with PDF export for transmittals
- Add new TransmittalPDFExportJob to generate PDFs using dompdf - Remove old Excel export implementation (TransmittalsExport) - Update ExportCompleteJob to use new PDF job instead of Excel - Add TestQueueJob for queue testing with new route - Update notification label from "Download File" to "Download PDF File" - Fix auth() helper usage by importing Auth facade consistently
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
use App\Jobs\TestQueueJob;
|
||||
use App\Models\Transmittal;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
@@ -13,10 +14,16 @@ Route::view('profile', 'profile')
|
||||
->middleware(['auth'])
|
||||
->name('profile');
|
||||
|
||||
Route::get('preview-transmittal', function () {
|
||||
return view('transmittal.export.transmittal-export-table')->with(['transmittals' => Transmittal::withCount(['files', 'notes', 'remarks'])->with(['files' => function ($files) {
|
||||
$files->withCount(['notes', 'remarks']);
|
||||
}])->get()]);
|
||||
// Route::get('preview-transmittal', function () {
|
||||
// return view('transmittal.export.transmittal-export-table')->with(['transmittals' => Transmittal::withCount(['files', 'notes', 'remarks'])->with(['files' => function ($files) {
|
||||
// $files->withCount(['notes', 'remarks']);
|
||||
// }])->get()]);
|
||||
// });
|
||||
|
||||
Route::get('queue-test', function () {
|
||||
TestQueueJob::dispatch();
|
||||
|
||||
return 'TestQueueJob dispatched';
|
||||
});
|
||||
|
||||
require __DIR__.'/auth.php';
|
||||
|
||||
Reference in New Issue
Block a user