| Sales man:{{$data['salesman']->name}} | Load ID:{{$data['load_id']}} | Date: {{$data['date']}} |
| Code | Product's Name | @if($data['count']==3)Load 1 | Load 2 | Load 3 | @endif @if($data['count']==2)Load 1 | Load 2 | @endif @if($data['count']==1)Load 1 | @endifTotal Issued | Returns | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Ctn | Pcs/Box | Ctn | Pcs/Box | Ctn | Pcs/Box | @endif @if($data['count']==2)Ctn | Pcs/Box | Ctn | Pcs/Box | @endif @if($data['count']==1)Ctn | Pcs/Box | @endifCtn | Pcs/Box | Damage | Sellable | |||
| {{$load->brand_name}} | ||||||||||||||||||
| {{$item->item_sku}} | {{$item->item_name}} | @foreach ($item->content as $key => $content) @php $PTIQ = $PTIQ + $content->parent_qty; $CTIQ = $CTIQ + $content->child_qty; $contentCountData[$key]->parent_qty = $contentCountData[$key]->parent_qty + $content->parent_qty; $contentCountData[$key]->child_qty = $contentCountData[$key]->child_qty + $content->child_qty; @endphp{{$content->parent_qty}} | {{$content->child_qty}} | @endforeach{{$item->total_primary_qty}} | {{$item->total_secondary_qty}} | |||||||||||||
| Total: | @foreach ($contentCountData as $contentCount){{ $contentCount->parent_qty }} | {{ $contentCount->child_qty }} | @endforeach{{ $PTIQ }} | {{ $CTIQ }} | ||||||||||||||
|
| Sales man:{{$data['salesman']->name}} | Load ID:{{$data['load_id']}} | Date: {{$data['date']}} |
| Invoice # | Shope Code | Retailer | Order Booker | Status | Total Units |
Return | Sales | Total Amount |
@foreach($data['invoices'] as $invoice)
@php
$retailer = [$invoice->retailer_name ? $invoice->retailer_name:'',$invoice->neighbourhood_name ? $invoice->neighbourhood_name:'',$invoice->retailer_owner ? $invoice->retailer_owner:''];
$retailer = collect(array_filter($retailer))->implode('/');
@endphp
|---|---|---|---|---|---|---|---|---|
| {{$invoice->invoice_number}} | {{$invoice->shop_code}} | {{$retailer}} | {{$invoice->order_booker_name}} | Open | {{number_format($invoice->ttl_units)}} | {{number_format($invoice->order_total,2)}} | ||
| Total | {{number_format(collect($data['invoices'])->sum('ttl_units'))}} | {{number_format(collect($data['invoices'])->sum('order_total'),2)}} | ||||||
Invalid load sheet