@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.title12')}}
@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.product_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($index==count($picker_realisations)-1 || $picker_realisations[$index]->doer_id!=$picker_realisations[$index+1]->doer_id || $picker_realisations[$index]->category!=$picker_realisations[$index+1]->category) @endif @if($index==count($picker_realisations)-1 || $picker_realisations[$index]->doer_id!=$picker_realisations[$index+1]->doer_id) @endif @endforeach
{{__('texte.references_arr.realisation.code')}} {{__('texte.references_arr.realisation.article')}} {{__('texte.references_arr.realisation.in_tons')}} {{__('texte.references_arr.realisation.total_amount')}}

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

{{$picker_realisation->product_id}} {{$picker_realisation->product_name}} {{number_format($picker_realisation->total_weight,3,'.','')}} {{number_format($picker_realisation->total_amount,2,'.','')}}
{{$picker_realisation->category}} {{count($picker_realisations->where('doer_id',$picker_realisation->doer_id)->where('category',$picker_realisation->category))}} {{number_format($picker_realisations->where('doer_id',$picker_realisation->doer_id)->where('category',$picker_realisation->category)->sum('total_weight'),3,'.','')}} {{number_format($picker_realisations->where('doer_id',$picker_realisation->doer_id)->where('category',$picker_realisation->category)->sum('total_amount'),2,'.','')}}
Общо за {{$picker_realisation->doer_name}} {{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_amount'),2,'.','')}}
{{__('texte.references_arr.realisation.total')}}: {{count($picker_realisations)}} {{number_format($picker_realisations->sum('total_weight'),3,'.','')}} {{number_format($picker_realisations->sum('total_amount'),2,'.','')}}
@endif
@if(!isset($input['print']) || $input['print']!=1) @endif @endsection