@php $all_documents = collect($data['all_documents'])->sortBy('order_number_key'); $income_records = $all_documents->where('type_transaction_prefix', 'income'); $egress_records = $all_documents->where('type_transaction_prefix', 'egress'); @endphp @if (count($income_records) > 0)
Ingresos
# | Tipo transacción | Método de pago | Tipo documento | Documento | Fecha emisión | Cliente/Proveedor | N° Documento | @if (count($income_records) > 0)Referencia | @endifMoneda | T.Pagado | Total |
---|---|---|---|---|---|---|---|---|---|---|---|
{{ $loop->iteration }} | {{ $value['type_transaction'] }} | {{ $value['payment_method_description'] }} | {{ $value['document_type_description'] }} | {{ $value['number'] }} | {{ $value['date_of_issue'] }} | {{ $value['customer_name'] }} | {{ $value['customer_number'] }} | @if (count($income_records) > 0){{$value['reference']}} | @endisset{{ $value['currency_type_id'] }} | {{ $value['total_payments'] ?? '0.00' }} | {{ $value['total_string'] }} |
Egresos
# | Tipo transacción | Tipo documento | Documento | Fecha emisión | Cliente/Proveedor | N° Documento | Moneda | T.Pagado | Total |
---|---|---|---|---|---|---|---|---|---|
{{ $loop->iteration }} | {{ $value['type_transaction'] }} | {{ $value['document_type_description'] }} | {{ $value['number'] }} | {{ $value['date_of_issue'] }} | {{ $value['customer_name'] }} | {{ $value['customer_number'] }} | {{ $value['currency_type_id'] }} | {{ $value['total_payments'] ?? '0.00' }} | @php $value['total_string'] = str_replace('-', '', $value['total_string']); @endphp {{ $value['total_string'] }} |