<?php
$networkDrive = '\\\\hq_base\\shared_home\\GOPOOLS\\CRM\\Final\\v1.2.0_Assistant_Calendar';
$localPath = 'c:\\xampp\\htdocs\\gopools';

$files = [
    'app/core/translations.php',
    'public/projects/index.php',
    'public/dashboard/index.php',
    'public/api/calendar_events.php',
    'public/api/assistant_status.php'
];

foreach ($files as $file) {
    $src = $localPath . '\\' . str_replace('/', '\\', $file);
    $dest = $networkDrive . '\\' . str_replace('/', '\\', $file);
    
    // Create directory if it doesn't exist
    $dir = dirname($dest);
    if (!is_dir($dir)) {
        mkdir($dir, 0777, true);
    }
    
    if (copy($src, $dest)) {
        echo "Copied: $file\n";
    } else {
        echo "Failed to copy: $file\n";
    }
}
echo "Done!\n";
