Saving…
@if(!in_array($selected, ['Accessories & More','Axles & Suspension','Body & Chassis','Braking System','Cooling & Climate','Electrical','Engine Parts','Exhaust System','Fuel & Air','Powertrain & Clutch','Service & Maintenance','Steering']))
Delete
@endif
@php $stats = $this->applyStats; @endphp
{{-- Export CSV: always show when any mappings exist --}}
@if(!empty($stats['mapped_part_cats'] ?? []))
Export preview
Building…
@endif
{{-- Update button: only when products need moving --}}
@if($stats['product_count'] > 0 && $stats['has_changes'])
Update {{ number_format($stats['assignment_count']) }} assignments
({{ number_format($stats['product_count']) }} products)
@elseif($stats['product_count'] === 0 && !empty($stats['mapped_part_cats'] ?? []))
All products categorised
@endif