<?php
$dirs = [
    __DIR__ . '/../uploads',
    __DIR__ . '/../uploads/photos',
    __DIR__ . '/../uploads/project_offers',
    __DIR__ . '/../uploads/receipts',
    __DIR__ . '/../uploads/signatures',
];
foreach ($dirs as $dir) {
    if (!file_exists($dir)) {
        if (mkdir($dir, 0777, true)) echo "CREATED: $dir\n";
    } else {
        echo "EXISTS: $dir\n";
    }
}
