{{-- shipment-schedule-dev.blade.php --}}
{{-- Title Bar --}} Wholesale Shipment Schedule {{-- Save Indicators --}} @can('finance:update') {{-- Invoice Button --}} @endcan {{-- Other Actions --}} {{-- hasMorePages()) onclick="confirm('This will select every item matching the filters, even if they are not yet loaded on this page. Continue?') || event.stopImmediatePropagation()" @endif>Select All --}} {{-- Filters --}}
@if(!$hideFilters)
@if(empty($this->view))
@endif
@error('search') {{ $message }} @enderror
@error('search') {{ $message }} @enderror
@endif
{{-- Main Content --}}
{{-- Alert Messages --}}
@if (Session::get('message')) @endif @if($errors->all()) @endif
{{-- Data Table --}}
@csrf @if($this->columns['Season']) @endif @if($this->columns['Factory']) @endif @if($this->columns['Customer']) @endif {{-- @if($this->columns['Order Issued']) @endif --}} @if($this->columns['Order No']) @endif @if($this->columns['Style']) @endif @if($this->columns['Description']) @endif @if($this->columns['Colour']) @endif @if($this->columns['Image']) @endif @if($this->columns['Sizes']) @endif @if($this->columns['Total Qty']) @endif @if($this->columns['Total Shipped']) @endif @if($this->columns['Sealer Sample']) @endif @if($this->columns['Shipment Sample']) @endif @if($this->columns['ExFty']) @endif @if($this->columns['Revised ExFty']) @endif @if($this->columns['Customer exFty']) @endif @if($this->columns['Customer Into w/h']) @endif {{-- @if($this->columns['CMT']) @endif --}} @if($this->columns['Total CMT']) @endif {{-- @if($this->columns['Quote']) @endif --}} @if($this->columns['Total Sale']) @endif @if($this->columns['Transport Budget']) @endif @if($this->columns['Incoterms']) @endif @if($this->columns['Truck']) @endif @if($this->columns['Collection']) @endif @if($this->columns['Customs ERN']) @endif @if($this->columns['Shipped']) @endif @if($this->columns['ASOS 3% Discount Price']) @endif @if($this->columns['RT Invoice']) @endif @if($this->columns['Factory Invoice']) @endif @if($this->columns['Customs Invoice']) @endif @if($this->columns['Transporter Invoice']) @endif @if($this->columns['Finance Complete']) @endif @if(!empty($rows)) @foreach ($rows as $d=>$drop) {{-- @if($this->chunk[$d]['is_first_in_shipment']) @endif --}} @if($columns['Season']) @endif @if($columns['Factory']) @endif @if($columns['Customer']) @endif @if($columns['Order No']) @endif @if($columns['Style']) @endif @if($columns['Description']) @endif @if($columns['Colour']) @endif @if($columns['Image']) @endif @if($columns['Sizes']) @endif {{-- @if($columns['Total Qty']) @endif @if($columns['Total Shipped']) @endif @if($columns['Sealer Sample']) @endif @if($columns['Shipment Sample']) @endif @if($columns['ExFty']) @endif @if($columns['Revised ExFty']) @endif @if($columns['Customer exFty']) @endif @if($columns['Customer Into w/h']) @endif @if($columns['Total CMT']) @endif @if($columns['Total Sale']) @endif @if($columns['Transport Budget']) @endif @if($columns['Incoterms']) @endif @if($columns['Truck']) @endif @if($columns['Collection']) @endif @if($columns['Customs ERN']) @endif @if($columns['Shipped']) @endif @if($columns['ASOS 3% Discount Price']) @endif @if($columns['RT Invoice']) @endif @if($columns['Factory Invoice']) @endif @if($columns['Customs Invoice']) @endif @if($columns['Transporter Invoice']) @endif @if($columns['Finance Complete']) @endif --}} {{-- @if($this->notesColsCount() != 0) @endif @if($this->fnNotesColsCount() != 0) @endif --}} @endforeach @endif
Drop#SeasonFactoryCustomerOrder IssuedOrder NoStyleDescriptionColourImageSizesTotal QtyTotal ShippedSealer SampleShipment SampleExFtyRevised ExFtyCustomer exFtyCustomer Into w/hCMTTotal CostQuoteTotal SaleTransport BudgetIncotermsTruckCollectionCustoms ERNShippedASOS 3% Discount PriceRT InvoiceFactory InvoiceCustoms InvoiceTransporter InvoiceFinance Complete
{{$drop->id}}
Issue
{{ $drop->season_description }}{{ $drop->factory_name }}{{ $drop->customer_name }} {{ $drop->customer_po }}
@if($drop->order_date) {{ date("d-M", strtotime($drop->order_date)) }} @endif
{{ $drop->design_id }} ({{$drop->style_version_name}})
{{ $drop->customer_ref ?? "" }}

