<?= $this->extend('layouts/enterprise') ?>

<?= $this->section('content') ?>

<?= view('partials/workspace_hero', [
    'workspaceCrumbPill'    => 'Accounting',
    'workspaceCrumbCurrent' => 'Dashboard',
    'workspaceTitle'        => 'Accounting Overview',
    'workspaceDesc'         => 'General ledger, journals, and financial period controls.',
]) ?>

<div class="row g-4">
    <div class="col-md-4">
        <div class="enterprise-data-panel h-100">
            <div class="enterprise-data-panel__head">
                <h2 class="enterprise-data-panel__title">Chart of Accounts</h2>
                <p class="enterprise-data-panel__subtitle">Maintain ledger accounts.</p>
            </div>
            <div class="enterprise-data-panel__footer">
                <a href="<?= base_url('accounting/chart-of-accounts') ?>" class="btn btn-sm btn-primary">Open</a>
            </div>
        </div>
    </div>
    <div class="col-md-4">
        <div class="enterprise-data-panel h-100">
            <div class="enterprise-data-panel__head">
                <h2 class="enterprise-data-panel__title">Journal Entries</h2>
                <p class="enterprise-data-panel__subtitle">Create and post journals.</p>
            </div>
            <div class="enterprise-data-panel__footer">
                <a href="<?= base_url('accounting/journal-entries') ?>" class="btn btn-sm btn-primary">Open</a>
            </div>
        </div>
    </div>
    <div class="col-md-4">
        <div class="enterprise-data-panel h-100">
            <div class="enterprise-data-panel__head">
                <h2 class="enterprise-data-panel__title">Fiscal Years</h2>
                <p class="enterprise-data-panel__subtitle">Open and close periods.</p>
            </div>
            <div class="enterprise-data-panel__footer">
                <a href="<?= base_url('settings/fiscal-years') ?>" class="btn btn-sm btn-primary">Open</a>
            </div>
        </div>
    </div>
    <div class="col-md-6">
        <div class="enterprise-data-panel h-100">
            <div class="enterprise-data-panel__head">
                <h2 class="enterprise-data-panel__title">Trial Balance</h2>
                <p class="enterprise-data-panel__subtitle">Check debit and credit balance.</p>
            </div>
            <div class="enterprise-data-panel__footer">
                <a href="<?= base_url('accounting/reports/trial-balance') ?>" class="btn btn-sm btn-primary">Open</a>
            </div>
        </div>
    </div>
    <div class="col-md-6">
        <div class="enterprise-data-panel h-100">
            <div class="enterprise-data-panel__head">
                <h2 class="enterprise-data-panel__title">General Ledger</h2>
                <p class="enterprise-data-panel__subtitle">Account activity and running balances.</p>
            </div>
            <div class="enterprise-data-panel__footer">
                <a href="<?= base_url('accounting/reports/general-ledger') ?>" class="btn btn-sm btn-primary">Open</a>
            </div>
        </div>
    </div>
</div>

<?= $this->endSection() ?>
