Needs | Wants | Savings | ||
---|---|---|---|---|
Total Income | {{ $thisMonthIncome->sum('amount') }} | @php $needs = $thisMonthIncome->sum('amount') * 0.5; @endphp {{ $needs }} | @php $wants = $thisMonthIncome->sum('amount') * 0.3; @endphp {{ $wants }} | @php $savings = $thisMonthIncome->sum('amount') * 0.2; @endphp {{ $savings }} |
Total Expense | {{ $thisMonthExpense->sum('totalExpense') }} | {{ $thisMonthneeds }} | {{ $thisMonthwants }} | {{ $thisMonthsavings }} |
Net Income | {{ $thisMonthIncome->sum('amount') - $thisMonthExpense->sum('totalExpense') }} | {{ $needs - $thisMonthneeds }} | {{ $wants - $thisMonthwants }} | {{ $savings - $thisMonthsavings }} |
Total Income | Total Expense |
---|---|
{{ $thisYearIncome->sum('amount') }} | {{ $thisYearExpense->sum('totalExpenseYear') }} |
Net Income: {{ $thisYearIncome->sum('amount') - $thisYearExpense->sum('totalExpenseYear') }} |
Date | Name | Amount |
---|---|---|
{{ $item->date }} | {{ $item->name }} | {{ $item->amount }} |
Total Income: {{ $thisMonthIncome->sum('amount') }} |
Category | Amount | |
---|---|---|
@php $category = App\Models\Category::find($item->category_id); @endphp {{ $category->name }} | {{ $item->totalExpense }} | |
Total Expense: {{ $thisMonthExpense->sum('totalExpense') }} |
Date | Name | Amount |
---|---|---|
{{ $item->date }} | {{ $item->name }} | {{ $item->amount }} |
Total Income: {{ $thisYearIncome->sum('amount') }} |
Name | Amount | |
---|---|---|
@php $category = App\Models\Category::find($item->category_id); @endphp {{ $category->name }} | {{ $item->totalIncomeYear }} | |
Total Income: {{ $thisYearIncomecategory->sum('totalIncomeYear') }} |
Name | Amount | |
---|---|---|
@php $category = App\Models\Category::find($item->category_id); @endphp {{ $category->name }} | {{ $item->totalExpenseYear }} | |
Total Expense: {{ $thisYearExpense->sum('totalExpenseYear') }} |