@if($configuraciones && $configuraciones->logo) @else @endif
{{ $configuraciones ? $configuraciones->nombre_clinica : 'CLÍNICA DEVMEDIC' }}
Dirección: {{ $configuraciones ? $configuraciones->direccion : 'Matriz Principal' }}
AUDITORÍA DE VENCIMIENTOS
Fecha: {{ $fechaReporte }}
1. MEDICAMENTOS VENCIDOS (DEBEN SER RETIRADOS DE INVENTARIO INMEDIATAMENTE)
@if($vencidos->isEmpty())

No se registran medicamentos vencidos en el inventario.

@else @foreach($vencidos as $idx => $v) @endforeach
# Código Medicamento / Laboratorio Lote F. Vencimiento Stock Físico Ubicación
{{ $idx + 1 }} {{ $v->codigo }} {{ $v->nombre_comercial }} ({{ $v->concentracion }})
{{ $v->laboratorio }}
{{ $v->lote ?: 'S/L' }} {{ $v->fecha_vencimiento->format('d/m/Y') }} {{ $v->stock }} unids. {{ $v->ubicacion ?: 'No especificada' }}
@endif
2. MEDICAMENTOS PRÓXIMOS A VENCER (DENTRO DE LOS PRÓXIMOS 60 DÍAS)
@if($porVencer->isEmpty())

No hay medicamentos próximos a vencer en los siguientes 60 días.

@else @foreach($porVencer as $idx => $pv) @php $dias = \Carbon\Carbon::today()->diffInDays($pv->fecha_vencimiento, false); @endphp @endforeach
# Código Medicamento / Laboratorio Lote F. Vencimiento Días Restantes Stock Ubicación
{{ $idx + 1 }} {{ $pv->codigo }} {{ $pv->nombre_comercial }} ({{ $pv->concentracion }})
{{ $pv->laboratorio }}
{{ $pv->lote ?: 'S/L' }} {{ $pv->fecha_vencimiento->format('d/m/Y') }} {{ $dias }} días {{ $pv->stock }} unids. {{ $pv->ubicacion ?: 'No especificada' }}
@endif