@extends('layouts.app') @section('content')
Manage your financial transactions
{{ session('success') }}
{{ session('error') }}
Total Income
${{ number_format($summary['total_income_usd'] ?? 0, 2) }}
@if (($summary['total_income_khr'] ?? 0) > 0)៛{{ number_format($summary['total_income_khr'] ?? 0, 2) }}
@endifTotal Expenses
${{ number_format($summary['total_expenses_usd'] ?? 0, 2) }}
@if (($summary['total_expenses_khr'] ?? 0) > 0)៛{{ number_format($summary['total_expenses_khr'] ?? 0, 2) }}
@endifNet Balance
${{ number_format($summary['net_balance_usd'] ?? 0, 2) }}
@if (($summary['total_income_khr'] ?? 0) > 0 || ($summary['total_expenses_khr'] ?? 0) > 0)៛{{ number_format($summary['net_balance_khr'] ?? 0, 2) }}
@endifTotal Transactions
{{ $summary['total_count'] ?? 0 }}
| Date | Type | Description | Account | Category | Amount | Status | Actions |
|---|---|---|---|---|---|---|---|
|
{{ $transaction->transaction_date->format('M d, Y') }}
@if ($transaction->transaction_time)
{{ $transaction->transaction_time->format('H:i') }}
@endif
|
@if ($transaction->type == 'income') Income @elseif($transaction->type == 'expense') Expense @else Transfer @endif |
{{ $transaction->description ?: 'No description' }}
@if ($transaction->payee)
{{ $transaction->payee }}
@endif
@if ($transaction->tags && count($transaction->tags) > 0)
@foreach (array_slice($transaction->tags, 0, 3) as $tag)
#{{ $tag }}
@endforeach
@if (count($transaction->tags) > 3)
+{{ count($transaction->tags) - 3 }}
more
@endif
@endif
|
{{ $transaction->account->name ?? 'N/A' }} | {{ $transaction->category->name ?? 'Uncategorized' }} |
@if ($transaction->amount_usd)
${{ number_format($transaction->amount_usd, 2) }}
@endif
@if ($transaction->amount_khr)
៛{{ number_format($transaction->amount_khr, 2) }}
@endif
|
@if ($transaction->is_cleared)
Cleared
@else
Pending
@endif
@if ($transaction->is_reconciled)
Reconciled
@endif
@if ($transaction->is_recurring)
Recurring
@endif
|
Are you sure you want to delete this transaction? This action cannot be undone.