@include('layouts.errors')
| {{ __('messages.Month') }} |
{{ __('messages.Total Amount') }}
{{ __('messages.(Rents - Expenses)') }} |
@php
$months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
$months_grand_total = 0;
$count = 0;
@endphp
@if(count($months) > 0)
@foreach($months as $month)
| {{ __('messages.'.$month) }} |
@php
$total = amount_by_month($month, $year, $client_plans_id);
$months_grand_total += $total;
@endphp
@if($total < 0)
(${{ number_format(abs($total), 2) }})
@else
${{ number_format($total, 2) }}
@endif
|
@php $count++; @endphp
@endforeach
@endif
{{ __('messages.Grand Total') }} |
@if($months_grand_total < 0)
(${{ number_format(abs($months_grand_total), 2) }})
@else
${{ number_format($months_grand_total, 2) }}
@endif
|
| {{ __('messages.Income Type') }} |
{{ __('messages.Total Amount') }} |
@php $income_grand_total = 0; @endphp
@if(count($incomes) > 0)
@foreach($incomes as $income)
| {{ $income->name }} |
@php
$total = income_by_category($income->id, $year, $client_plans_id);
$income_grand_total += $total;
@endphp
${{ number_format($total, 2) }} |
@endforeach
@endif
{{ __('messages.Grand Total') }} |
@if($income_grand_total < 0)
(${{ number_format(abs($income_grand_total), 2) }})
@else
${{ number_format($income_grand_total, 2) }}
@endif
|
| {{ __('messages.Expense Type') }} |
{{ __('messages.Total Amount') }} |