@php $stock_locations = $stock_locations ?? collect(); $colspan = 6 + $stock_locations->count(); @endphp