@php use App\CoreFacturalo\Helpers\Functions\GeneralPdfHelper; @endphp Reporte Caja

Reporte general de caja asociado a pagos

@if(!$data['cash_state']) @endif

Empresa: {{$data['company_name']}}

Fecha reporte: {{date('Y-m-d')}}

Ruc: {{$data['company_number']}}

Establecimiento: {{$data['establishment_address']}} - {{$data['establishment_department_description']}} - {{$data['establishment_district_description']}}

Vendedor: {{$data['cash_user_name']}}

Fecha y hora apertura: {{$data['cash_date_opening']}} {{$data['cash_time_opening']}}

Estado de caja: {{($data['cash_state']) ? 'Aperturada':'Cerrada'}}

Fecha y hora cierre: {{$data['cash_date_closed']}} {{$data['cash_time_closed']}}

Montos de operación:

Total Ingresos: S/. {{ GeneralPdfHelper::setNumberFormat($data['total_income']) }}

Total Egresos: S/. {{ GeneralPdfHelper::setNumberFormat($data['total_egress']) }}

Saldo inicial: S/. {{ GeneralPdfHelper::setNumberFormat($data['cash_beginning_balance']) }}

Saldo final: S/. {{ GeneralPdfHelper::setNumberFormat($data['total_balance']) }}

@if(count($group_payments) > 0)
@foreach($group_payments as $payment_method_type_id => $payments)

{{ GeneralPdfHelper::getPaymentMethodTypeDescription($payment_method_type_id) }}

{{-- --}} @foreach($payments as $key => $value) {{-- --}} @endforeach {{-- para pago en efectivo se agrega gastos --}} @if ($payment_method_type_id === '01') @foreach($expense_payments as $key => $value) {{-- --}} @endforeach @endif
# Tipo transacción Tipo documento Documento Fecha emisión Cliente/Proveedor N° Documento Moneda Total
{{ $loop->iteration }} {{ $value['type_transaction_description'] }} {{ $value['document_type_description'] }} {{ $value['number_full'] }} {{ $value['date_of_issue'] }} {{ $value['acquirer_name'] }} {{ $value['acquirer_number'] }} {{ $value['currency_type_id'] }} {{$value['type_transaction'] == 'egress' ? '-' : ''}}{{ GeneralPdfHelper::setNumberFormat($value['payment']) }}
{{ $loop->iteration }} {{ $value['type_transaction_description'] }} {{ $value['document_type_description'] }} {{ $value['number_full'] }} {{ $value['date_of_issue'] }} {{ $value['acquirer_name'] }} {{ $value['acquirer_number'] }} {{ $value['currency_type_id'] }} -{{ GeneralPdfHelper::setNumberFormat($value['payment']) }}


@endforeach
@else

No se encontraron registros.

@endif