{{ config('app.name', 'ERP Farmacias') }}
Orden de Reabastecimiento Automático IA
Fecha de Emisión: {{ now()->format('d/m/Y g:i A') }}
ORDEN DE COMPRA
#ORD-{{ str_pad((string)($orderId ?? 1), 6, '0', STR_PAD_LEFT) }}
Proveedor: {{ $supplierName ?? 'N/A' }} Estatus: Pendiente de Aprobación
RIF / Identificación: {{ $supplierRif ?? 'S/R' }} Fecha de Generación: {{ now()->format('Y-m-d') }}
@forelse($items as $index => $item) @empty @endforelse
# Producto / Insumo Cant. Solicitada Costo Unit. ($) Subtotal ($)
{{ $index + 1 }} {{ $item['name'] }} @if(!empty($item['sku']))
SKU: {{ $item['sku'] }} @endif
{{ number_format($item['quantity'], 0) }} ${{ number_format($item['unit_cost'], 2) }} ${{ number_format($item['subtotal'], 2) }}
No hay productos registrados en esta orden.
Total Ítems Solicitados: {{ $totalItems ?? 0 }}
Total Unidades: {{ number_format($totalQuantity ?? 0, 0) }}
Monto Total USD: ${{ number_format($totalAmount ?? 0, 2) }}