@include('PrintHeader.header')
{{--
--}}
{{__('lng.ProfitLoss')}}
| {{ __('lng.Name') }} | {{ __('lng.Invoice') }} | {{ __('lng.Date') }} | {{ __('lng.Head') }} | {{ __('lng.Amount') }} |
|---|
| {{__('lng.Income')}} | {{__('lng.Amount')}} |
|---|---|
| {{App\Models\AccountGroup::find($Income->GroupID)->title ?? ''}} | @currency($Income->credited) |
| {{__('lng.Expence')}} | {{__('lng.Amount')}} |
|---|---|
| {{App\Models\AccountGroup::find($Expense->GroupID)->title ?? ''}} | @currency($Expense->debited) |
| {{__('lng.GrossAmount')}} | @currency($TotalIncome - $TotalExpense) | @elseif($TotalIncome - $TotalExpense > 0){{__('lng.GrossProfit')}} | @currency($TotalIncome - $TotalExpense) | @else{{__('lng.GrossLoss')}} | @currency(abs($TotalIncome - $TotalExpense)) | @endif
|---|