{{ $company?->name ?? config('app.name') }}
@if ($company?->legal_name)
{{ $company->legal_name }}
@endif @if ($company?->tax_id)
RUC: {{ $company->tax_id }}
@endif @if ($company?->address)
{{ $company->address }}{{ $company->city ? ' · '.$company->city : '' }}
@endif @if ($company?->phone)
Tel.: {{ $company->phone }}
@endif
RECIBO DE PAGO DE CRÉDITO
Número:{{ $receipt->number }}
Fecha:{{ $receipt->paid_at->format('d/m/Y H:i') }}
Sucursal:{{ $receipt->branch?->name ?? 'Casa Central' }}
Caja:{{ $receipt->cashSession?->cashRegister?->code ?? '—' }}
Cajero:{{ $receipt->user?->name ?? '—' }}
Cliente: {{ $receipt->customer?->name }}
@if ($receipt->customer?->document_number)
{{ $receipt->customer->document_type }}: {{ $receipt->customer->document_number }}
@endif @if ($receipt->customer?->phone)
Tel.: {{ $receipt->customer->phone }}
@endif
APLICACIÓN DEL PAGO
@foreach ($receipt->payments as $payment)
{{ $payment->sale?->number }}Gs. {{ number_format((float) $payment->amount, 0, ',', '.') }}
@endforeach
TOTAL ABONADOGs. {{ number_format((float) $receipt->amount, 0, ',', '.') }}
Deuda anteriorGs. {{ number_format((float) $receipt->balance_before, 0, ',', '.') }}
Saldo restanteGs. {{ number_format((float) $receipt->balance_after, 0, ',', '.') }}
Método{{ ucfirst($receipt->method) }}
@if ($receipt->method === 'efectivo')
RecibidoGs. {{ number_format((float) $receipt->amount_received, 0, ',', '.') }}
CambioGs. {{ number_format((float) $receipt->change_amount, 0, ',', '.') }}
@endif @if ($receipt->reference)
Referencia: {{ $receipt->reference }}
@endif @if ($receipt->notes)
Obs.: {{ $receipt->notes }}
@endif