@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.sales.title11')}}
@if(!isset($input['print']) || $input['print']!=1) {{__('texte.references_arr.sales.references')}} @endif


{{ csrf_field() }}

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

@if(!isset($input['print']) || $input['print']!=1)
@endif
@include('references.filters.object_filters') @if(!isset($input['print']) || $input['print']!=1)
@endif
@if(isset($doc_rows) && count($doc_rows) > 0) @foreach($doc_rows as $index=>$doc_row) @endforeach
{{__('texte.references_arr.sales.client')}} {{__('texte.references_arr.sales.object')}} {{__('texte.references_arr.sales.in_tons')}} {{__('texte.references_arr.sales.total_amount')}} {{__('texte.references_arr.sales.count_orders')}} {{__('texte.references_arr.sales.in_tons')}} {{__('texte.references_arr.sales.total_amount')}} {{__('texte.references_arr.sales.count_orders')}} {{__('texte.references_arr.sales.in_tons')}} {{__('texte.references_arr.sales.total_amount')}} {{__('texte.references_arr.sales.count_orders')}}
{{$doc_row->contragent_name}} {{$doc_row->object_name}} {{number_format($doc_row->total_weight1,3,'.','')}} {{number_format($doc_row->total_amount1,2,'.','')}} {{$doc_row->count_orders1}} {{$doc_row->total_weight1!=0 ? number_format(($doc_row->total_weight2-$doc_row->total_weight1)*100/abs($doc_row->total_weight1),2,'.','') : '100.00'}}% {{$doc_row->total_amount1!=0 ? number_format(($doc_row->total_amount2-$doc_row->total_amount1)*100/abs($doc_row->total_amount1),2,'.','') : '100.00'}}% {{$doc_row->count_orders1!=0 ? number_format(($doc_row->count_orders2-$doc_row->count_orders1)*100/abs($doc_row->count_orders1),2,'.','') : '100.00'}}% {{number_format($doc_row->total_weight2,3,'.','')}} {{number_format($doc_row->total_amount2,2,'.','')}} {{$doc_row->count_orders2}}
{{__('texte.references_arr.sales.total')}}: {{count($doc_rows)}} {{number_format($doc_rows->sum('total_weight1'),3,'.','')}} {{number_format($doc_rows->sum('total_amount1'),2,'.','')}} {{$doc_rows->sum('count_orders1')}} {{$doc_rows->sum('total_weight1')!=0 ? number_format(($doc_rows->sum('total_weight2')-$doc_rows->sum('total_weight1'))*100/abs($doc_rows->sum('total_weight1')),2,'.','') : '100.00'}}% {{$doc_rows->sum('total_amount1')!=0 ? number_format(($doc_rows->sum('total_amount2')-$doc_rows->sum('total_amount1'))*100/abs($doc_rows->sum('total_amount1')),2,'.','') : '100.00'}}% {{$doc_rows->sum('count_orders1')!=0 ? number_format(($doc_rows->sum('count_orders2')-$doc_rows->sum('count_orders1'))*100/abs($doc_rows->sum('count_orders1')),2,'.','') : '100.00'}}% {{number_format($doc_rows->sum('total_weight2'),3,'.','')}} {{number_format($doc_rows->sum('total_amount2'),2,'.','')}} {{$doc_rows->sum('count_orders2')}}
@endif
@if(!isset($input['print']) || $input['print']!=1) @endif @endsection