|
{{strtoupper($itemChild->name)}} |
@if(in_array($item->type,\App\Models\ChartOfAccount::PASSIVANONREALTYPE))
@php
$itemProfit += floatval($itemChild->profit);
@endphp
{{number_format($itemChild->profit ?? 0,2,',','.')}}
@else
@php
$itemCost += floatval($itemChild->cost);
@endphp
{{number_format($itemChild->cost ?? 0,2,',',".")}}
@endif
|
@endForeach
|
Total |
@if(in_array($item->type,\App\Models\ChartOfAccount::PASSIVANONREALTYPE))
{{number_format($itemProfit ?? 0,2,',',".")}}
@else
{{number_format($itemCost ?? 0,2,',',".")}}
@endif
|