{{-- New-Unity ERP | purchases/orders/index.blade.php | v1.0 | 28/06/2026 --}} {{-- v1.0 — Índice de Órdenes de Compra con filtros y semáforo de status. --}} @extends('layouts.vertical') @section('content')
| {{ __('purchases.po-num') }} | {{ __('purchases.origin') }} | {{ __('purchases.supplier-products') }} | {{ __('purchases.items') }} | {{ __('purchases.total-col') }} | {{ __('purchases.status') }} | {{ __('purchases.expected') }} | {{ __('purchases.created-by') }} | {{ __('purchases.actions') }} |
|---|---|---|---|---|---|---|---|---|
|
{{ $order->po_number }}
{{ $order->created_at->format('d-m-Y') }} |
{{ $order->origin === 'rfq' ? 'RFQ' : __('purchases.direct') }} |
{{ $order->supplier?->commercial_name ?? $order->supplier?->name }}
@if($order->payment_terms)
· {{ $order->payment_terms }}
@endif
@if($order->items->isNotEmpty())
{{ Str::limit($order->items->first()->product_name_snapshot, 50) }} @if($order->items_count > 1) {{ __('purchases.more-items', ['count' => $order->items_count - 1]) }} @endif @endif |
{{ $order->items_count }} |
${{ number_format($order->total, 2) }}
{{ $order->currency }} |
{{ $order->statusLabel() }} | {{ $order->expected_date?->format('d-m-Y') ?? '—' }} | {{ $order->createdBy?->name ?? '—' }} | |
|
{{ __('purchases.no-purchase-orders') }}
{{ __('purchases.create-first-po') }} |
||||||||