@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')
{{__('texte.references_arr.sales.producer')}} | {{__('texte.references_arr.sales.count_products')}} | {{__('texte.references_arr.sales.quantity')}} | {{__('texte.references_arr.sales.in_kgs')}} | {{__('texte.references_arr.sales.total_amount')}} | {{__('texte.references_arr.sales.average_price')}} | {{__('texte.references_arr.sales.orders')}} |
---|---|---|---|---|---|---|
{{$doc_row->producer_name!=null ? $doc_row->producer_name : 'N/A'}} | {{$doc_rows->where('producer_name',$doc_row->producer_name)->sum('product_count')}} | {{number_format($doc_rows->where('producer_name',$doc_row->producer_name)->sum('quantity'),3)}} | {{number_format($doc_rows->where('producer_name',$doc_row->producer_name)->sum('total_weight'),3,'.','')}} | {{number_format($doc_rows->where('producer_name',$doc_row->producer_name)->sum('total_amount'),2,'.','')}} | {{number_format($doc_rows->where('producer_name',$doc_row->producer_name)->sum('quantity')!=0 ? $doc_rows->where('producer_name',$doc_row->producer_name)->sum('total_amount')/$doc_rows->where('producer_name',$doc_row->producer_name)->sum('quantity') : 0,5,'.','')}} | {{$doc_row->count_orders}} |
{{$doc_row->category}} | {{$doc_row->product_count}} | {{number_format($doc_row->quantity,3)}} | {{number_format($doc_row->total_weight,3,'.','')}} | {{number_format($doc_row->total_amount,2,'.','')}} | {{number_format($doc_row->quantity!=0 ? $doc_row->total_amount/$doc_row->quantity : 0,5,'.','')}} | {{$doc_row->count_orders}} |
{{__('texte.references_arr.sales.total')}}: | {{$doc_rows->sum('product_count')}} | {{number_format($doc_rows->sum('quantity'),3,'.','')}} | {{number_format($doc_rows->sum('total_weight'),3,'.','')}} | {{number_format($doc_rows->sum('total_amount'),2,'.','')}} | {{$doc_rows->unique('producer_name')->sum('count_orders')}} |