@if (count($lines) > 0)

Supplier scheme — free units

Free units due for what has been received. Adding them puts them in stock at zero cost and records the saving as scheme benefit.

@foreach ($lines as $line) @endforeach
Product Scheme Received Free due Already added Add now
{{ $line['product']->name }} {{ $line['scheme']->name }} {{ $line['received'] }} {{ $line['due'] }} {{ $line['granted'] }} @if ($line['pending'] > 0) @can('purchases.receive')
@if ($line['needs_batch']) @endif
@error('quantities.'.$line['product']->id)
{{ $message }}
@enderror @else {{ $line['pending'] }} pending @endcan @else All added @endif
@if ($receipts->isNotEmpty())
Added so far: @foreach ($receipts as $receipt) {{ $receipt->quantity }} × {{ $receipt->product?->name }} ({{ $receipt->received_date->format('d M') }}, worth ₹{{ number_format($receipt->benefit_value, 2) }}){{ $loop->last ? '' : ' · ' }} @endforeach
@endif
@endif