INFORMACION ORDEN DE DESPACHO
{{ $orderDispatch->client->client_name }} ORDEN DE DESPACHO N°
{{ $orderDispatch->consecutive }}
NIT: {{ $orderDispatch->client->client_number_document . '-' . $orderDispatch->client->client_branch_code }} TELEFONO: {{ ($orderDispatch->client->client_number_phone ?? $orderDispatch->client->client_branch_number_phone) ?? $orderDispatch->client->number_phone }}
CIUDAD: {{ $orderDispatch->client->city }} CORREO: {{ $orderDispatch->client->email }}
DEPARTAMENTO: {{ $orderDispatch->client->departament }} DIRECCION: {{ $orderDispatch->client->client_branch_address }}
{{-- --}} @foreach ($orderDispatchSizes as $size) @endforeach @php($quantitiesTotal = 0) @foreach ($orderDispatch->order_dispatch_details as $order_dispatch_detail) @php($quantities = 0) {{-- --}} @foreach ($orderDispatchSizes as $size) @endforeach @endforeach @foreach ($orderDispatchSizes as $size) @endforeach
DETALLES DE LA ORDEN DE DESPACHO
VENDEDORPEDIDO - ID REFERENCIA COLOR{{ $size->code }}TOTAL
{{ strtoupper($order_dispatch_detail->order->seller_user->name . ' ' . $order_dispatch_detail->order->seller_user->last_name) }}{{ $order_dispatch_detail->order->id . ' - ' .$order_dispatch_detail->order_detail->id }} {{ $order_dispatch_detail->order_detail->product->code }} {{ $order_dispatch_detail->order_detail->color->name . ' - ' . $order_dispatch_detail->order_detail->color->code }}{{ $order_dispatch_detail->{"T$size->code"} }} @php($quantities += $order_dispatch_detail->{"T{$size->code}"}) {{ $quantities }}
TOTAL DE CANTIDADES POR TALLA{{ $orderDispatch->order_dispatch_details->pluck("T{$size->code}")->sum() }} @php($quantitiesTotal += $orderDispatch->order_dispatch_details->pluck("T{$size->code}")->sum()) {{ $quantitiesTotal }}
@foreach ($orderDispatch->order_dispatch_details->pluck('order')->unique() as $order) @endforeach
INFORMACION DE LOS PEDIDOS DE LA ORDEN DE DESPACHO
PEDIDO VENDEDOR FECHA PEDIDO OBSERVACION OFC DCO
{{ $order->id }} {{ strtoupper($order->seller_user->name . ' ' . $order->seller_user->last_name) }} {{ $order->seller_date }} {{ $order->seller_observation }} {{ ($order_dispatch_detail->order->wallet_dispatch_official ?? $order_dispatch_detail->order->seller_dispatch_official) . ' %' }} {{ ($order_dispatch_detail->order->wallet_dispatch_document ?? $order_dispatch_detail->order->seller_dispatch_document) . ' %' }}