{{ Str::title($drop->description) }}{{ Str::title($drop->colourway_name) }} @if(!empty($drop->img_thumb)) @endif
{{ $drop['total_pieces'] }}{{ $drop['total_pieces_shipped'] }} {{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']}}

{{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']}}

@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
@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
@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
@if(!empty($drop['customer_order_lines']['wh_cust_date'])){{ date_format(date_create($drop['customer_order_lines']['wh_cust_date']), "d-M") }}@endif
@if(!empty($drop['customer_order_lines']['wh_cust_date'])){{ date_format(date_create($drop['customer_order_lines']['wh_cust_date']), "Y") }}@endif
{{$drop['customer_order_lines']['colourways']['style_versions']['factories']['currency']}}{{$drop['total_prices']['subtotal']}} {{$drop['customer_order_lines']['customer_orders']['customers']['currency']}}{{$drop['total_prices']['quote']}} £{{number_format($drop['total_prices']['transport_budget'], 2)}} {{$drop['customer_order_lines']['customer_orders']['incoterms']}} {{$drop['shipment_id'] ?? ""}}
{{$drop['shipments']['transporters']['name'] ?? ""}}
({{$drop['shipments']['organiser'] ?? ""}})
{{$drop['shipments']['transporters']['currency'] ?? ""}}{{$drop['shipments']['cost'] ?? ""}}
@if(!empty($drop['collection_date'])){{ date_format(date_create($drop['collection_date']), "d-M") }}@endif
{{$drop['collection_date'] ? date_format(date_create($drop['collection_date']), "Y") : ""}}
{{$drop['shipments']['customs_submitted_text'] ?? ""}} {{$drop['complete'] ? 'Y' : 'N'}}
@if($drop['customer_order_lines']['customer_orders']['customers_id'] == 6) {{$drop['customer_order_lines']['customer_orders']['customers']['currency']}}{{number_format($drop['customer_order_lines']['customer_order_line_quantities'][0]['price_model']['quote'] ?? 0 * 0.97,2)}} @endif
@can('finance:update') @else @can('finance:read') {{$drop['rt_invoice']}} @endcan @endcan @can('finance:update') @else @can('finance:read') {{$drop['factory_invoice']}} @endcan @endcan @can('finance:update') @else @can('finance:read') {{$drop['customs_agency_invoice']}} @endcan @endcan @if($drop['shipments']) @can('finance:update') @else @can('finance:read') {{$drop['shipments']['transporter_invoice']}} @endcan @endcan @endif
@can('finance:update') @else @can('finance:read') {{$drop['invoiced']}} @endcan @endcan
@if(Gate::check('style:update') || Gate::check('order:update')) @else

{{$drop['notes']}}

@endif
@if(Gate::check('finance:update')) @else

{{$drop['fn_notes']}}

@endif
@can('order:create') @endcan {{-- --}} {{-- Footer --}} {{-- {{ $drops->links() }} --}}