@extends(isset($input['print']) && $input['print']==1 ? 'layouts.general' : 'layouts.app') @section('link') @if(isset($input) && (!isset($input['print']) || $input['print']==1)) @endif @endsection @section('style') @endsection @section('content')
@include('shared.messages')

{{__('texte.references_arr.realisation.title10')}}
@if(!isset($input['print']) || $input['print']!=1) {{__('texte.references_arr.realisation.references')}} @endif


{{ csrf_field() }}

{{__('texte.references_arr.realisation.general_filters')}}

@if(!isset($input['print']) || $input['print']!=1)
@endif
@include('references.filters.object_filters') @include('references.filters.document_filters') @if(!isset($input['print']) || $input['print']!=1)
@endif
@if(isset($picker_realisations) && count($picker_realisations) > 0) @foreach($picker_realisations as $index=>$picker_realisation) @if($index==0 || ($index>0 && $picker_realisations[$index]->doer_id!=$picker_realisations[$index-1]->doer_id)) @endif @if(!isset($picker_realisations[$index+1]) || ($picker_realisations[$index+1]->object!=$picker_realisations[$index]->object)) @endif @if(!isset($picker_realisations[$index+1]) || $picker_realisations[$index]->doer_id!=$picker_realisations[$index+1]->doer_id) @endif @endforeach
{{__('texte.references_arr.realisation.client')}} {{__('texte.references_arr.realisation.object')}} {{__('texte.references_arr.realisation.date')}} {{__('texte.references_arr.realisation.number')}} {{__('texte.references_arr.realisation.type')}} {{__('texte.references_arr.realisation.in_tons')}} {{__('texte.references_arr.realisation.total_amount')}} {{__('texte.references_arr.realisation.count_documents')}} {{__('texte.references_arr.realisation.visitations')}}

{{$picker_realisation->order->doer->name ?? __('texte.references_arr.realisation.undefined')}}

{{$picker_realisation->contragent_name}} {{$picker_realisation->object_name}} {{date('d.m.Y',strtotime($picker_realisation->date))}} {{$picker_realisation->number}} {{$picker_realisation->title}} {{number_format($picker_realisation->total_weight,3,'.','')}} {{number_format($picker_realisation->total,2,'.','')}}
{{__('texte.references_arr.realisation.total_for')}} {{$picker_realisation->object_name}}: {{number_format($picker_realisations->where('doer_id',$picker_realisation->doer_id)->where('object',$picker_realisation->object)->sum('total_weight'),3,'.','')}} {{number_format($picker_realisations->where('doer_id',$picker_realisation->doer_id)->where('object',$picker_realisation->object)->sum('total'),2,'.','')}} {{count($picker_realisations->where('doer_id',$picker_realisation->doer_id)->where('object',$picker_realisation->object))}} {{count($picker_realisations->where('doer_id',$picker_realisation->doer_id)->where('object',$picker_realisation->object)->unique('order_id'))}}
{{__('texte.references_arr.realisation.total_for')}} {{$picker_realisation->doer_name ?? __('texte.references_arr.realisation.undefined')}}: {{number_format($picker_realisations->where('doer_id',$picker_realisation->doer_id)->sum('total_weight'),3,'.','')}} {{number_format($picker_realisations->where('doer_id',$picker_realisation->doer_id)->sum('total'),2,'.','')}} {{count($picker_realisations->where('doer_id',$picker_realisation->doer_id))}} {{count($picker_realisations->where('doer_id',$picker_realisation->doer_id)->unique('order_id'))}}
{{__('texte.references_arr.realisation.total')}}: {{number_format($picker_realisations->sum('total_weight'),3,'.','')}} {{number_format($picker_realisations->sum('total'),2,'.','')}} {{count($picker_realisations)}} {{count($picker_realisations->unique('order_id'))}}
@endif
@if(!isset($input['print']) || $input['print']!=1) @endif @endsection