{!!$print['head']!!} @foreach ($months as $m) @endforeach @if(count($months) > 1) @endif @php $sl = 0; @endphp @foreach ($ledger_heads as $l) @if(request()->view_type == 3 && $l->type == 1) @continue; @endif @php $this_ledger_data = $transaction_data->filter(function ($value, $key) use ($l) { return str_starts_with($value->auto_code, $l->auto_code); }); $amount = $this_ledger_data->sum('amount'); @endphp @if($amount != 0) @php $has_details = request()->view_type == 1 && $l->type == 1 ? true : false; @endphp @foreach ($months as $m) @endforeach @if(count($months) > 1) @endif @endif @endforeach @if(request()->view_type != 2) @foreach ($months as $m) @endforeach @if(count($months) > 1) @endif @endif
# {{ __('obs.head') }}{{ date($month_format, strtotime($m.'-01')) }}{{ __('obs.total') }}
{{ ++$sl }} @if(request()->view_type == 2) {!! str_repeat(' ', (max(strlen($l->auto_code)-$main_auto_code_length, 0))*2) !!} @endif {{ $l->name }} - {{ $l->auto_code }} {{ number_format($this_ledger_data->where('date', $m)->sum('amount'), 2) }} {{ number_format($amount, 2) }}
Total {{ number_format($transaction_data->where('date', $m)->sum('amount'), 2) }} {{ number_format($transaction_data->sum('amount'), 2) }}
{!!$print['foot']!!}