@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.wrappage_sales.client')}} | {{__('texte.references_arr.wrappage_sales.object')}} | {{__('texte.references_arr.wrappage_sales.quantity')}} | {{__('texte.references_arr.wrappage_sales.total_amount')}} | {{__('texte.references_arr.wrappage_sales.count_documents')}} | |
---|---|---|---|---|---|
{{$doc_row->contragent_name}} | {{number_format($doc_rows->where('contragent_name',$doc_row->contragent_name)->sum('quantity'),0,'.','')}} | {{number_format($doc_rows->where('contragent_name',$doc_row->contragent_name)->sum('total_amount'),2,'.','')}} | {{count($doc_rows->where('contragent_name',$doc_row->contragent_name)->unique('document_id'))}} | ||
{{$doc_row->contragent_name}} | {{$doc_row->object_id}} - {{$doc_row->object_name}} | ||||
{{date('d.m.Y',strtotime($doc_row->date))}} | {{$doc_row->number}} | {{$doc_row->title}} | {{number_format($doc_rows->where('document_id',$doc_row->document_id)->sum('quantity'),0,'.','')}} | {{number_format($doc_rows->where('document_id',$doc_row->document_id)->sum('total_amount'),3,'.','')}} | |
{{__('texte.references_arr.wrappage_sales.code')}} | {{__('texte.references_arr.wrappage_sales.product')}} | {{__('texte.references_arr.wrappage_sales.quantity')}} | {{__('texte.references_arr.wrappage_sales.total_amount')}} | {{__('texte.references_arr.wrappage_sales.average_price')}} | |
{{$doc_row->product_id}} | {{$doc_row->product_name}} | {{number_format($doc_row->quantity,0,'.','')}} | {{number_format($doc_row->total_amount,2,'.','')}} | {{number_format($doc_row->total_amount/$doc_row->quantity,5,'.','')}} | |
{{$doc_row->contragent_name}} | {{$doc_row->object_name}} | {{number_format($doc_rows->where('object_name',$doc_row->object_name)->sum('quantity'),0,'.','')}} | {{number_format($doc_rows->where('object_name',$doc_row->object_name)->sum('total_amount'),2,'.','')}} | {{count($doc_rows->where('object_name',$doc_row->object_name)->unique('document_id'))}} | |
{{__('texte.references_arr.wrappage_sales.total')}}: | {{count($doc_rows)}} | {{number_format($doc_rows->sum('quantity'),0,'.','')}} | {{number_format($doc_rows->sum('total_amount'),2,'.','')}} | {{count($doc_rows->unique('document_id'))}} |