@php $stats = $this->stats; $masterOn = $this->masterEnabled; @endphp {{-- ───────────────── Status + stats ───────────────── --}} Used Parts True AutoFulfill Two locks are required: the master switch and a supplier's toggle must both be on before anything pushes.
Master switch {{ $masterOn ? 'ON' : 'OFF' }} Dry-run: {{ $this->dryRun ? 'on' : 'off' }} Go-live: {{ $this->goLiveAt ?: 'none' }}
@php $tiles = [ ['Enabled suppliers', $stats['enabled'], 'text-primary-600'], ['Marked ready · 24h', $stats['ready'], 'text-warning-600'], ['Ordered · 24h', $stats['ordered'], 'text-success-600'], ['Held / skipped · 24h', $stats['held'], 'text-gray-500'], ['Errors · 24h', $stats['errors'], $stats['errors'] ? 'text-danger-600' : 'text-gray-500'], ]; @endphp @foreach ($tiles as [$label, $value, $valueColor])
{{ $label }}
{{ $value }}
@endforeach
{{-- ───────────────── Tabs ───────────────── --}} Suppliers Activity Log Held / Skipped {{-- ───────────────── Suppliers ───────────────── --}} @if ($activeTab === 'config') Per-supplier rollout Toggle a used-parts supplier (id ≥ 74) into True AutoFulfill. Only suppliers with a verified Go-Parts Ship warehouse mapping can be enabled — others stay “held” until their mapping is added to config.
@foreach ($this->suppliers as $s) @endforeach
Supplier Code Routable Status
{{ $s->name }}
ID {{ $s->supplier_id }}
{{ $s->code }} {{ $s->is_routable ? 'Mapped' : 'Held' }} {{ $s->true_autofulfill_enabled ? 'Enabled' : 'Off' }} {{ $s->true_autofulfill_enabled ? 'Disable' : 'Enable' }}
@endif {{-- ───────────────── Activity / Held ───────────────── --}} @if ($activeTab === 'activity' || $activeTab === 'held') @php $rows = $activeTab === 'held' ? $this->held : $this->logs; @endphp {{ $activeTab === 'held' ? 'Held & skipped items' : 'Activity log' }} {{ $activeTab === 'held' ? 'Items the pipeline did not push — hazmat, unmapped warehouse, or errors. Need manual follow-up.' : 'Every decision the qualifier and processor made, newest first.' }}
{{-- filters --}}
@foreach (['marked_ready','pushed','ordered','held','skipped','error','dry_run'] as $o) @endforeach
{{-- table --}}
@forelse ($rows as $r) @php $outcomeColor = match ($r->outcome) { 'ordered', 'pushed' => 'success', 'marked_ready' => 'warning', 'error' => 'danger', 'dry_run' => 'info', default => 'gray', }; @endphp @empty @endforelse
When Order Item Supplier Stage Outcome Reason Ref
{{ $r->created_at?->format('M j, H:i') }} {{ $r->order_id }}
{{ $r->order_item_id }}
@if ($r->part_num)
{{ $r->part_num }}
@endif
{{ $this->supplierCodes[$r->supplier_id] ?? ('#' . $r->supplier_id) }} {{ $r->stage }}{{ $r->route ? ' · ' . $r->route : '' }} {{ str_replace('_', ' ', $r->outcome) }} {{ $r->reason }} @if ($r->gps_warehouse)
{{ $r->gps_warehouse }}
@endif @if ($r->gps_order_id)
GPS {{ $r->gps_order_id }}
@endif @if ($r->pams_work_order)
WO {{ $r->pams_work_order }}
@endif
No entries for the selected filters.
@if ($rows->hasPages()) {{ $rows->links() }} @endif
@endif