<?php
require_once __DIR__ . '/../../Config/config.php';
require_login();

$type = $_GET['type'] ?? 'trial-balance';
switch($type){
    case 'profit-loss': require_once __DIR__.'/../../Reports/ProfitLossPDF.php'; break;
    case 'balance-sheet': require_once __DIR__.'/../../Reports/BalanceSheetPDF.php'; break;
    case 'cashflow': require_once __DIR__.'/../../Reports/CashFlowPDF.php'; break;
    default: require_once __DIR__.'/../../Reports/TrialBalancePDF.php'; break;
}
