from {{ $start_date }} TO {{ $end_date }} |
|
{{ $end_date }} |
@php
$totalDebit = 0;
$totalCredit = 0;
$totalRevenue = 0;
$rpCheckName = array();
@endphp
@foreach($revenueData as $journalEntry)
@if(!in_array($journalEntry->getChartOfAccount->parent->name, $rpCheckName))
{{(setUserLang() == "ar") ? $journalEntry->getChartOfAccount->parent->code .'-'. $journalEntry->getChartOfAccount->parent->arabic_name : $journalEntry->getChartOfAccount->parent->code .'-'. $journalEntry->getChartOfAccount->parent->name }} |
|
@endif
{{(setUserLang() == "ar") ? $journalEntry->getChartOfAccount->code .'-'. $journalEntry->getChartOfAccount->arabic_name : $journalEntry->getChartOfAccount->code .'-'. $journalEntry->getChartOfAccount->name }} |
{{ $journalEntry->total_balance}} |
@php
$totalRevenue += $journalEntry->total_balance;
$rpCheckName[] = $journalEntry->getChartOfAccount->parent->name;
@endphp
@endforeach
@if($totalRevenue)
{{__('messages.Total')}} |
{{$totalRevenue}} |
@endif
{{__('messages.grossProfit')}} |
{{$totalRevenue}} |
@php
$totalExpense = 0;
$epCheckName = array();
@endphp
@foreach($expenseData as $journalEntry)
@if(!in_array($journalEntry->getChartOfAccount->parent->name, $epCheckName))
{{(setUserLang() == "ar") ? $journalEntry->getChartOfAccount->parent->code .'-'. $journalEntry->getChartOfAccount->parent->arabic_name : $journalEntry->getChartOfAccount->parent->code .'-'. $journalEntry->getChartOfAccount->parent->name }} |
|
@endif
{{(setUserLang() == "ar") ? $journalEntry->getChartOfAccount->code .'-'. $journalEntry->getChartOfAccount->arabic_name : $journalEntry->getChartOfAccount->code .'-'. $journalEntry->getChartOfAccount->name }} |
{{ $journalEntry->total_balance}} |
@php
$totalExpense += $journalEntry->total_balance;
$epCheckName[] = $journalEntry->getChartOfAccount->parent->name;
@endphp
@endforeach
@if($totalExpense)
{{__('messages.total')}} |
{{$totalExpense}} |
@endif
@php
$total = $totalRevenue-$totalExpense
@endphp
@if($total > 0)
{{__('messages.netProfit')}} |
{{$total}} |
@else
{{__('messages.netLosses')}} |
{{$total}} |
@endif