{{-- @if (Session::get('message')) --}}

{{ Session::get('message') }}

@foreach ($errors->all() as $error) {{ $error }}
@endforeach
{{-- @endif --}} {{-- @if(!empty($form->order)) --}}
PROD
{{$form->order->id ?? ""}}

Spinner
@if(Gate::check('order:update') && $new) @else {{$form->order->suppliers->name ?? ""}} @endif

Invoice To
@if(Gate::check('order:update') && !$viewOnly) @else {{$form->order->invoice_to->name ?? ""}} @endif

Deliver To
@if(Gate::check('order:update') && !$viewOnly) @else {{$form->order->deliver_to->name ?? ""}} @endif

Season
@if(Gate::check('order:update') && !$viewOnly) @else {{$form->order->seasons->description ?? ""}} @endif
Order Date
@if(Gate::check('order:update') && !$viewOnly) @elseif(!empty($form->order)) {{$form->order->date->format('d-M-Y') ?? ""}} @endif

Customer
@if(Gate::check('order:update') && $new) @else {{$form->order->customers->name ?? ""}} @endif

Files
@if(Gate::check('order:update') && !$viewOnly) @endif
    @foreach($this->form->orderEdit['yarn_order_files'] ?? [] as $f=>$file)
  • @if(Gate::check('order:update') && !$viewOnly) @endif {{ $file['filename'] }}
  • @endforeach

@if(Gate::check('order:update') && !$viewOnly)
@endif

Notes
@if(Gate::check('order:update') && !$viewOnly) @elseif(!empty($form->order)) {{$form->order->date->format('d-M-Y') ?? ""}} @endif
@if(Gate::check('finance:read')) @endif @if(Gate::check('order:update') && !$viewOnly) @endif @foreach ($form->orderEdit['yarn_order_lines'] ?? [] as $i=>$line) @foreach (!empty($line['yarn_order_line_styles']) ? $line['yarn_order_line_styles'] : [NULL] as $s=>$style) @if($loop->first) @can('finance:update') @endcan @endif @if($loop->first) @if(Gate::check('order:update') && !$viewOnly) @endif @endif @endforeach @endforeach
Yarn Colour KG Price ExMill Confirmed ExMill ShippedInvoice No Invoiced Qty NotesOrder Colourway Priced Cost
@if(Gate::check('order:update') && !$viewOnly) @else {{$this->yarnColours->where('id', $line['yarn_colours_id'])->first()->yarn->description}} {{$this->yarnColours->where('id', $line['yarn_colours_id'])->first()->yarn->counts->count}} @endif @if(Gate::check('order:update') && !$viewOnly) @else {{$this->yarnColours->where('id', $line['yarn_colours_id'])->first()->reference}} ({{$this->yarnColours->where('id', $line['yarn_colours_id'])->first()->description}}) @endif @if(Gate::check('order:update') && !$viewOnly) @else {{$line['qty']}} @endif @if(Gate::check('order:update') && !$viewOnly) @else {{$form->order->suppliers->currency}}{{$line['price']}} @endif @if(Gate::check('order:update') && !$viewOnly) @else {{$line['ship_date']}} @endif @if(Gate::check('order:update') && !$viewOnly) @else {{$line['actual_ship_date']}} @endif @if(Gate::check('order:update') && !$viewOnly) @else {{$line['delivery_date']}} @endif @if(Gate::check('finance:update') && !empty($line['id']) && !$viewOnly) @else {{$line['invoice_no'] ?? ""}} @endif @if(Gate::check('finance:update') && !empty($line['id']) && !$viewOnly) @else {{$line['invoiced_qty'] ?? ""}} @endif @if(Gate::check('finance:update') && !empty($line['id']) && !$viewOnly) @else {{$line['fn_notes'] ?? ""}} @endif @if(!empty($style)) @if(Gate::check('order:update') && !$viewOnly) @else {{$style['customer_order_lines']['customer_orders']['customer_po'] ?? ""}} @endif @endif @if(!empty($style)) @if(Gate::check('order:update') && !$viewOnly)
{{-- {{$form->orderEdit['yarn_order_lines'][$i]['yarn_order_line_styles'][$s]['customer_orders_id'] ?? 'NONE'}} --}} @else {{$style['customer_order_lines']['colourways']['style_versions']['styles']['designs_id'] ?? ""}} | {{$style['customer_order_lines']['colourways']['style_versions']['styles']['customer_ref'] ?? ""}} ({{$style['customer_order_lines']['colourways']['style_versions']['name'] ?? ""}}) {{$style['customer_order_lines']['colourways']['name'] ?? ""}} @endif @endif
{{$style['customer_order_lines']['yarn_cost'] ?? ""}}
{{-- @endif --}}
@if(Gate::check('order:update') && !$viewOnly) @endif