@php $fulfillmentOrders = $this->fulfillmentOrders ?? []; $b2cSuppliers = $this->b2cSuppliers ?? []; $b2bSuppliers = $this->b2bSuppliers ?? []; @endphp
{{-- Fulfillment Header Controls --}}
{{-- Fulfillment Order Dropdown --}}
{{-- Add to Fulfillment Button - Collect selections and submit --}} {{-- Export Button --}} {{-- Export Buy Price Button --}} {{-- Export Counselman Button --}} {{-- Export PartsBox Button --}}
{{-- B2C Dropdown --}}
{{-- Search input --}}
{{-- Supplier list --}}
No suppliers found
{{-- B2B Dropdown --}}
{{-- Search input --}}
{{-- Supplier list --}}
No suppliers found
{{-- Empty filters section stub to hold the toggles --}} {{-- Main Table Section --}}
{{ $this->table }} {{-- Custom expanded rows for items --}}
@foreach($this->getTableRecords() as $record) @php $orderItems = $record->items->whereIn('current_status', [1, 2, 3]); @endphp @if($orderItems->count() > 0)

Order Items for {{ $record->external_order_id }}

@foreach($orderItems as $item)
{{-- Price badge --}} ${{ number_format($item->sale_price, 2) }} {{-- Product info --}}
{{ $item->qty }} x @if($item->product) {{ $item->product->name }} [{{ $item->product->sku }}] @else {{ $item->part_num }} @endif
@if($item->product && $item->product->notes)
{{ $item->product->notes }}
@endif
{{-- Part number --}}
{{ $item->product->partslink ?? $item->part_num ?? '' }}
{{-- Status --}} @if($item->status) {{ $item->status->status }} @endif {{-- Supplier badges with selection --}}
{{-- NONE option --}} {{-- Supplier badges container --}}
{{-- Will be populated via AJAX --}} Loading suppliers...
{{-- Auto fulfill toggle --}} {{-- Item note --}}
{{ $item->note }}
@endforeach {{-- Order notes section --}}
    @foreach($record->notes as $note)
  • {{ $note->author }} {{ $note->date ? $note->date->format('M j, h:i a') : '' }} - {{ $note->note }}
  • @endforeach
@else
No items found
@endif @endforeach
@push('styles') @endpush @push('scripts') @endpush