@if($i === 0)
@if($columns['Shipment No']){{$shipment->id}} | @endif
@if($columns['Created']){{$shipment->created_at->format('d-M-Y')}} | @endif
@if($columns['Organiser']){{$shipment->organiser}} | @endif
@if($columns['Transporter']){{$shipment->transporters?->name}} | @endif
@if($columns['Price'])£{{number_format($shipment->cost, 2)}} | @endif
@if($columns['Qty']){{$shipment->goods_qty}} | @endif
@if($columns['Shipped Qty']){{ $shipment->shipment_lines->sum(fn($l) => $l->shipment_line_sizes->sum('shipped_qty')) }} | @endif
@endif
@if($columns['Factory']){{ $factories[$i] ?? '' }} | @endif
@if($columns['Style']) | @endif
@if($columns['Description']) | @endif
@if($columns['Customer']){{ $customers[$i] ?? '' }} | @endif
@if($i === 0)
|
@endif
@endfor
@endforeach