Commented testing purpose code
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

This commit is contained in:
dhanabalan
2026-05-13 17:16:56 +05:30
parent 8fb42203c3
commit d19b8120e2

View File

@@ -22,6 +22,7 @@ use Filament\Notifications\Notification;
use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Storage; use Illuminate\Support\Facades\Storage;
use Maatwebsite\Excel\Facades\Excel; use Maatwebsite\Excel\Facades\Excel;
// use PhpOffice\PhpSpreadsheet\IOFactory;
class ImportTransitResource extends Resource class ImportTransitResource extends Resource
{ {
@@ -446,6 +447,20 @@ class ImportTransitResource extends Resource
} }
// $spreadsheet = IOFactory::load($fullPath);
// foreach ($spreadsheet->getAllSheets() as $sheet) {
// $state = $sheet->getSheetState();
// if ($state == \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet::SHEETSTATE_HIDDEN ||
// $state == \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet::SHEETSTATE_VERYHIDDEN) {
// Notification::make()
// ->title('Import Failed')
// ->body("Hidden sheet found: \"{$sheet->getTitle()}\". Please remove all hidden sheets and try again.")
// ->danger()
// ->send();
// return;
// }
// }
try try
{ {