@extends('index') @section('content')

Order Status @if(isset($isMultiOrder) && $isMultiOrder) Multi-Order @endif

@csrf
Customer No: {{$order['customer_no']}}
Customer Name: {{$order['fname']}} {{$order['lname']}}
@if(isset($isMultiOrder) && $isMultiOrder && isset($relatedOrders) && count($relatedOrders) > 1) @endif
Order No {{is_array($order) ? $order['order_no'] : $order->order_no}}
Job No: {{is_array($order) ? $order['job_no'] : $order->job_no}}
Related Orders: @foreach($relatedOrders as $index => $relOrder) @if($index < 3) {{$relOrder->order_no ?? 'N/A'}} @endif @endforeach @if(count($relatedOrders) > 3) +{{count($relatedOrders) - 3}} more @endif
Date: {{is_array($order) ? $order['order_date'] : $order->order_date}}
Delivery Information
Good job!
Enter Stock No
Good job!
Good job!
Select Order Status
Good job!
Select Delivery Status
Shipping From
Good job!
Select Shipping Method
Shipping To
Commercial Invoice Information
Good job!
Good job!
Good job!
Good job!
Ordered Items / Products
@php $deliveryMap = []; foreach ($deliveryItem as $di) { $key = $di['product_type_id'] . '-' . $di['stage_id']; $deliveryMap[$key] = $di['quantity']; } @endphp @if(count($stock)) @php $index = 1; @endphp @foreach($stock as $key => $item) @php $item = (object) $item; @endphp @unless(($item->stockIn - $item->stockOut) <= 0) @php $key = $item->product_type_id . '-' . $item->stage_id; $qty = $deliveryMap[$key] ?? 0; @endphp @endunless @endforeach @endif
Sr. Item / Product Stage Ordered / Delivered Remaining Qty Per Box Qty Available Qty / Boxes Deliver Qty Box Qty Action
{{$index++}} {{$item->article_no}} - Size {{$item->sname}} {{$item->stname}} {{number_format($item->quantity)}} / {{number_format($item->stockOut - $qty)}} {{number_format($item->quantity - $item->stockOut + $qty)}} {{$item->bqty > 0 ? number_format(1/$item->bqty) : '0'}} {{$item->uname}} {{number_format($item->stockIn - $item->stockOut + $qty)}} {{$item->uname}} / {{number_format(($item->stockIn - $item->stockOut + $qty)*$item->bqty, 2)}} boxes
Sr. Item / Product Stage Ordered / Delivered Remaining Qty Per Box Qty Available Qty / Boxes Deliver Qty Box Qty Action
Delivery Container / Vehicle

@if(count($deliveryItem)) @php $index = 1; @endphp @foreach($deliveryItem as $item) @php $item = (object) $item; @endphp @unless($item->product_type_id != 0) @endunless @endforeach @endif
Sr. Container / Vehicle Quantity Action
{{$index++}} {{$item->material_no}} {{$item->quantity}}
Factory to Container Delivery

@if(count($deliveryBox)) @php $total = 0; @endphp @foreach($deliveryBox as $item) @php $item = (object) $item; $rowQtys = explode('|', $item->rowQty); $total += $item->totalQty @endphp @foreach($rowQtys as $qty) @endforeach @endforeach @endif
Sr. Vehicle No Row 1 Row 2 Row 3 Row 4 Row 5 Row 6 Row 7 Row 8 Total Qty Action
{{$loop->index + 1}} {{$item->vehicle_no}} {{$qty}}{{$item->totalQty}}
Grand Total: / 0 Boxes Remaining: 0 Boxes
Delivery Expense

@if(count($transaction)) @foreach($transaction as $item) @php $item = (object) $item; @endphp @endforeach @endif
Sr. Expense Bank / Cash Amount Detail Action
{{$loop->index + 1}} {{$item->name}} @if(isset($item->bname)) {{$item->bname}} - {{$item->account_title}} - {{$item->account}} @else Cash Payment {{$item->bank_id}} @endif {{number_format($item->debit)}} {{$item->description}}
@endsection