@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.title1')}}
@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
@if(!isset($input['print']) || $input['print']!=1)
@endif
@if(isset($agent_realisations) && count($agent_realisations) > 0) @foreach($agent_realisations as $index=>$agent_realisation) @if($index==count($agent_realisations)-1 || ($agent_realisations[$index]->source!=$agent_realisations[$index+1]->source)) @endif @endforeach
{{__('texte.references_arr.realisation.source')}} {{__('texte.references_arr.realisation.representative')}} {{__('texte.references_arr.realisation.objects')}} {{__('texte.references_arr.realisation.in_tons')}} {{__('texte.references_arr.realisation.total_amount')}} {{__('texte.references_arr.realisation.count_orders')}} {{__('texte.references_arr.realisation.visitations')}}
{{__('texte.source_type_arr_text')[$agent_realisation->source]}} {{$agent_realisation->user_name ?? ''}} {{$agent_realisation->count_objects}} {{number_format($agent_realisation->total_weight,3,'.','')}} {{number_format($agent_realisation->total_amount,2,'.','')}} {{$agent_realisation->count_orders}} {{$agent_realisation->total_visitations}}
{{__('texte.references_arr.realisation.total')}} {{__('texte.source_type_arr_text')[$agent_realisation->source]}}: {{count($agent_realisations->where('source',$agent_realisation->source))}} {{$agent_realisations->where('source',$agent_realisation->source)->sum('count_objects')}} {{number_format($agent_realisations->where('source',$agent_realisation->source)->sum('total_weight'),3,'.','')}} {{number_format($agent_realisations->where('source',$agent_realisation->source)->sum('total_amount'),2,'.','')}} {{$agent_realisations->where('source',$agent_realisation->source)->sum('count_orders')}} {{$agent_realisations->where('source',$agent_realisation->source)->sum('total_visitations')}}
{{__('texte.references_arr.realisation.total')}}: {{$agent_realisations->sum('count_objects')}} {{number_format($agent_realisations->sum('total_weight'),3,'.','')}} {{number_format($agent_realisations->sum('total_amount'),2,'.','')}} {{$agent_realisations->sum('count_orders')}} {{$agent_realisations->sum('total_visitations')}}
@endif
@endsection