{{__('texte.orders_arr.print.order_number')}} {{$order->id}}

{{strtoupper(__('texte.orders_arr.print.contragent'))}} : {{$order->obect->contragent->company_name ?? $order->obect->contragent->user->name}}
{{strtoupper(__('texte.orders_arr.print.object'))}} : {{$order->obect->user->name}}
{{strtoupper(__('texte.orders_arr.print.subregion'))}} : {{$order->obect->subregion->name}}
{{strtoupper(__('texte.orders_arr.print.delivery_address'))}} : {{$order->obect->delivery_address}}
{{strtoupper(__('texte.orders_arr.print.delivery_date'))}} : {{date("d.m.Y",strtotime($order->delivery_date))}}
@foreach($order_products as $index=>$order_product) @if(empty($order_products[$index+1]) || $order_products[$index]->parent_parent_category!=$order_products[$index+1]->parent_parent_category) @endif @endforeach
{{__('texte.orders_arr.print.id')}} {{__('texte.orders_arr.print.name')}} {{__('texte.orders_arr.print.unit_measure')}} {{__('texte.orders_arr.print.ordered')}} {{__('texte.orders_arr.print.found')}}
{{__('texte.orders_arr.print.quant')}} {{__('texte.orders_arr.print.pack')}} {{__('texte.orders_arr.print.count')}} {{__('texte.orders_arr.print.quant')}} {{__('texte.orders_arr.print.pack')}} {{__('texte.orders_arr.print.count')}}
{{$order_product->id}} {{$order_product->produkt->name}} {{$order_product->package==1 ? "брой" : $order_product->produkt->package->name}} {{$order_product->quantity}} {{$order_product->package_quantity!=0 ? $order_product->package_quantity : ''}} {{$order_product->piece_quantity!=0 ? $order_product->piece_quantity : ''}}
{{__('texte.orders_arr.print.total')}} {{$order_product->parent_parent_category}} {{$order_products->where('parent_parent_category',$order_product->parent_parent_category)->sum('quantity')}} {{$order_products->where('parent_parent_category',$order_product->parent_parent_category)->sum('package_quantity')!=0 ? $order_products->where('parent_parent_category',$order_product->parent_parent_category)->sum('package_quantity') : ''}} {{$order_products->where('parent_parent_category',$order_product->parent_parent_category)->sum('piece_quantity')!=0 ? $order_products->where('parent_parent_category',$order_product->parent_parent_category)->sum('piece_quantity') : ''}}
{{$order_products->sum('quantity')}} {{$order_products->sum('package_quantity')!=0 ? $order_products->sum('package_quantity') : ''}} {{$order_products->sum('piece_quantity')!=0 ? $order_products->sum('piece_quantity') : ''}}
{{__('texte.orders_arr.print.total_weight')}}: {{number_format($total_weight,3,'.','')}}
{{__('texte.orders_arr.print.note')}}: @if($order->source==7) @foreach($child_orders as $current_order) @if($current_order->note!=null)

{!! $current_order->note.'
' !!}

@endif @endforeach @else {{$order->note}} @endif
{{__('texte.orders_arr.print.source')}}: {{__('texte.source_type_arr_text')[$order->source]}}
{{__('texte.orders_arr.print.creator')}}: {{__('texte.orders_arr.print.id')}} {{$order->user_id.' '.$order->user->name}}
{{__('texte.orders_arr.print.picker')}}: /................................/ {{__('texte.orders_arr.print.checker')}}: /................................/