ERP/templates/ledger/chart_of_accounts.html

35 lines
1.8 KiB
HTML
Raw Permalink Normal View History

2026-02-06 17:35:29 +01:00
{{define "content"}}
<div class="space-y-6">
<div class="sm:flex sm:items-center sm:justify-between">
<h1 class="text-2xl font-bold text-gray-900">Chart of Accounts</h1>
<div class="flex space-x-3">
<a href="/ledger/journal" class="text-sm text-indigo-600 hover:text-indigo-500">Journal Entries</a>
<a href="/ledger/trial-balance" class="text-sm text-indigo-600 hover:text-indigo-500">Trial Balance</a>
</div>
</div>
<div class="overflow-hidden bg-white shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg">
<table class="min-w-full divide-y divide-gray-300">
<thead class="bg-gray-50">
<tr>
<th class="py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900">Code</th>
<th class="px-3 py-3.5 text-left text-sm font-semibold text-gray-900">Name</th>
<th class="px-3 py-3.5 text-left text-sm font-semibold text-gray-900">Type</th>
<th class="px-3 py-3.5 text-right text-sm font-semibold text-gray-900">Balance</th>
</tr>
</thead>
<tbody class="divide-y divide-gray-200 bg-white">
{{range .Accounts}}
<tr class="hover:bg-gray-50">
<td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm font-mono font-medium text-gray-900">{{.Code}}</td>
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-900">{{.Name}}</td>
<td class="whitespace-nowrap px-3 py-4 text-sm">{{accountTypeBadge .Type}}</td>
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-900 text-right font-mono">{{formatMoney .Balance}}</td>
</tr>
{{end}}
</tbody>
</table>
</div>
</div>
{{end}}