{{-- Light-mode colors match the original markup; .dark overrides keep every text/background legible in dark mode (same pf-* pattern as the PAMS Fulfillment page). --}}
{{-- Tab bar --}}
{{-- ==================== IMPORT TAB ==================== --}} @if($activeTab === 'import')
{{-- Upload card --}}
File Upload

Upload limits: {{ ini_get('upload_max_filesize') }} / {{ ini_get('post_max_size') }}

@if(!empty($importSummary))

Import Summary

{{ $importSummary['total_rows'] }} rows · {{ $importSummary['imported'] }} imported · {{ $importSummary['skipped'] }} skipped · {{ $importSummary['errors'] }} errors

@endif @if(!empty($alreadyExistMessages))

Duplicates ({{ count($alreadyExistMessages) }})

@foreach(array_slice($alreadyExistMessages, 0, 5) as $msg)

{{ $msg }}

@endforeach @if(count($alreadyExistMessages) > 5)

... and {{ count($alreadyExistMessages) - 5 }} more

@endif
@endif
{{-- Help card --}}
CSV Format

Comma-separated CSV with a header row.

Required

Order # Matches by external order ID

Optional columns

@foreach(['Supplier Part #', 'Partslink #', 'Part Name', 'Part Details', 'Quantity', 'Phone'] as $col) {{ $col }} @endforeach
@endif {{-- ==================== VIEW TAB ==================== --}} @if($activeTab === 'view')
{{-- Filters --}}
{{-- Table --}}
@forelse($this->meyerOrders as $order) @empty @endforelse
Ext. Order ID Order ID Item ID Qty Partslink Status Error Created
{{ $order->external_order_id }} {{ $order->order_id }} {{ $order->item_id }} {{ $order->quantity }} {{ $order->partslink }} @php $statusStyles = [ -1 => 'background:#fef2f2;color:#991b1b;border:1px solid #fecaca;', 0 => 'background:#fffbeb;color:#92400e;border:1px solid #fde68a;', 1 => 'background:#eff6ff;color:#1e40af;border:1px solid #bfdbfe;', 2 => 'background:#f0fdf4;color:#166534;border:1px solid #bbf7d0;', ]; $badgeStyle = $statusStyles[$order->processed] ?? ''; @endphp {{ $order->status_label }} {{ $order->meyer_error ?: '-' }} {{ $order->created_at ? $order->created_at->format('m/d/Y') : '-' }}
No orders found
{{-- Pagination --}} @if($this->meyerOrders && method_exists($this->meyerOrders, 'hasPages') && $this->meyerOrders->hasPages())
{{ $this->meyerOrders->links() }}
@endif
@endif