@extends('layouts.admin') @section('content')
@include('layouts.errors')
{{ __('messages.AmountByMonth') }}
@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) @php $total = amount_by_month($month, $year, $client_plans_id); $months_grand_total += $total; @endphp @php $count++; @endphp @endforeach @endif
{{ __('messages.Month') }} {{ __('messages.Total Amount') }} {{ __('messages.(Rents - Expenses)') }}
{{ __('messages.'.$month) }} @if($total < 0) (${{ number_format(abs($total), 2) }}) @else ${{ number_format($total, 2) }} @endif
{{ __('messages.Grand Total') }} @if($months_grand_total < 0) (${{ number_format(abs($months_grand_total), 2) }}) @else ${{ number_format($months_grand_total, 2) }} @endif
@php $income_grand_total = 0; @endphp @if(count($incomes) > 0) @foreach($incomes as $income) @php $total = income_by_category($income->id, $year, $client_plans_id); $income_grand_total += $total; @endphp @endforeach @endif
{{ __('messages.Income Type') }} {{ __('messages.Total Amount') }}
{{ $income->name }}${{ number_format($total, 2) }}
{{ __('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') }}