@php $manifest = json_decode(file_get_contents(public_path('build/manifest.json')), true); @endphp
{{-- --}} Plătii - {{ $heading }}
Data exportului {{ date('d-m-Y') }}
@php // $payments = collect($payments) @endphp @foreach ($payments[0] as $key => $head) @endforeach @php $loopCount = 0; @endphp @foreach ($payments as $key => $paymentRow) @foreach ($paymentRow as $cellKey => $cell) @if (!is_object($cell) && !is_array($cell)) @else @endif @endforeach @php $loopCount++ @endphp @endforeach @for($i = 0; count($payments[0] ?? []); $i++) @if (!is_object($cell) && !is_array($cell)) @if (($i) == count($payments[0] ?? [])) @elseif(($i + 1) == count($payments[0] ?? [])) @else @endif @else @endif @endfor
{{ strtoupper($key) }}
{{ $cell }} ...
{{ 'Total' }} {{-- {{ collect($payments)->sum('lei_amount') }} --}}