Filtros Aplicados:
Período: {{ \Carbon\Carbon::parse($filtros['fecha_inicio'])->format('d/m/Y') }} al {{ \Carbon\Carbon::parse($filtros['fecha_fin'])->format('d/m/Y') }}
@if($filtros['proveedor_id']) @php $proveedor = \App\Models\Proveedor::find($filtros['proveedor_id']); @endphpProveedor: {{ $proveedor->razon_social ?? 'N/A' }}
@endif @if($filtros['tipo_documento'])Tipo Documento: {{ strtoupper(str_replace('_', ' ', $filtros['tipo_documento'])) }}
@endif @if($filtros['estado'] !== null && $filtros['estado'] !== '')Estado: {{ $filtros['estado'] == '1' ? 'Activo' : 'Anulado' }}
@endifFecha de generación: {{ now()->format('d/m/Y H:i:s') }}
| ID | Fecha | Proveedor | Nº Factura | Tipo | Subtotal | IGV | Total | Estado |
|---|---|---|---|---|---|---|---|---|
| #{{ $compra->id }} | {{ $compra->fecha_compra->format('d/m/Y') }} |
{{ $compra->proveedor->razon_social }}
@if($compra->proveedor->ruc)
RUC: {{ $compra->proveedor->ruc }} @endif |
{{ $compra->numero_factura }} | @php $badges = [ 'factura' => 'badge-primary', 'boleta' => 'badge-info', 'nota_credito' => 'badge-success', 'nota_debito' => 'badge-warning' ]; @endphp {{ strtoupper(str_replace('_', ' ', $compra->tipo_documento)) }} | S/ {{ number_format($compra->subtotal, 2) }} | S/ {{ number_format($compra->igv, 2) }} | S/ {{ number_format($compra->total, 2) }} | @if($compra->estado) Activo @else Anulado @endif |
| No se encontraron compras | ||||||||
| TOTALES: | S/ {{ number_format($totales['subtotal'], 2) }} | S/ {{ number_format($totales['igv'], 2) }} | S/ {{ number_format($totales['total'], 2) }} | |||||
Total de Compras: {{ $totales['cantidad'] }}
Subtotal General: S/ {{ number_format($totales['subtotal'], 2) }}
IGV Total: S/ {{ number_format($totales['igv'], 2) }}
TOTAL GENERAL: S/ {{ number_format($totales['total'], 2) }}