<?php
$structure = [
    "brighted_prototype/assets/css/style.css",
    "brighted_prototype/assets/js/script.js",
    "brighted_prototype/assets/img/logo.png",
    "brighted_prototype/assets/img/hero-bg.jpg",
    "brighted_prototype/config/db.php",
    "brighted_prototype/templates/header.php",
    "brighted_prototype/templates/footer.php",
    "brighted_prototype/index.php",
    "brighted_prototype/layanan.php",
    "brighted_prototype/events.php",
    "brighted_prototype/business_matching.php",
    "brighted_prototype/kontak.php",
    "brighted_prototype/admin_lms.php",
];

// Buat folder dan file kosong
foreach ($structure as $path) {
    $dir = dirname($path);
    if (!is_dir($dir)) {
        mkdir($dir, 0777, true);
        echo "Created directory: $dir\n";
    }

    if (!file_exists($path)) {
        file_put_contents($path, ""); // Buat file kosong
        echo "Created file: $path\n";
    }
}

echo "Struktur folder dan file berhasil dibuat.\n";
?>
