@php $all_documents = $data["document_credit"]; @endphp @if (count($all_documents) > 0)

Documentos dados a créditos

@php $total_acum_credit = 0; @endphp @foreach($all_documents as $key => $value) @php $total_acum_credit += $value['total']; @endphp @endforeach
# Tipo documento Documento Fecha emisión Cliente/Proveedor N° Documento Mon Total Tipo de crédito
{{ $loop->iteration }} {{ $value['type'] }} {{ $value['number'] }} {{ $value['date_of_issue'] }} {{ $value['customer_name'] }} {{ $value['customer_number'] }} {{ $value['currency_type_id'] }} {{ $value['total'] }} {{ $value['credit_type'] }}
Total {{ number_format($total_acum_credit,2,'.','') }}
@endif