{{__('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')}} |
@foreach($order_products as $index=>$order_product)
{{$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 : ''}} |
|
|
|
@if(empty($order_products[$index+1]) || $order_products[$index]->parent_parent_category!=$order_products[$index+1]->parent_parent_category)
{{__('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') : ''}} |
|
|
@endif
@endforeach
|
{{$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') : ''}} |
|