+
+
+
+
+
+
+
+
+
+ ">
+
+ |
+
+ Date
+
+ |
+
+
+ Type
+
+ |
+
+
+ Category
+
+ /
+
+ Description
+
+ |
+
+
+ Amount
+
+ |
+
+ Balance |
+
+
+
+
+ From $transaction_other_account";
+ } elseif ($transaction_type == 'Transfer Out') {
+ $transaction_category_display = "To $transaction_other_account";
+ } else {
+ $transaction_category_display = $transaction_category;
+ }
+
+ // Badge color based on type
+ if ($transaction_type == 'Revenue' || $transaction_type == 'Payment') {
+ $transaction_badge_color = "success";
+ } elseif ($transaction_type == 'Expense') {
+ $transaction_badge_color = "danger";
+ } else {
+ $transaction_badge_color = "secondary";
+ }
+
+ // Amount text color
+ if ($transaction_amount < 0) {
+ $transaction_amount_color = "text-danger";
+ } else {
+ $transaction_amount_color = "text-success";
+ }
+
+ // Balance text color
+ if ($transaction_balance < 0) {
+ $transaction_balance_color = "text-danger";
+ } else {
+ $transaction_balance_color = "";
+ }
+
+ // Route the date link to the right edit modal based on type
+ if ($transaction_type == 'Transfer In' || $transaction_type == 'Transfer Out') {
+ $transaction_modal_url = "modals/transfer/transfer_edit.php?id=$transaction_transfer_id";
+ } elseif ($transaction_type == 'Expense') {
+ $transaction_modal_url = "modals/expense/expense_edit.php?id=$transaction_id";
+ } elseif ($transaction_type == 'Revenue') {
+ $transaction_modal_url = "modals/revenue/revenue_edit.php?id=$transaction_id";
+ } else {
+ $transaction_modal_url = "";
+ }
+
+ ?>
+
+
+ |
+
+
+
+
+
+
+
+
+
+ |
+ |
+
+
+
+ |
+ |
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
Select an account above to view its transactions.
+
+
+
+