<?php
$dest_base = '\\\\hq_base\\shared_home\\GOPOOLS\\CRM\\Final\\v1.3.0_Cumulative_Update';
$src_base = 'c:\\xampp\\htdocs\\gopools';

$files = [
    '/public/api/upload_assignment_offer.php',
    '/public/api/complete_assignment.php',
    '/public/employees/job_action.php',
    '/public/partners/my_jobs.php',
    '/public/projects/dispatch.php'
];

foreach ($files as $file) {
    $src = $src_base . str_replace('/', '\\', $file);
    $dest = $dest_base . str_replace('/', '\\', $file);
    $dir = dirname($dest);
    if (!is_dir($dir)) {
        mkdir($dir, 0777, true);
    }
    if (copy($src, $dest)) {
        echo "Copied $src to $dest\n";
    } else {
        echo "Failed to copy $src to $dest\n";
    }
}
