@extends('../padre.padre') @section('contenido')
| Ingreso | Bodega | Producto | Cant. Caja | Cant. Frcc | Lote | Vencimiento | Costo Total | Motivo | Estado | {{ $estadoFiltro === 'retenido' ? 'Acciones' : 'Resolución' }} | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| @if($item->estado === 'retenido') @else @endif |
{{ $item->numero_movimiento ?? ('CUAR-' . $item->id) }} {{ substr($item->fecha_ingreso, 0, 10) }} {{ substr($item->fecha_ingreso, 11, 5) }} |
{{ $item->nombreBodega ?? 'Bodega ' . $item->idbodega }} |
{{ $item->nombre_producto }} Cód: {{ $item->codigoProd }} | Barras: {{ $item->barras ?: 'S/N' }} @if(!empty($item->observaciones)) 📝 {{ $item->observaciones }}
@endif
|
{{ number_format($item->cantidad_caja, 2) }} | {{ number_format($item->cantidad_frcc, 2) }} | @if(!empty($item->lote)) {{ $item->lote }} @else - @endif | @if(!empty($item->fechaVencimiento) && $item->fechaVencimiento !== '0000-00-00') @php $diasVenc = (strtotime($item->fechaVencimiento) - strtotime(date('Y-m-d'))) / 86400; @endphp {{ $item->fechaVencimiento }} ({{ intval($diasVenc) }}d) @else - @endif | ${{ number_format($costoTotalItem, 0, ',', '.') }} | @php $motivosMap = [ 'averia' => ['bg-danger', 'Averiado'], 'proximo_vencer' => ['bg-warning text-dark', 'Próx. Vencer'], 'cuarentena' => ['bg-info text-white', 'Cuarentena'], 'devolucion_proveedor' => ['bg-primary text-white', 'Dev. Prov.'] ]; $badge = $motivosMap[$item->motivo] ?? ['bg-secondary', $item->motivo]; @endphp {{ $badge[1] }} | @if($item->estado === 'retenido') 🔒 Retenido @elseif($item->estado === 'reintegrado') ✅ Reintegrado @elseif($item->estado === 'baja_merma') 🗑️ Baja @elseif($item->estado === 'devuelto_proveedor') 🚚 Devuelto @endif |
@if($item->estado === 'retenido')
{{ $item->numero_resolucion ?? 'BAJA' }}
@elseif($item->estado === 'reintegrado')
👤 {{ $item->usuario_resolucion ?? 'admin' }} | 📅 {{ substr($item->fecha_resolucion, 0, 10) }}
@if(!empty($item->motivo_resolucion))
📝 {{ \Illuminate\Support\Str::limit($item->motivo_resolucion, 25) }}
@endif
Cta. 531095
{{ $item->numero_resolucion ?? 'REINT' }}
@elseif($item->estado === 'devuelto_proveedor')
👤 {{ $item->usuario_resolucion ?? 'admin' }} | 📅 {{ substr($item->fecha_resolucion, 0, 10) }}
@if(!empty($item->motivo_resolucion))
📝 {{ \Illuminate\Support\Str::limit($item->motivo_resolucion, 25) }}
@endif
Kardex
{{ $item->numero_resolucion ?? 'DEV-PROV' }}
@else
@if(!empty($item->numero_resolucion))
{{ $item->numero_resolucion }}👤 {{ $item->usuario_resolucion ?? 'admin' }} | 📅 {{ substr($item->fecha_resolucion, 0, 10) }}
@if(!empty($item->motivo_resolucion))
📝 {{ \Illuminate\Support\Str::limit($item->motivo_resolucion, 25) }}
@endif
Proveedor
@endif {{ $item->motivo_resolucion ?: 'Resuelto' }} @endif |
|
📭
No se encontraron registros con los filtros seleccionados
Puedes cambiar de pestaña arriba, ajustar fechas o limpiar filtros. |
|||||||||||