<?php
// Scan for ProductResource table configuration
$files = [
    __DIR__ . '/../app/Filament/Resources/ProductResource.php',
    __DIR__ . '/../app/Filament/Resources/Products/Tables/ProductsTable.php',
];

foreach ($files as $file) {
    if (file_exists($file)) {
        echo "Found: $file\n";
        $content = file_get_contents($file);
        // Print lines that look like columns
        $lines = explode("\n", $content);
        foreach ($lines as $num => $line) {
            if (str_contains($line, 'Column::') || str_contains($line, 'Columns\\')) {
                echo "  Line " . ($num + 1) . ": " . trim($line) . "\n";
            }
        }
    }
}
