mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-18 20:59:39 +02:00
* add kind to transaction model * Basic transfer creator * Fix method naming conflict * Creator form pattern * Remove stale methods * Tweak migration * Remove BaseQuery, write entire query in each class for clarity * Query optimizations * Remove unused exchange rate query lines * Remove temporary cache-warming strategy * Fix test * Update transaction search * Decouple transactions endpoint from IncomeStatement * Clean up transactions controller * Update cursor rules * Cleanup comments, logic in search * Fix totals logic on transactions view * Fix pagination * Optimize search totals query * Default to last 30 days on transactions page if no filters * Decouple transactions list from transfer details * Revert transfer route * Migration reset * Bundle update * Fix matching logic, tests * Remove unused code
19 lines
828 B
Text
19 lines
828 B
Text
<%# locals: (totals:) %>
|
|
<div class="grid grid-cols-1 md:grid-cols-3 bg-container rounded-xl shadow-border-xs md:divide-x divide-y md:divide-y-0 divide-alpha-black-100 theme-dark:divide-alpha-white-200">
|
|
<div class="p-4 space-y-2">
|
|
<p class="text-sm text-secondary">Total transactions</p>
|
|
<p class="text-primary font-medium text-xl" id="total-transactions"><%= totals.count.round(0) %></p>
|
|
</div>
|
|
<div class="p-4 space-y-2">
|
|
<p class="text-sm text-secondary">Income</p>
|
|
<p class="text-primary font-medium text-xl" id="total-income">
|
|
<%= totals.income_money.format %>
|
|
</p>
|
|
</div>
|
|
<div class="p-4 space-y-2">
|
|
<p class="text-sm text-secondary">Expenses</p>
|
|
<p class="text-primary font-medium text-xl" id="total-expense">
|
|
<%= totals.expense_money.format %>
|
|
</p>
|
|
</div>
|
|
</div>
|