Reporte Cuentas Por Cobrar


Empresa:

{{ $company->name }}

Fecha:

{{ date('Y-m-d') }}

Ruc:

{{ $company->number }}

@if (!empty($records))
@foreach ($records as $key => $value) @if ($value['total_to_pay'] > 0) @if (count($value['payments']) > 0) @else @endif {{-- //si payments tiene mas de un registro crear otra fila y recorrer el array de payments excluyendo el primer registro --}} @if (count($value['payments']) > 1) @foreach ($value['payments'] as $key => $payment) @if ($key > 0) @endif @endforeach @endif @endif @endforeach
# Fecha Emisión # Nota de venta # Boleta/Factura Cliente Nombre Comercial Código interno Contacto cliente Direccion Vendedor Pagado/Crédito Días atrasados Monto total Monto pagados Fecha de pagos Metodo de pagos
{{ $loop->iteration }} {{ $value['date_of_issue'] }} {{ $value['type'] !== 'document' ? $value['number_full'] : '' }} {{ $value['type'] == 'document' ? $value['number_full'] : '' }} {{ $value['customer_name'] }} {{ $value['customer_trade_name'] }} {{ $value['customer_internal_code'] }} {{ $value['customer_telephone'] }} {{ $value['customer_address'] }} {{ $value['seller_name'] }} Crédito {{ $value['delay_payment'] }} {{ $value['total'] }}{{ $value['payments'][0]['payment'] }} {{ $value['payments'][0]['date_of_payment'] }} {{ $value['payments'][0]['payment_method_type_description'] }}
{{ $payment['payment'] }} {{ $payment['date_of_payment'] }} {{ $payment["payment_method_type_description"] }}
Saldo {{ $value['total_to_pay'] }}
@else

No se encontraron registros.

@endif