= nl2br(htmlspecialchars($data['settings']['company_address'] ?? '')) ?>
| Date | Description | Reference | Amount | Action |
|---|---|---|---|---|
| = $entry['entry_date'] ?> | = htmlspecialchars($entry['description']) ?> | = htmlspecialchars($entry['reference']) ?> | = number_format((float)$entry['total_debit'], 3) ?> |
Use this page to seed the main parent accounts, then add custom child accounts under the right parent.
| Code | Name | Type | Level | Parent | Balance |
|---|---|---|---|---|---|
| = htmlspecialchars($acc['code']) ?> |
= htmlspecialchars($acc['name_en']) ?> = htmlspecialchars($acc['name_ar']) ?> |
= htmlspecialchars($acc['type']) ?> | Main Child | = htmlspecialchars($acc['parent_name'] ?? '— Main Account —') ?> | = number_format((float)getAccountBalance($acc['code']), 3) ?> |
| VAT Input (Purchases) | = number_format($data['vat_report']['input_vat'], 2) ?> |
|---|---|
| VAT Output (Sales) | = number_format($data['vat_report']['output_vat'], 2) ?> |
| Net VAT Payable / (Refundable) | = number_format($data['vat_report']['net_vat'], 2) ?> |
| Code | Account Name | Debit | Credit |
|---|---|---|---|
| = $row['code'] ?> | = htmlspecialchars($row['name_en']) ?> | = number_format((float)$row['total_debit'], 3) ?> | = number_format((float)$row['total_credit'], 3) ?> |
| Total | = number_format($total_d, 3) ?> | = number_format($total_c, 3) ?> | |
| Revenue | |
|---|---|
| = htmlspecialchars($acc['name_en']) ?> | = number_format($bal, 3) ?> |
| Total Revenue | = number_format($total_rev, 3) ?> |
| Expenses | |
| = htmlspecialchars($acc['name_en']) ?> | = number_format($bal, 3) ?> |
| Total Expenses | = number_format($total_exp, 3) ?> |
| Net Profit / Loss | = number_format($total_rev - $total_exp, 3) ?> |
| = htmlspecialchars($acc['name_en']) ?> | = number_format($bal, 3) ?> |
| Total Assets | = number_format($total_assets, 3) ?> |
| Liabilities | |
| = htmlspecialchars($acc['name_en']) ?> | = number_format($bal, 3) ?> |
| Equity | |
| = htmlspecialchars($acc['name_en']) ?> | = number_format($bal, 3) ?> |
| Retained Earnings (Current) | = number_format($earnings, 3) ?> |
| Total Liab. & Equity | = number_format($total_liab + $total_equity, 3) ?> |