@include('pdf.partials.styles-unified')

REPORTE DE DESCUENTOS | {{ $empresa->name }}

Total de Descuentos: {{ $records->count() }}

Generado: {{ now()->format('d/m/Y H:i:s') }}

@php $index = 1; @endphp @forelse($records as $item) @empty @endforelse
Fecha Serie Venta Cliente Motivo Usuario Monto
{{ $index++ }} {{ \Carbon\Carbon::parse($item->fecha_descuento)->format('d/m/Y') }} @if($item->venta) {{ $item->venta->serie_venta }} @else N/A @endif @if($item->venta && $item->venta->cliente) {{ $item->venta->cliente->razon_social }} @else N/A @endif {{ $item->motivo_descuento }} @if($item->user) {{ $item->user->name }} @else N/A @endif S/ {{ number_format($item->monto_descuento, 2) }}
No hay descuentos registrados
TOTAL DE DESCUENTOS: S/ {{ number_format($totals->total_monto_descuento ?? 0, 2) }}