@foreach($agent_realisations as $index=>$agent_realisation)
@if($index==0 || ($index>0 && $agent_realisations[$index-1]->source!=$agent_realisation->source))
{{__('texte.source_type_arr_text')[$agent_realisation->source]}} |
@endif
@if($index==0 || ($index>0 && $agent_realisations[$index-1]->user_id!=$agent_realisation->user_id))
{{$agent_realisation->user_name}} |
@endif
@if($index==0 || ($index>0 && $agent_realisations[$index-1]->order_id!=$agent_realisation->order_id))
{{$agent_realisation->contragent_name ?? $agent_realisation->contragent_name}} |
{{$agent_realisation->object_name}} |
{{date('d.m.Y',strtotime($agent_realisation->delivery_date))}} |
{{number_format($agent_realisations->where('order_id',$agent_realisation->order_id)->sum('total_weight'),3,'.','')}} |
{{number_format($agent_realisations->where('order_id',$agent_realisation->order_id)->sum('total_wrappage_amount'),2,'.','')}} |
|
|
{{__('texte.references_arr.realisation.code')}} |
{{__('texte.references_arr.realisation.article')}} |
{{__('texte.references_arr.realisation.quantity')}} |
{{__('texte.references_arr.realisation.measure')}} |
{{__('texte.references_arr.realisation.in_tons')}} |
{{__('texte.references_arr.realisation.amount')}} |
{{__('texte.references_arr.realisation.average_price')}} |
@endif
{{$agent_realisation->product_id}} |
{{$agent_realisation->product_name}} |
{{$agent_realisation->package==1 ? $agent_realisation->quantity_processed : $agent_realisation->quantity_processed/$agent_realisation->package_count}} |
{{$agent_realisation->package_name}} |
{{number_format($agent_realisation->total_weight,3)}} |
{{number_format($agent_realisation->total_amount,2,'.','')}} |
{{number_format($agent_realisation->total_amount/$agent_realisation->quantity_processed,5,'.','')}} |
@if($agent_realisation->wrappage_piece_name!=null)
{{$agent_realisation->wrappage_piece_id}} |
{{$agent_realisation->wrappage_piece_name}} |
{{$agent_realisation->quantity_processed}} |
брой |
0,00 |
{{number_format($agent_realisation->quantity_processed*$agent_realisation->wrappage_piece_price,2,'.','')}} |
{{number_format($agent_realisation->wrappage_piece_price,5,'.','')}} |
@endif
@if($agent_realisation->wrappage_package_name!=null)
{{$agent_realisation->wrappage_package_id}} |
{{$agent_realisation->wrappage_package_name}} |
{{$agent_realisation->quantity_processed/$agent_realisation->package_count}} |
брой |
0,00 |
{{number_format($agent_realisation->quantity_processed*$agent_realisation->wrappage_package_price/$agent_realisation->quantity_processed,2,'.','')}} |
{{number_format($agent_realisation->wrappage_package_price,5,'.','')}} |
@endif
@if(!isset($agent_realisations[$index+1]) || ($agent_realisations[$index+1]->order_id!=$agent_realisations[$index]->order_id))
|
@endif
@if($index==count($agent_realisations)-1 || $agent_realisations[$index+1]->object!=$agent_realisation->object)
{{__('texte.references_arr.realisation.total_for')}} {{$agent_realisation->object_name}} |
{{number_format($agent_realisations->where('source',$agent_realisation->source)->where('user_id',$agent_realisation->user_id)->where('object',$agent_realisation->object)->sum('total_weight'),3,'.','')}} |
{{number_format($agent_realisations->where('source',$agent_realisation->source)->where('user_id',$agent_realisation->user_id)->where('object',$agent_realisation->object)->sum('total_wrappage_amount'),2,'.','')}} |
{{count($agent_realisations->where('source',$agent_realisation->source)->where('user_id',$agent_realisation->user_id)->where('object',$agent_realisation->object)->unique('order_id'))}} |
{{$agent_realisations->where('source',$agent_realisation->source)->where('object',$agent_realisation->object)->unique('object')->sum('total_visitations')}} |
@endif
@if($index==count($agent_realisations)-1 || $agent_realisations[$index+1]->user_id!=$agent_realisation->user_id)
{{__('texte.references_arr.realisation.total_for')}} {{$agent_realisation->user_name}} |
{{number_format($agent_realisations->where('source',$agent_realisation->source)->where('user_id',$agent_realisation->user_id)->sum('total_weight'),3,'.','')}} |
{{number_format($agent_realisations->where('source',$agent_realisation->source)->where('user_id',$agent_realisation->user_id)->sum('total_wrappage_amount'),2,'.','')}} |
{{count($agent_realisations->where('source',$agent_realisation->source)->where('user_id',$agent_realisation->user_id)->unique('order_id'))}} |
{{$agent_realisations->where('source',$agent_realisation->source)->where('object',$agent_realisation->object)->unique('object')->sum('total_visitations')}} |
@endif
@if($index==count($agent_realisations)-1 || $agent_realisations[$index+1]->source!=$agent_realisation->source)
{{__('texte.references_arr.realisation.total_for')}} {{__('texte.source_type_arr_text')[$agent_realisation->source]}} |
{{number_format($agent_realisations->where('source',$agent_realisation->source)->sum('total_weight'),3,'.','')}} |
{{number_format($agent_realisations->where('source',$agent_realisation->source)->sum('total_wrappage_amount'),2,'.','')}} |
{{count($agent_realisations->where('source',$agent_realisation->source)->unique('order_id'))}} |
{{$agent_realisations->where('source',$agent_realisation->source)->unique('object')->sum('total_visitations')}} |
@endif
@endforeach