<?php

declare(strict_types=1);

final class AdminService
{
    public static function pendingPayments(int $limit = 10): array
    {
        $pdo = Api::pdo();
        $stmt = $pdo->prepare('SELECT payment_id, customer_name, service_name, amount, due_date, payment_status, days_overdue FROM admin_pending_payments LIMIT ' . (int)$limit);
        $stmt->execute();
        return $stmt->fetchAll();
    }
}
