@foreach($dates as $date) @endforeach
 {{ trans('reports.quarter.' . $date) }}{{ trans_choice('general.totals', 1) }}
@foreach($compares['income'] as $category_id => $category) @foreach($category as $i => $item) @php $gross['income'][$i] += $item['amount']; @endphp @endforeach @endforeach @foreach($gross['income'] as $item) @endforeach
{{ trans_choice('general.incomes', 1) }}
{{ $income_categories[$category_id] }}@money($item['amount'], $item['currency_code'], true)
{{ trans('reports.gross_profit') }}@money($item, setting('general.default_currency'), true)
@foreach($compares['expense'] as $category_id => $category) @foreach($category as $i => $item) @php $gross['expense'][$i] += $item['amount']; @endphp @endforeach @endforeach @foreach($gross['expense'] as $item) @endforeach
{{ trans('reports.less_expenses') }}
{{ $expense_categories[$category_id] }}@money($item['amount'], $item['currency_code'], true)
{{ trans('reports.total_expenses') }}@money($item, setting('general.default_currency'), true)
@foreach($totals as $total) @endforeach
{{ trans('reports.net_profit') }}@money($total['amount'], $total['currency_code'], true)