@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.title7')}}
@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($driver_realisations) && count($driver_realisations) > 0) @foreach($driver_realisations as $index=>$driver_realisation) @if($index==0 || ($index>0 && $driver_realisations[$index]->driver_id!=$driver_realisations[$index-1]->driver_id)) @endif @if(!isset($driver_realisations[$index+1]) || ($driver_realisations[$index+1]->object!=$driver_realisations[$index]->object)) @endif @if(!isset($driver_realisations[$index+1]) || $driver_realisations[$index]->driver_id!=$driver_realisations[$index+1]->driver_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.deliveries')}}

{{$driver_realisation->driver_name ?? __('texte.references_arr.realisation.undefined')}}

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