@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.promotion_products.group')}} | {{__('texte.references_arr.promotion_products.code')}} | {{__('texte.references_arr.promotion_products.article')}} | {{__('texte.references_arr.promotion_products.price')}} | {{__('texte.references_arr.promotion_products.quantity')}} | {{__('texte.references_arr.promotion_products.amount')}} | @foreach($doc_rows as $index=>$doc_row) @if($index==0)|
---|---|---|---|---|---|---|
{{$doc_row->producer}} |
||||||
{{$doc_row->category}} | {{$doc_row->product_id}} | {{$doc_row->name}} | {{number_format($doc_row->price,2,'.','')}} | {{number_format($doc_rows->where('product_id',$doc_row->product_id)->sum('quantity'),3,'.',' ')}} | {{number_format($doc_rows->where('product_id',$doc_row->product_id)->sum('amount'),2,'.','')}} | |
{{$doc_row->contragent_name}} | {{$doc_row->object_id}} | {{$doc_row->object_name}} | {{number_format($doc_row->quantity,3,'.',' ')}} | |||
{{$doc_row->producer}} | {{number_format($doc_rows->where('producer',$doc_row->producer)->sum('quantity'),3,'.',' ')}} | {{number_format($doc_rows->where('producer',$doc_row->producer)->sum('amount'),2,'.',' ')}} | ||||
{{$doc_rows[$index+1]->producer}} |
||||||
{{$doc_row->producer}} | {{number_format($doc_rows->where('producer',$doc_row->producer)->sum('quantity'),3,'.',' ')}} | {{number_format($doc_rows->where('producer',$doc_row->producer)->sum('amount'),2,'.',' ')}} | ||||
{{__('texte.references_arr.promotion_products.total')}} | {{number_format($doc_rows->sum('quantity'),3,'.',' ')}} | {{number_format($doc_rows->sum('amount'),2,'.',' ')}} |