{{-- CAJA --}}
{{-- align="center" --}} {{-- --}}

Datos del Recibo

NO. RECIBO: {{ isset($data['invoice']) ? $data['invoice'] : 'NO DISPONIBLE' }}

CAJERO:

{{ $data['cashier_name'] }}

FECHA DE EMISIÓN:

{{$data['payment_date']}} {{-- {{ isset($data['payment_date']) ? Carbon\Carbon::parse($data['payment_date'])->format('d/m/y') : 'NO DISPONIBLE' }} --}}

CAJA:

{{ isset($data['cash_box'])? $data['cash_box']: 'NO DISPONIBLE' }}

NO. APERTURA:

{{ isset($data['cash_box_opening']) ? $data['cash_box_opening'] : 'NO DISPONIBLE' }}

NO. RECIBO:

{{ isset($data['invoice']) ? $data['invoice'] : 'NO DISPONIBLE' }}

NO. TRAMITE:

{{ isset($data['tracking_invoice']) ? $data['tracking_invoice'] : 'NO DISPONIBLE' }}
{{-- DATOS DEL PAGO --}}

DATOS DEL CONTRIBUYENTE

CÓDIGO P.U.C.

RAZÓN SOCIAL

DENOMINACIÓN COMERCIAL

{{ isset($data['contributor_invoce']) ? $data['contributor_invoce'] : '' }} {{ isset($data['contributor']) ? $data['contributor'] : 'PÚBLICO EN GENERAL' }} {{ isset($data['contributor_trade_name']) ? $data['contributor_trade_name'] : '' }}

DOMICILIO

RFC

CURP

{{ $data['address'] ?? '-' }} {{ $data['contributor_rfc' ]}} {{ $data['contributor_curp' ]}}
{{-- DETALLES DEL PAGO --}}
@foreach ($data['details'] as $key => $detail) {{-- BECAUSE THE EXTERNAL SOURCE CAN PASS DETAILS WITH DECIMALS, EVEN IF THE CONCEPT HAVE "decimal_calculation" = false it can potentially show a wrong quantity-unit price mutiplication (in the pdf) so, just scrap the decimal condition and show what it is --}} {{-- @if($detail['decimal_calculation'] == true) @else @endif --}} @endforeach @foreach ($data['discounts'] as $discount) @endforeach @foreach ($data['subsidies'] as $subsidy) @endforeach @if(count($data['taxes']) > 0) @foreach ($data['taxes'] as $tax) @endforeach @endif @if(count($data['discounts']) > 0) @endif

DETALLES DE COBRO

NO.

CANT.

CÓDIGO

DESCRIPCIÓN

P.U.

IMPORTE

{{ $key + 1 }} {{ number_format($detail['quantity'], 2) }} {{ number_format($detail['quantity'], 2) }} {{ number_format($detail['quantity'], 0) }} {{ $detail['income_concept_xml_code'] }} {{ $detail['description'] }} $ {{ number_format($detail['unit_price'], 2) }} $ {{ number_format($detail['subtotal'], 2) }}
1 {{ $discount['authorization_invoice'] }} $ {{ number_format($discount['amount'], 2) }} $ {{ number_format($discount['amount'], 2) }}
1 DESCUENTO ({{ $subsidy['code'] }}) $ {{ number_format($subsidy['amount'], 2) }} $ {{ number_format($subsidy['amount'], 2) }}
OBSERVACIONES

SUBTOTAL

$ {{ number_format($data['subtotal'], 2) }}
{{ $data['observations'] }}

DESCUENTOS

$ {{ number_format($data['total_discount'], 2) }}

UAN (15%)

$ {{ number_format($data['uan_tax'], 2) }}

{{$tax['description']}} ({{number_format($tax['amount'],2)}}%)

$ {{ number_format($tax['sum_amount'], 2) }}

DESCUENTO

$ {{ number_format($data['total_discount'], 2) }}

TOTAL

$ {{ number_format($data['total'], 2) }}
{{-- IMPORTE CON LETRA --}} {{-- @if($data['bank_reference']) @endif --}} {{-- @if($data['bank_reference']) @endif --}}

IMPORTE EN LETRA

FORMA DE PAGO

REFERENCIA BANCARIA:

{{ $data['total_text']}} PESOS {{$data['total_cents']}}/100 M./N.

{{ $data['payment_type'] }}

{{$data['bank_reference']}}

{{-- FIRMAS --}}



@if(isset($qr))
{!! $qr !!}
{{ $data['qr_link'] }}
@endif