@extends('../padre.padre') @section('styles') @endsection @section('contenido') @php $esPaginado = is_object($productoCom) && method_exists($productoCom, 'total'); $totalRegistros = $esPaginado ? $productoCom->total() : (is_countable($productoCom) ? count($productoCom) : 0); @endphp
| # | C贸digo | Nombre Producto | Cajas | Costo Caja | Fracc | Costo Fracc | Base | IVA | Tipo | Total Compra | Fecha Compra | N掳 Factura | Proveedor | Marca | Categor铆a | Lote | Vencimiento | Bodega |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $esPaginado && $productoCom->firstItem() ? ($productoCom->firstItem() + $idx) : ($idx + 1) }} | {{ $item->cproducto }} | {{ $item->nombre }} | {{ number_format((float)($item->cantcaja ?? 0)) }} | $ {{ number_format((float)($item->costcaja ?? 0), 0, ',', '.') }} | {{ number_format((float)($item->cantfrcc ?? 0)) }} | $ {{ number_format((float)($item->costofrcc ?? 0), 0, ',', '.') }} | $ {{ number_format((float)($item->base ?? 0), 0, ',', '.') }} | $ {{ number_format((float)($item->iva ?? 0), 0, ',', '.') }} | {{ $item->tipo }} | $ {{ number_format((float)($item->total ?? 0), 0, ',', '.') }} | {{ substr($item->fechacomp, 0, 10) }} | {{ $item->numfactur }} |
{{ $item->nombre_proveedor ?? $item->provedor }}
{{ $item->provedor }}
|
{{ $item->nommarca }} | {{ $item->nomcategoria }} | {{ $item->lote }} |
@if(!empty($fv) && $fv != '0000-00-00') {{ $fv }} @else N/A @endif | {{ $item->idbodegaCo }} |
|
@if(empty($fi)) Selecciona el rango de fechas y presiona Consultar para ver el detalle de compras. @else No se encontraron productos comprados para los filtros seleccionados. @endif |
||||||||||||||||||
| SUBTOTAL P脕GINA: | {{ number_format((float)($sumCajas ?? 0)) }} | {{ number_format((float)($sumFracc ?? 0)) }} | TOTAL P脕GINA: | $ {{ number_format((float)($sumTotal ?? 0), 0, ',', '.') }} | ||||||||||||||