<?php
declare(strict_types=1);
require_once __DIR__ . '/../../app/Models/Coa.php';
require_once __DIR__ . '/../../app/Config/functions.php';

class CoaController {
    public function index(): void {
        require_login();
        $model = new Coa();
        $accounts = $model->getAll();
        $title = "Chart of Accounts";
        include __DIR__ . '/../../app/Views/coa/index.php';
    }
}
