@extends('adminlte::page') @section('title', 'Reporte de Compras') @section('plugins.Datatables', true) @section('content_header')
Total Compras
Subtotal
IGV (18%)
Total
| 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 con los filtros seleccionados | ||||||||
| TOTALES: | S/ {{ number_format($totales['subtotal'], 2) }} | S/ {{ number_format($totales['igv'], 2) }} | S/ {{ number_format($totales['total'], 2) }} | |||||