Assign a discount % to a category. Any product belonging to that category is automatically included in the flash sale — no per-product setup needed. Adding or removing products from the category updates the sale in real time. Product-level entries (above) take priority if a product is in both.

{{-- Add new category discount rule --}}
%
{{-- Existing rules --}}
@forelse($categoryDiscounts as $index => $cd)
{{ $cd->category->name ?? '—' }}
%
{{ $cd->sold }} sold
@empty

No category discount rules yet.

@endforelse
@push('footer') @endpush