Erdos Import AI
{{-- Alert Messages --}}
@if(session('messages')) @if(!empty(session('messages.errors')))
    @foreach(session('messages.errors') as $error)
  • {{ $error }}
  • @endforeach
@endif @if(!empty(session('messages.saved')))

Saved Orders:

    @foreach(session('messages.saved') as $saved)
  • {{ $saved }}
  • @endforeach
@endif @endif @if($errors->all()) @endif
@if (!$zohoConnected) @else
@if($this->invoices)
@foreach($this->invoices as $i => $invoice) @foreach($invoice['lines'] as $l => $line) @endforeach @endforeach
Season Date PO Number Invoice Number Customer Ref Colour Qty Erdos Price RT Price Invoice Value % Commission Drops
{{ $invoice['season'] }} {{ $invoice['date']->format('d/m/y') }} {{ $invoice['po_number'] }} {{ $invoice['invoice_no'] }} {{ $line['product_id'] }} @php $hasColour = !empty($line['colour'] ?? ''); @endphp {{ $line['colour'] ?? 'Unresolved' }} {{ $line['quantity'] }} {{ number_format($line['unit_price'] ?? 0, 2) }} {{ number_format($line['rt_price'] ?? 0, 2) }} {{ number_format($line['line_total'] ?? 0, 2) }} {{ number_format($line['commission_percent'] ?? 0, 2) }} {{ $line['commission'] ?? 0 }} @if(!empty($line['match'])) @foreach($line['match'] as $d=>$drop) @endforeach
Drop Qty RT Invoice
{{ $drop['model']->id ?? '' }} {{ (int)($drop['alloc'] ?? $drop['qty'] ?? 0) }} {{ $rtinvoice[$drop['model']->id ?? null] ?? ($drop['model']->rt_invoice ?? '') }}
@else
No Drops Matched. @if(!empty($line['colour'] ?? '')) Check colour match @endif
Assign drop(s) — qty shows remaining on this page:
@endif
@endif
@endif
@script @endscript