<?php
$dirs = [
    'c:\xampp\htdocs\inveetaire\app\views\public\identity\sections',
    'c:\xampp\htdocs\inveetaire\app\views\public\identity\partials'
];

$search = [
    'text-white bg-amber-500 hover:bg-amber-600',
    'bg-white',
    'border-slate-200',
    'text-slate-800',
    'text-slate-500',
    'text-amber-600',
    'bg-amber-50',
    'border-amber-100',
];

foreach ($dirs as $dir) {
    foreach (glob("$dir/*.php") as $file) {
        $content = file_get_contents($file);
        $lines = explode("\n", $content);
        foreach ($lines as $i => $line) {
            foreach ($search as $s) {
                if (strpos($line, $s) !== false) {
                    echo basename($file) . ":" . ($i+1) . " -> " . trim($line) . "\n";
                }
            }
        }
    }
}
