@forelse($items as $item) @php $bgEstado = '#ffffff'; $textoEstado = ucfirst($item->estado); if ($item->estado === 'retenido') { $bgEstado = '#fef3c7'; $textoEstado = 'Retenido'; } elseif ($item->estado === 'reintegrado') { $bgEstado = '#d1fae5'; $textoEstado = 'Reintegrado'; } elseif ($item->estado === 'baja_merma') { $bgEstado = '#fee2e2'; $textoEstado = 'Dado de Baja'; } elseif ($item->estado === 'devuelto_proveedor') { $bgEstado = '#e0e7ff'; $textoEstado = 'Devuelto Prov.'; } $motivoNombre = match($item->motivo) { 'averia' => 'Avería / Roto', 'proximo_vencer' => 'Próximo a Vencer', 'cuarentena' => 'Cuarentena / Revisión', 'devolucion_proveedor' => 'Devolución Proveedor', default => $item->motivo }; @endphp @empty @endforelse @if(count($items) > 0) @endif
SISTEMA POSCLOUD - REPORTE DE BODEGA VIRTUAL / CUARENTENA
Empresa: {{ $empresa }}  |  Fecha: {{ $fecha }}  |  Bodega: {{ $nombreBodega }}  |  Estado: {{ strtoupper(str_replace('_', ' ', $estadoFiltro)) }}  |  Motivo: {{ strtoupper(str_replace('_', ' ', $motivoFiltro)) }}  |  @if(!empty($fechaDesde) || !empty($fechaHasta)) Rango Fechas: {{ $fechaDesde ?: 'Inicio' }} al {{ $fechaHasta ?: 'Hoy' }}  |  @endif Total Registros: {{ count($items) }}
Total Cajas: {{ number_format($totalCajas, 2) }}  |  Total Fracciones: {{ number_format($totalFrcc, 2) }}  |  Valor Total Retenido / Filtrado: ${{ number_format($totalCosto, 2) }}
# ID # Mov. Ingreso Fecha Ingreso Bodega Código Prod. Código Barras Nombre Producto Cant. Cajas Cant. Frcc Lote Vencimiento Costo Unit. Costo Total Motivo Ingreso Estado Usuario Ingreso Observaciones # Resolución Fecha Resolución Usuario Resol. Detalle Resolución
{{ $item->id }} {{ $item->numero_movimiento ?? '-' }} {{ $item->fecha_ingreso ? date('d/m/Y H:i', strtotime($item->fecha_ingreso)) : '' }} {{ $item->nombreBodega ?? ('Bodega ' . $item->idbodega) }} {{ $item->codigoProd }} {{ $item->barras ?? '' }} {{ $item->nombre_producto }} {{ $item->cantidad_caja }} {{ $item->cantidad_frcc }} {{ $item->lote ?? '' }} {{ ($item->fechaVencimiento && $item->fechaVencimiento !== '0000-00-00') ? $item->fechaVencimiento : '' }} {{ $item->costo_unitario }} {{ $item->costo_calculado ?? 0 }} {{ $motivoNombre }} {{ $textoEstado }} {{ $item->usuario_ingreso }} {{ $item->observaciones }} {{ $item->numero_resolucion ?? '-' }} {{ $item->fecha_resolucion ? date('d/m/Y H:i', strtotime($item->fecha_resolucion)) : '' }} {{ $item->usuario_resolucion ?? '' }} {{ $item->motivo_resolucion ?? '' }}
No se encontraron registros con los filtros seleccionados.
TOTALES GENERALES: {{ $totalCajas }} {{ $totalFrcc }} VALOR TOTAL: {{ $totalCosto }}