@foreach($drops as $d=>$drop) @if(!isset($this->chunk[$d])) {{dd($this->chunk, $drops)}} @endif {{$drop['id']}}
@if($columns['Factory']) {{ $drop['customer_order_lines']['colourways']['style_versions']['factories']['name'] }} @endif @if($columns['Image']) @if(!empty($drop['customer_order_lines']['colourways']['img_thumb'])) @endif @endif @if($columns['RT Number']) {{ $drop['customer_order_lines']['colourways']['style_versions']['styles']['designs_id'] }} @endif @if($columns['Description']) {{ Str::title($drop['customer_order_lines']['colourways']['style_versions']['styles']['designs']['description']) }} @endif @if($columns['Order Date']) {{ date("d-M", strtotime($drop['customer_order_lines']['customer_orders']['order_date'])) }} @endif @if($columns['Order No']) {{ $drop['customer_order_lines']['customer_orders']['customer_po'] }}
@endif @if($columns['Customer Ref']) {{ $drop['customer_order_lines']['colourways']['style_versions']['styles']['customer_ref'] ?? "" }}

@endif @if($columns['Colour']) {{ Str::title($drop['customer_order_lines']['colourways']['name']) }} @endif @if($columns['Price']) PRICE @endif @if($columns['Total Qty']) {{ $drop['total_pieces'] }} @endif @if($columns['Sealer Sample']) {{Illuminate\Support\Str::title($drop['sealer_sample']['status'])}}
@if($drop['sealer_sample']['date_sent']) {{date("d-M", strtotime($drop['sealer_sample']['date_sent']))}} @endif {{$drop['sealer_sample']['note']}}

{{$drop['sealer_sample']['comments']}}

@endif @if($columns['Shipment Sample']) {{Illuminate\Support\Str::title($drop['shipment_sample']['status'])}}
@if($drop['shipment_sample']['date_sent']) {{date("d-M", strtotime($drop['shipment_sample']['date_sent']))}} @endif {{$drop['shipment_sample']['note']}}

{{$drop['shipment_sample']['comments']}}

@endif @if($columns['ExFty']) @if(!empty($drop['first_exfty'])){{ date_format(date_create($drop['first_exfty']), "d-M") }}@endif
@if(!empty($drop['first_exfty'])){{ date_format(date_create($drop['first_exfty']), "Y") }}@endif @endif @if($columns['Revised ExFty']) @if(!empty($drop['exfty'])){{ date_format(date_create($drop['exfty']), "d-M") }}@endif
@if(!empty($drop['exfty'])){{ date_format(date_create($drop['exfty']), "Y") }}@endif @endif @if($columns['Customer exFty']) @if(!empty($drop['customer_order_lines']['factory_cust_date'])){{ date_format(date_create($drop['customer_order_lines']['factory_cust_date']), "d-M") }}@endif
@if(!empty($drop['customer_order_lines']['factory_cust_date'])){{ date_format(date_create($drop['customer_order_lines']['factory_cust_date']), "Y") }}@endif @endif @endforeach