@php
$purchaseTotal = !empty($purchaseList) ? array_sum($purchaseList) : 0;
$generalTotal = 0;
$symbol = '';
@endphp
@php
$fromMonth = '';
$fromYear = '';
$toMonth = '';
$toYear = '';
$fromData = [];
$from = isset($from) ? $from : '';
$to = isset($to) ? $to : '';
if (!empty($from)) {
$fromMonth = getMonthNumber(date("M", strtotime($from)));
$fromYear = date("Y", strtotime($from));
}
if (!empty($to)) {
$toMonth = getMonthNumber(date("M", strtotime($to)));
$toYear = date("Y", strtotime($to));
}
@endphp
| {{ __('Purchase') }} |
{{ __('General') }} |
| {{ __('Total Purchases') }} |
{{ $purchaseTotal }} |
|
@foreach ($categoryTotals as $key => $value)
| {{ $key }} |
{{ formatCurrencyAmount($value) }} |
@endforeach
| {{ __('Total General') }} |
{{ $generalTotal }} |
|
| {{ __('Total') }} |
{{ $purchaseTotal + $generalTotal }} |