@php $manifest = json_decode(file_get_contents(public_path('build/manifest.json')), true); @endphp
![]() |
Facturi de plătit - {{ $heading }}
Data facturii:
{{ date('d-m-Y') }}
|
{{ strtoupper($key) }} / PERSOANĂ | {{ strtoupper($key) }} | @endif --}} {{-- display groupeddue amount heading --}} @if (strtolower($key) == strtolower($sumaRestantaKey)){{ strtoupper($key) }} / TELEFON | {{ strtoupper($key) }} / PERSOANĂ | @else {{-- display all other headings --}}{{ strtoupper($key) }} | @endif @endif @endforeach|||
---|---|---|---|---|---|---|---|
{{ $cell }} | @else@endif {{-- also display ungrouped --}} {{-- | {{ $cell }} | --}} @elseif (strtolower($cellKey) == strtolower($sumaRestantaKey)) {{-- display goruped due amounts --}} {{-- display non - aggregated sums / telefon --}}{{ $cell }} | @php $aggregateSum = 0.00; $siblings = collect($bills)->where($ipaIDKey, $billRow[$ipaIDKey]); $aggregateSum = $siblings->sum($sumaRestantaKey); $affectedRows = $siblings->count(); @endphp {{-- dispay aggregate on the last row --}} @if($billRow != $siblings->last())@else | {{ $aggregateSum }} | @endif @else {{-- display all other cell values --}}{{ $cell }} | @endif @else... | @endif @endforeach @php $loopCount++ @endphp