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

{{strtoupper(__('texte.orders_arr.print.client'))}} : {{$order->object->client->name}}
{{strtoupper(__('texte.orders_arr.print.object'))}} : {{$order->object->name}}
{{strtoupper(__('texte.orders_arr.print.delivery_address'))}} : {{$order->object->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.prepared_qty')}}
{{__('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->product->name}} {{$order_product->measure==0 ? "брой" : $order_product->product->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') : ''}}