@if($rows->isEmpty())

{{ $empty ?? 'No rows.' }}

@else
@foreach($rows as $m) @endforeach
Material Stock Min Reorder Reorder qty Supplier Action
{{ $m->name }} {{ rtrim(rtrim((string) $m->current_stock, '0'), '.') }} {{ rtrim(rtrim((string) $m->minimum_stock_level, '0'), '.') }} {{ $m->reorder_level !== null ? rtrim(rtrim((string) $m->reorder_level, '0'), '.') : '—' }} {{ $m->reorder_quantity !== null ? rtrim(rtrim((string) $m->reorder_quantity, '0'), '.') : '—' }} {{ $m->defaultSupplier?->company_name ?? '—' }} Create PO
@endif