<?php

$models = [
    'Branch.php', 'Department.php', 'Designation.php', 'Employee.php',
    'Shift.php', 'Policy.php', 'Holiday.php', 'Machine.php',
    'LeaveType.php', 'ManualPunch.php', 'Punch.php'
];

$dir = __DIR__ . '/app/Models/';

foreach ($models as $model) {
    $path = $dir . $model;
    if (file_exists($path)) {
        $content = file_get_contents($path);
        
        $content = str_replace("    use \\App\\Traits\\TracksSuperadmin;\n", '', $content);
        file_put_contents($path, $content);
        echo "Removed trait from $model\n";
    }
}
