<?php
$years = [2022, 2024, 2025];
$base  = __DIR__ . '/uploads/dokumen/';
 
foreach ($years as $year) {
    for ($i = 1; $i <= 20; $i++) {
        $path = $base . $year . '/pokja_' . $i . '/';
        if (!is_dir($path)) {
            mkdir($path, 0755, true);
            echo "Dibuat: $path <br>";
        } else {
            echo "Sudah ada: $path <br>";
        }
    }
}
 
echo "<br><strong>Selesai! Hapus file ini dari server.</strong>";
 